Menu
Create Coupons Async
Create coupons asynchronously
POST
/v1/applications/{applicationId}/campaigns/{campaignId}/coupons_asyncUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Create Coupons Async action (under management).
- Fill in the fields below, then reference the result from later steps as
{{createCouponsAsync.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"usageLimit": 100,
"numberOfCoupons": 200000,
"attributes": {},
"discountLimit": 30,
"reservationLimit": 45,
"startDate": {},
"expiryDate": {},
"couponSettings": {
"couponPattern": "SUMMER-####-####",
"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"
]
},
"isReservationMandatory": false
}
Response
Returns 200 with an object. Read it in later steps with {{createCouponsAsync.response.data.<field>}}.
{
"batchId": "tqyrgahe"
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?