Create coupon
POST {{integrationBaseUrl}}/braze/coupon
Create a coupon code in Talon.One. To use it in your Braze deployment, see the tutorial.
You can also use this endpoint to get an existing coupon's details by setting the identifier
property to a value you previously used.
Tip: You can edit the default coupon code format in the campaign's settings.
Request Body
{"deploymentUrl"=>"{{talonDeployment_3rdParty}}", "applicationId"=>398, "campaignId"=>5671, "identifier"=>"test-coupon", "usageLimit"=>4, "discountLimit"=>30, "reservationLimit"=>45, "integrationId"=>"URN-GV8294NV", "startDate"=>"2021-09-30T15:35:02.371569+02:00", "expiryDate"=>"2024-10-03T15:35:02.371569+02:00", "validCharacters"=>["A", "B", "C", "1", "2"], "couponPattern"=>"ew-####", "isReservationMandatory"=>false, "limits"=>[{"entities"=>["Coupon", "Profile"], "limit"=>1, "action"=>"redeemCoupon"}], "attributes"=>{"venueId"=>"BER4271", "venueName"=>"Admiralspalast"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |