Coupons
Delete a coupon
Changed ondelete/coupons/{id}
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Path parameters
id, string required
A unique identifier for this coupon.
Example:cpn_01jps5cgsfzs1ksqaet5hba8ac
Response
OK
object required
coupon, Coupon required
coupon
Example response
{
"coupon": {
"id": "cpn_01jps5cgsfzs1ksqaet5hba8ac",
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"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
the
coupon/saleEndsAtresponse's property pattern^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$was added for the status - info
the
coupon/saleStartsAtresponse's property pattern^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$was added for the status
- info
- breaking
the
coupon/createdAtresponse's property format changed fromdate-timeto no format for status
4 more changes in this revision
- breaking