sendEmailNotification
post
/ccadmin/v1/emailNotifications
Send Email Notification. Creates a new outbound email notification.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : sendEmailNotification_request
{
"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":{
"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"
}
- (other object properties)
-
Type:
object(other object properties)Required:trueAdditional Properties Allowed:(message notification type specific properties) - (other string properties)
-
Type:
stringRequired:true(message notification type specific properties) - messageDetails
-
Type:
arraymessageDetailsRequired:trueAdditional Properties Allowed:Email recipient / language info.
Nested Schema : (other object properties)
Type:
object(message notification type specific properties)
Nested Schema : messageDetails
Nested Schema : items
Type:
object- locale
-
Type:
stringRequired:trueLocale code of the language to use for message. - notificationType
-
Type:
stringRequired:trueType of notification to be sent. - toEmail
-
Type:
stringRequired:trueEmail to which the notification will be sent.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : sendEmailNotification_response
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:
{
"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": {
"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"
}