Menu
Update Coupon
Update coupon
PUT
/v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId}Use it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Update Coupon action (under management).
- Fill in the fields below, then reference the result from later steps as
{{updateCoupon.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"usageLimit": 100,
"discountLimit": 30,
"reservationLimit": 45,
"startDate": {},
"expiryDate": {},
"limits": [
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
}
],
"recipientIntegrationId": "URNGV8294NV",
"attributes": {},
"isReservationMandatory": false,
"implicitlyReserved": false
}
Response
Returns 200 with an object. Read it in later steps with {{updateCoupon.response.data.<field>}}.
{
"id": 6,
"created": {},
"campaignId": 211,
"value": "XMAS-20-2021",
"usageLimit": 100,
"usageCounter": 10,
"discountLimit": 30,
"reservationLimit": 45,
"startDate": {},
"expiryDate": {},
"limits": [
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
}
],
"discountCounter": 10
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?