Create coupons
POST {{baseUrl}}/v1/applications/:applicationId/campaigns/:campaignId/coupons?silent=yes
Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created.
Request Params
| Key | Datatype | Required | Description | 
|---|---|---|---|
| silent | string | Possible values: yesorno. | 
- yes: Increases the perfomance of the API call by returning a 204 response.
- no: Returns a 200 response that contains the updated customer profiles. |
Request Body
{"usageLimit"=>100, "discountLimit"=>30, "reservationLimit"=>45, "startDate"=>"2020-01-24T14:15:22Z", "expiryDate"=>"2023-08-24T14:15:22Z", "limits"=>[{"action"=>"createCoupon", "limit"=>1000, "period"=>"yearly", "entities"=>["Coupon"]}], "numberOfCoupons"=>1, "uniquePrefix"=>"", "attributes"=>{"venueId"=>12}, "recipientIntegrationId"=>"URNGV8294NV", "validCharacters"=>["A", "B", "G", "Y"], "couponPattern"=>"SUMMER-#####", "isReservationMandatory"=>false, "implicitlyReserved"=>false}
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
| Content-Type | string | ||
| Accept | string |