setEmailServiceData
post
/ccadmin/v1/email
Set Email Service Data. Update the email service data.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : setEmailServiceData_request
{
"emailServiceProperties":{
"emailSMTPPort":"25",
"emailSMTPHost":"127.0.0.1",
"emailServiceType":"BASIC",
"emailSMTPAuthMethod":"TLS",
"emailSMTPPassword":"",
"emailSMTPUsername":""
},
"emailNotificationTypes":[
{
"verificationStatus":0,
"displayName":"Forgot Password Email",
"recommendationsRestriction":null,
"fromName":"Forgot Password",
"includeRecommendations":false,
"id":"forgot_password_v1",
"numberOfRecommendations":3,
"recommendationsStrategy":null,
"enabled":true,
"fromEmail":"info@slc04lxz.us.oracle.com"
},
{
"verificationStatus":0,
"displayName":"Abandon Order",
"recommendationsRestriction":"unrestricted",
"fromName":"Abandon Order xx",
"includeRecommendations":true,
"id":"abandon_order_v1",
"numberOfRecommendations":3,
"recommendationsStrategy":"blended",
"enabled":true,
"fromEmail":"info@slc04lxz.us.oracle.com"
},
{
"verificationStatus":0,
"displayName":"New Account Email",
"recommendationsRestriction":null,
"fromName":"New Account xx",
"includeRecommendations":true,
"id":"account_registration_v1",
"numberOfRecommendations":3,
"recommendationsStrategy":"bestSellers",
"enabled":true,
"fromEmail":"info@slc04lxz.us.oracle.com"
}
]
}
- emailNotificationTypes
-
Type:
arrayemailNotificationTypesAdditional Properties Allowed:Email Notification Types - emailServiceProperties
-
Type:
objectemailServicePropertiesAdditional Properties Allowed:Email Service Properties
Nested Schema : emailNotificationTypes
Nested Schema : emailServiceProperties
Type:
objectEmail Service Properties
- emailServiceType
-
Type:
stringRequired:trueMust be BASIC, SMTP or CNS (Oracle Cloud Notification Service). - emailSMTPAuthMethod
-
Type:
stringThe SMTP Authorisation method - either SSL or TLS. - emailSMTPHost
-
Type:
stringThe SMTP host. - emailSMTPPassword
-
Type:
stringUser password for the SMTP server. - emailSMTPPort
-
Type:
stringPort to use to communicate with the SMTP host. - emailSMTPUsername
-
Type:
stringUser login for the SMTP server.
Nested Schema : items
Type:
object- displayName
-
Type:
stringemail notification display name - enabled
-
Type:
booleantrue - this notification is enabled and an email will be sent out, false - disable no email sent when triggered - fromEmail
-
Type:
stringfrom email address - fromName
-
Type:
stringfrom name - id
-
Type:
stringkey - includeRecommendations
-
Type:
booleantrue - product recommendations will be included in the email, false - product recommendations will not be included in the email - numberOfRecommendations
-
Type:
integerNumber of product recommendations to include in email - recommendationsRestriction
-
Type:
stringThe recommendations restriction - recommendationsStrategy
-
Type:
stringThe recommendations strategy - verificationStatus
-
Type:
integer0 - Not applicable (for BASIC/SMTP service type), 1 - Status not verified,2 - Status pending verification or 3 Status Verified
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : setEmailServiceData_response
- emailNotificationTypes
-
Type:
arrayemailNotificationTypesAdditional Properties Allowed:Email notification types - emailServiceProperties
-
Type:
objectemailServicePropertiesAdditional Properties Allowed:Email service properties
Nested Schema : emailNotificationTypes
Nested Schema : emailServiceProperties
Type:
objectEmail service properties
- emailServiceType
-
Type:
stringRequired:trueMust be BASIC, SMTP or CNS (Oracle Cloud Notification Service). - emailSMTPAuthMethod
-
Type:
stringThe SMTP Authorisation method - either SSL or TLS. - emailSMTPHost
-
Type:
stringThe SMTP host. - emailSMTPPassword
-
Type:
stringUser password for the SMTP server. - emailSMTPPort
-
Type:
stringPort to use to communicate with the SMTP host. - emailSMTPUsername
-
Type:
stringUser login for the SMTP server.
Nested Schema : items
Type:
object- description
-
Type:
stringemail notification description - usually null - displayName
-
Type:
stringemail notification display name - enabled
-
Type:
booleantrue - this notification is enabled and an email will be sent out, false - disable no email sent when triggered - fromEmail
-
Type:
stringfrom email address - fromName
-
Type:
stringfrom name - id
-
Type:
stringkey - includeRecommendations
-
Type:
booleantrue - product recommendations will be included in the email, false - product recommendations will not be included in the email - numberOfRecommendations
-
Type:
integerNumber of product recommendations to include in email - recommendationsAllowAnyStrategy
-
Type:
booleantrue - any recommendations strategy (e.g. Blended, Top Sellers, Bought Together, Browsed Together) can be used, false - only specific recommendation strategies are permitted - recommendationsAllowRestrictions
-
Type:
booleantrue - allow restrictions (such as 'in-brand' or 'in-category' to be applied to the recommendation strategy, false - don't allow restrictions to be applied to the recommendation strategy - recommendationsPermittedStrategies
-
Type:
arrayrecommendationsPermittedStrategiesAdditional Properties Allowed:Array of recommendation strategy keys permitted for this notification type - recommendationsRestriction
-
Type:
stringThe recommendations restriction - recommendationsStrategy
-
Type:
stringThe recommendations strategy - recommendationsSupported
-
Type:
booleantrue - product recommendations are supported, false - product recommendations are not supported - verificationStatus
-
Type:
integer0 - Not applicable (BASIC/SMTP), 1 - Status not verified,2 - Status pending verification or 3 Status Verified - version
-
Type:
integeremail notification version - usually 1
Nested Schema : recommendationsPermittedStrategies
Type:
arrayArray of recommendation strategy keys permitted for this notification type
-
Type:
string
Example application/json
{
"emailServiceProperties":{
"emailSMTPPort":"25",
"emailSMTPHost":"127.0.0.1",
"emailServiceType":"BASIC",
"emailSMTPAuthMethod":"TLS",
"emailSMTPUsername":""
},
"emailNotificationTypes":{
"abandoned_order_v1":{
"recommendationsSupported":true,
"verificationStatus":0,
"displayName":"Abandon Order",
"description":null,
"recommendationsStrategy":"blended",
"version":1,
"enabled":true,
"fromEmail":"info@slc04lxz.us.oracle.com",
"recommendationsAllowAnyStrategy":true,
"recommendationsRestriction":"unrestricted",
"fromName":"Abandon Order xx",
"recommendationsAllowRestrictions":true,
"includeRecommendations":true,
"id":"abandoned_order_v1",
"numberOfRecommendations":3,
"recommendationsPermittedStrategies":[
]
},
"forgot_password_v1":{
"recommendationsSupported":false,
"verificationStatus":0,
"displayName":"Forgotten Password",
"description":null,
"recommendationsStrategy":null,
"version":1,
"enabled":true,
"fromEmail":"info@slc04lxz.us.oracle.com",
"recommendationsAllowAnyStrategy":true,
"recommendationsRestriction":null,
"fromName":"Forgot Password",
"recommendationsAllowRestrictions":true,
"includeRecommendations":false,
"id":"forgot_password_v1",
"numberOfRecommendations":12,
"recommendationsPermittedStrategies":[
]
},
"account_registration_v1":{
"recommendationsSupported":true,
"verificationStatus":0,
"displayName":"New Account",
"description":null,
"recommendationsStrategy":"topSellers",
"version":1,
"enabled":true,
"fromEmail":"info@slc04lxz.us.oracle.com",
"recommendationsAllowAnyStrategy":false,
"recommendationsRestriction":null,
"fromName":"New Account xx",
"recommendationsAllowRestrictions":false,
"includeRecommendations":true,
"id":"account_registration_v1",
"numberOfRecommendations":12,
"recommendationsPermittedStrategies":[
"topSellers"
]
}
}
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"emailServiceProperties": {
"emailSMTPPort": "25",
"emailSMTPHost": "127.0.0.1",
"emailServiceType": "BASIC",
"emailSMTPAuthMethod": "TLS",
"emailSMTPPassword": "",
"emailSMTPUsername": ""
},
"emailNotificationTypes": [
{
"verificationStatus": 0,
"displayName": "Forgot Password Email",
"recommendationsRestriction": null,
"fromName": "Forgot Password",
"includeRecommendations": false,
"id": "forgot_password_v1",
"numberOfRecommendations": 3,
"recommendationsStrategy": null,
"enabled": true,
"fromEmail": "info@slc04lxz.us.oracle.com"
},
{
"verificationStatus": 0,
"displayName": "Abandon Order",
"recommendationsRestriction": "unrestricted",
"fromName": "Abandon Order xx",
"includeRecommendations": true,
"id": "abandon_order_v1",
"numberOfRecommendations": 3,
"recommendationsStrategy": "blended",
"enabled": true,
"fromEmail": "info@slc04lxz.us.oracle.com"
},
{
"verificationStatus": 0,
"displayName": "New Account Email",
"recommendationsRestriction": null,
"fromName": "New Account xx",
"includeRecommendations": true,
"id": "account_registration_v1",
"numberOfRecommendations": 3,
"recommendationsStrategy": "bestSellers",
"enabled": true,
"fromEmail": "info@slc04lxz.us.oracle.com"
}
]
}
Sample Response Payload returned by endpoint:
{
"emailServiceProperties": {
"emailSMTPPort": "25",
"emailSMTPHost": "127.0.0.1",
"emailServiceType": "BASIC",
"emailSMTPAuthMethod": "TLS",
"emailSMTPUsername": ""
},
"emailNotificationTypes": {
"abandoned_order_v1": {
"recommendationsSupported": true,
"verificationStatus": 0,
"displayName": "Abandon Order",
"description": null,
"recommendationsStrategy": "blended",
"version": 1,
"enabled": true,
"fromEmail": "info@slc04lxz.us.oracle.com",
"recommendationsAllowAnyStrategy": true,
"recommendationsRestriction": "unrestricted",
"fromName": "Abandon Order xx",
"recommendationsAllowRestrictions": true,
"includeRecommendations": true,
"id": "abandoned_order_v1",
"numberOfRecommendations": 3,
"recommendationsPermittedStrategies": []
},
"forgot_password_v1": {
"recommendationsSupported": false,
"verificationStatus": 0,
"displayName": "Forgotten Password",
"description": null,
"recommendationsStrategy": null,
"version": 1,
"enabled": true,
"fromEmail": "info@slc04lxz.us.oracle.com",
"recommendationsAllowAnyStrategy": true,
"recommendationsRestriction": null,
"fromName": "Forgot Password",
"recommendationsAllowRestrictions": true,
"includeRecommendations": false,
"id": "forgot_password_v1",
"numberOfRecommendations": 12,
"recommendationsPermittedStrategies": []
},
"account_registration_v1": {
"recommendationsSupported": true,
"verificationStatus": 0,
"displayName": "New Account",
"description": null,
"recommendationsStrategy": "topSellers",
"version": 1,
"enabled": true,
"fromEmail": "info@slc04lxz.us.oracle.com",
"recommendationsAllowAnyStrategy": false,
"recommendationsRestriction": null,
"fromName": "New Account xx",
"recommendationsAllowRestrictions": false,
"includeRecommendations": true,
"id": "account_registration_v1",
"numberOfRecommendations": 12,
"recommendationsPermittedStrategies": ["topSellers"]
}
}
}