Create coupons asynchronously
POST {{baseUrl}}/v1/applications/:applicationId/campaigns/:campaignId/coupons_async
Create up to 5,000,000 coupons asynchronously. You should typically use this enpdoint when you create at least 20,001 coupons. You receive an email when the creation is complete.
If you want to create less than 20,001 coupons, you can use the Create coupons endpoint.
Request Body
{"usageLimit"=>100, "discountLimit"=>30, "reservationLimit"=>45, "startDate"=>"2020-01-24T14:15:22Z", "expiryDate"=>"2023-08-24T14:15:22Z", "numberOfCoupons"=>200000, "couponSettings"=>{"validCharacters"=>["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], "couponPattern"=>"SUMMER-####-####"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |