Campaigns
Create Campaign
Method to create a batch of vouchers aggregated in one campaign. You can choose a variety of voucher types and define a unique pattern for generating codes.
📘 Global uniqueness
All campaign codes are unique across the whole project. Voucherify will not allow you to generate 2 campaigns with the same coupon code.
🚧 Code generation status
This is an asynchronous action; you can't read or modify a newly created campaign until the code generation is completed. See the creation_status field in the campaign object description.
post/v1/campaigns
Request body
Example request
{
"start_date": "2022-09-20T00:00:00.000Z",
"expiration_date": "2022-09-30T00:00:00.000Z",
"validity_timeframe": {
"duration": "PT1H",
"interval": "P2D"
},
"validity_hours": {
"daily": [
{
"start_time": "12:00",
"expiration_time": "14:00"
}
]
},
"category_id": "cat_0b688929a2476386a7"
}Response
Returns a campaign object if the call succeeded.