Coupons
Update a coupon
Changed onput/coupons/{id}
Request
- Base URL: https://api.session.services
- URL: https://api.session.services/coupons/{id}
- Auth: API key in header x-tenant-id
Path parameters
idstring required
Unique identifier of the coupon to update
Example:cpn_01jps5cgsfzs1ksqaet5hba8ac
Request body
Example request
{
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac",
"name": "Half Price",
"active": true,
"kind": "PERCENT",
"filter": "EVENTS",
"currency": "AUD",
"discount": 50,
"limit": -1,
"orderLimit": 2,
"saleStartsAt": "2025-02-10T03:00:00"
}Response
OK
Example response
{
"coupon": {
"id": "cpn_01jps5cgsfzs1ksqaet5hba8ac",
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac",
"createdAt": "2026-10-17T08:46:46.697Z",
"updatedAt": "2026-10-17T08:46:46.697Z",
"name": "Half Price",
"active": true,
"kind": "PERCENT",
"filter": "EVENTS",
"currency": "AUD",
"discount": 50,
"limit": -1,
"orderLimit": 2,
"saleStartsAt": "2025-02-10T03:00:00"
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- info
added the non-success response with the status
- info