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
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"
}
}