Menu
Create Coupons
Create coupons
POST
/v1/applications/{applicationId}/campaigns/{campaignId}/couponsUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Create Coupons action (under management).
- Fill in the fields below, then reference the result from later steps as
{{createCoupons.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"usageLimit": 100,
"numberOfCoupons": 1,
"discountLimit": 30,
"reservationLimit": 45,
"startDate": {},
"expiryDate": {},
"limits": [
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
}
],
"uniquePrefix": "",
"attributes": {
"venueId": 12
},
"recipientIntegrationId": "URNGV8294NV",
"validCharacters": [
"A",
"B",
"G",
"Y"
],
"couponPattern": "SUMMER-#####"
}
Response
Returns 200 with an object. Read it in later steps with {{createCoupons.response.data.<field>}}.
{
"totalResultSize": 1,
"data": [
{
"recipientIntegrationId": "URNGV8294NV",
"implicitlyReserved": false,
"created": {},
"campaignId": 211,
"usageLimit": 100,
"referralId": 326632952,
"usageCounter": 10,
"batchId": "32535-43255",
"discountCounter": 10,
"expiryDate": {},
"importId": 4,
"reservationLimit": 45,
"reservationCounter": 1,
"reservation": false,
"attributes": "{}",
"id": 6,
"value": "XMAS-20-2021",
"discountLimit": 30,
"startDate": {},
"limits": [
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
},
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
}
],
"discountRemainder": 5,
"isReservationMandatory": false
}
]
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?