addProductNotification
post
/ccstore/v1/productnotify
Create a new product notification to send an email to a user when the specified product comes back in stock.
Request
Supported Media Types
- application/json
Root Schema : generateProductNotify_request
Type:
Show Source
object
-
email:
string
Email address to send notification to
-
expiryDate(optional):
string
Expiry date of notification
-
locale:
string
Current locale of SF
-
productId:
string
Id of the product to be notified on
-
profileId(optional):
string
Profile Id of a logged in user
-
siteId:
string
Id of the current site
-
skuId:
string
SKU of the product
Response
Supported Media Types
- application/json
200 Response
An object is returned that represents the product notification that has been added.
Root Schema : generateProductNotify_response
Type:
Show Source
object
-
properties(optional):
object properties
JSON Object representing the notification added
Nested Schema : properties
Type:
object
JSON Object representing the notification added
Example Response (application/json)
{
"expiryDate":"2017-10-25T10:19:51.315Z",
"dateCreated":"2017-09-25T10:19:51.315Z",
"productId":"prod10001",
"profileId":"profile1",
"siteId":"siteUS",
"links":[
{
"rel":"self",
"href":"/ccstoreui/v1/productNotify/"
}
],
"locale":"en",
"email":"",
"skuId":"sku30005",
"dateUpdated":null
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
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
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(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