Retrieve email service data
/ccadmin/v1/email
Gets information on email types and email service configuration.
The information returned on email types includes site-specific settings, such as whether the email type is enabled and the from address and name to be used when composing emails.
The email service information returned includes things like the service type, the host and port for the SMTP service, and authentication settings.
This endpoint relies on the site context being specified via the X-CCSite request header or the occsite query parameter. If the site is omitted, the settings returned will be for the default site.
If the request is successful, the response body will be a JSON object containing two JSON objects: an 'emailNotificationTypes' object containing information on the available email types and their site-specific settings, and an 'emailServiceProperties' endpoint containing the email service settings.
Request
There are no request parameters for this operation.
Back to TopResponse
- application/json
200 Response
object
-
emailNotificationTypes(optional):
array emailNotificationTypes
Email Notification Types
-
emailServiceProperties(optional):
object emailServiceProperties
Email service properties
object
-
emailServiceType:
string
Must be DEFAULT or SMTP.
-
emailSMTPAuthMethod(optional):
string
The SMTP Authorisation method - either SSL or TLS.
-
emailSMTPHost(optional):
string
The SMTP host.
-
emailSMTPPassword(optional):
string
User password for the SMTP server.
-
emailSMTPPort(optional):
string
Port to use to communicate with the SMTP host.
-
emailSMTPUsername(optional):
string
User login for the SMTP server.
object
-
description(optional):
string
email notification description - usually null
-
displayName(optional):
string
email notification display name
-
enabled(optional):
boolean
true - this notification is enabled and an email will be sent out, false - disable no email sent when triggered
-
fromEmail(optional):
string
from email address
-
fromName(optional):
string
from name
-
id(optional):
string
key
-
includeRecommendations(optional):
boolean
true - product recommendations will be included in the email, false - product recommendations will not be included in the email
-
numberOfRecommendations(optional):
integer
Number of product recommendations to include in email
-
recommendationsAllowAnyStrategy(optional):
boolean
true - any recommendations strategy (e.g. Blended, Top Sellers, Bought Together, Browsed Together) can be used, false - only specific recommendation strategies are permitted
-
recommendationsAllowRestrictions(optional):
boolean
true - 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(optional):
array recommendationsPermittedStrategies
Array of recommendation strategy keys permitted for this notification type
-
recommendationsRestriction(optional):
string
The recommendations restriction
-
recommendationsStrategy(optional):
string
The recommendations strategy
-
recommendationsSupported(optional):
boolean
true - product recommendations are supported, false - product recommendations are not supported
-
version(optional):
integer
email notification version - usually 1
array
{
"emailServiceProperties":{
"emailServiceType":"DEFAULT"
},
"links":[
{
"rel":"self",
"href":"/email"
}
],
"emailNotificationTypes":{
"ccadmin_user_password_reset_v1":{
"recommendationsSupported":false,
"displayName":"Oracle Commerce Cloud Admin Password Reset",
"description":null,
"recommendationsStrategy":null,
"version":1,
"enabled":false,
"fromEmail":null,
"recommendationsAllowAnyStrategy":true,
"recommendationsRestriction":null,
"fromName":null,
"recommendationsAllowRestrictions":true,
"includeRecommendations":false,
"id":"ccadmin_user_password_reset_v1",
"recommendationsPermittedStrategies":[
],
"numberOfRecommendations":12
},
"placed_order_v1":{
"recommendationsSupported":false,
"displayName":"Order Placed",
"description":null,
"recommendationsStrategy":null,
"version":1,
"enabled":false,
"fromEmail":null,
"recommendationsAllowAnyStrategy":true,
"recommendationsRestriction":null,
"fromName":null,
"recommendationsAllowRestrictions":true,
"includeRecommendations":false,
"id":"placed_order_v1",
"recommendationsPermittedStrategies":[
],
"numberOfRecommendations":12
}
}
}
Default Response
Error Code | Description | Description | Possible Fix |
---|---|---|---|
950001 | Unable to retrieve email service data. | ||
950044 | Error retrieving the Email Notification Types |
The error response:
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
array
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code