Retrieve email service data

get

/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 Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : getEmailServiceData_response
Type: object
Show Source
Nested Schema : emailNotificationTypes
Type: array
Email Notification Types
Show Source
Nested Schema : emailServiceProperties
Type: object
Email service properties
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : recommendationsPermittedStrategies
Type: array
Array of recommendation strategy keys permitted for this notification type
Show Source
Example Response (application/json)
{
    "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

The following internal error codes are thrown by this API when the request fails in Commerce:
Error CodeDescriptionDescriptionPossible Fix
950001Unable to retrieve email service data.
950044Error retrieving the Email Notification Types

The error response:
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top