curl --request POST \
--url https://{cluster}.voucherify.io/v1/rewards \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Digital - Gift Card Reward",
"type": "CAMPAIGN",
"metadata": {
"Type": "Gift"
},
"parameters": {
"campaign": {
"id": "camp_hC2GdqYtOmTT45zfhib62cK1",
"balance": 3000
}
}
}
'{
"id": "rew_Crmu3hu2FKZWZIML59AeAs1n",
"name": "Material Reward",
"type": "MATERIAL",
"parameters": {
"product": {
"id": "prod_0b15f6b9f650c16990",
"sku_id": "sku_0b1621b319d248b79f"
}
},
"stock": "2",
"redeemed": null,
"attributes": {
"image_url": "{{internalVoucherifyURL}}",
"description": "Archie's Series"
},
"created_at": "2022-08-25T11:20:58.172Z",
"updated_at": null,
"metadata": {
"Type": "Material"
},
"object": "reward"
}Create Reward
Create a new reward. Use this endpoint for campaign-linked rewards (referral campaigns and legacy loyalty) and for LOYALTY_POINTS rewards that credit a v2/loyalties (loyalty hub) card from a referral tier. For Loyalty hub program rewards (a different resource), use POST /v2/loyalties/rewards.
POST
/
v1
/
rewards
curl --request POST \
--url https://{cluster}.voucherify.io/v1/rewards \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Digital - Gift Card Reward",
"type": "CAMPAIGN",
"metadata": {
"Type": "Gift"
},
"parameters": {
"campaign": {
"id": "camp_hC2GdqYtOmTT45zfhib62cK1",
"balance": 3000
}
}
}
'{
"id": "rew_Crmu3hu2FKZWZIML59AeAs1n",
"name": "Material Reward",
"type": "MATERIAL",
"parameters": {
"product": {
"id": "prod_0b15f6b9f650c16990",
"sku_id": "sku_0b1621b319d248b79f"
}
},
"stock": "2",
"redeemed": null,
"attributes": {
"image_url": "{{internalVoucherifyURL}}",
"description": "Archie's Series"
},
"created_at": "2022-08-25T11:20:58.172Z",
"updated_at": null,
"metadata": {
"Type": "Material"
},
"object": "reward"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Body
application/json
Define parameters of the new reward.
- Digital Reward
- Material Reward
- Pay with Points Reward
- `Loyalty hub points reward
Request body schema for creating a digital reward using POST v1/rewards.
Response
200 - application/json
Returns a reward object.
Response body schema for POST v1/rewards.

