Create coupons for multiple recipients

POST {{baseUrl}}/v1/applications/:applicationId/campaigns/:campaignId/coupons_with_recipients?silent=yes

Create coupons according to some pattern for up to 1000 recipients.

Request Params

KeyDatatypeRequiredDescription
silentstringPossible values: yes or no.
  • 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", "attributes"=>{"venueId"=>12}, "recipientsIntegrationIds"=>["URNGV8294NV", "BZGGC2454PA"], "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"], "couponPattern"=>"SUMMER-#####"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring