sendEmailNotification
post
/ccadmin/v1/emailNotifications
Send Email Notification. Creates a new outbound email notification.
Request
Supported Media Types
- application/json
Root Schema : sendEmailNotification_request
Type:
Show Source
object
-
(other object properties)(required):
object (other object properties)
(message notification type specific properties)
-
(other string properties)(required):
string
(message notification type specific properties)
-
messageDetails(required):
array messageDetails
Email recipient / language info.
Example:
{
"postContent":"SureShot Camera XYZ",
"postProductImageUrl":"https://shope.example.com/products/productImage.png",
"wishListDisplayName":"Jane''s Wish List",
"postCreatorProfileImageURL":"https://shope.example.com/profiles/fredImage.png",
"wishListId":"abcdefg",
"wishListOwnerFirstName":"Jane",
"messageDetails":{
"siteId":"siteUS",
"notificationType":"wishlist_new_post_v1",
"locale":"en-US",
"toEmail":"member@example.com"
},
"wishListOwnerProfileImageURL":"https://shope.example.com/profiles/janeImage.png",
"storeFrontHostName":"https://shope.example.com",
"organization":{
"name":"Jane''s Organization",
"logoUrl":"https://shope.example.com/org/JanesOrgLogo.png"
},
"recipientFullName":"Member User",
"recipientEmailAddress":"member@example.com",
"postCreatorFirstName":"Fred",
"productPrice":"$65.00",
"wishListOwnerLastName":"Doe",
"postCreatorLastName":"Shawpper"
}
Nested Schema : (other object properties)
Type:
object
(message notification type specific properties)
Nested Schema : items
Type:
Show Source
object
-
locale(required):
string
Locale code of the language to use for message.
-
notificationType(required):
string
Type of notification to be sent.
-
siteId:
string
The ID of the site for which to send the notification.
-
toEmail(required):
string
Email to which the notification will be sent.
Response
Supported Media Types
- application/json
202 Response
Following model is returned when operation succeeds.
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code