Create a new coupon
Changed onRequest
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Request body
Schema for creating a new coupon without system-generated fields
Duplicate of id field for GSI queries.
Internal label for the coupon, visible to event organisers.
Whether this coupon is currently active.
Whether this coupon reveals hidden admissions and sections within its scope.
Type of discount this coupon gives: a fixed amount or a percentage.
Scope of the coupon. TEAM applies to all events in the team. PROMOTER applies to all events by specified promoters. EVENTS/SECTIONS/ADMISSIONS apply to specific items.
Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies.
The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage.
Maximum number of times the coupon can be redeemed across all customers.
Number of times this coupon has been redeemed so far.
Maximum number of admission units this coupon can discount within a single order. Omit to discount every eligible unit.
Whether this coupon can only be redeemed by a signed-in user holding an active membership pass for the coupon's team.
List of promoters this coupon applies to when filter is PROMOTER.
List of events this coupon applies to when filter is EVENTS.
List of sections this coupon applies to when filter is 'sections'.
List of admissions this coupon applies to when filter is 'admissions'.
Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)
Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)
Team that created this coupon.
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
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
- breaking
added the pattern
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$to the request propertysaleEndsAt - breaking
added the pattern
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$to the request propertysaleStartsAt - breaking
the
orderLimitrequest property type changed fromnumbertointeger
5 more changes in this revision
- breaking