Rewards
Create a new voucher
Create a new voucher for a specific customer based on a reward features definition.
⚠️ Only Coupons & Catalogue reward or Simple reward can be used here.
post/rewards/{reward_id}/actions/create-voucher
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
{
"customer_id": "8ea2591121e636086a4a9c0992",
"code": "w7TU7KfeE1",
"note": "Use before 28.03.2024 get another one for free"
}Response
Created
Example response
{
"data": {
"voucher_id": "82d0f9d976dee39aacd13dc7ea"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.