Rewards
Set all products that reward can be applied to
Batch process helps to set all products in one request. Request needs to contain all the products, because previous products will be erased. ⚠️ Adjust batch sizes based on processing times. We recommended use maximum amount of 1000 records and adjust the batch size based on processing time. ⚠️ Endpoint is available only in the Enterprise interface.
post/rewards/{reward_id}/actions/set-products
Request
- Base URLhttps://sandbox.crmcarecloud.com/webservice/rest-api/enterprise-interface/v1.0
- Auth
- HTTP bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
reward_idstring required
The unique ID of the reward.
Headers
Accept-Languagestring
The unique ID of the language code by ISO 639-1.
Request body
Example request
{
"products": [
{
"product_id": "85d6598db0bf3f62afd5db8507",
"plu_id": {
"list_code": "GLOBAL",
"code": "abc"
}
}
]
}Response
No Content
Changes
No recorded changes to this operation across all 1 revision of this API.