Examples of data objects in Incremental Feed API calls
This topic provides various examples of valid payload bodies (data objects) in requests to the Sitecore Discover Incremental Feed API.
Example of a data object in a call to update price
The following shows an example of the data object in a successful request to update the price for a given product SKU:
RequestResponse
{
"data": {
"products": [
{
"sku": "123",
"attributes": {
"price": 10.0,
"final_price": 10.0
}
},
]
}
}
Example of a data object in a call to update a promotional message of a SKU for a store
The following example shows the data object in a successful request to update the promotional message of a given SKU for a specific customer (in a B2B scenario) of a store (in a multistore setup).
RequestResponse
{
"data": {
"products": [
{
"sku": "123",
"store": {
"id": "STORE001"
},
"attributes": {
"promo_message": "For a limited time only"
}
},
]
}
}
Example of a data object in a call to update a localized attribute
The following example shows the data object in a request to update the promo_message attribute value, where the country is Canada (ca) and the language is French (fr).
RequestResponse
{
"data": {
"products":[
{
"locale_country": "ca",
"locale_language": "fr",
"sku": "41751747",
"attributes":{
"promo_message" : "Pour un temps limité!"
}
}
]
}
}