Coupons

Update a coupon

Changed on
put/coupons/{id}

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Path parameters

id, string required

Unique identifier of the coupon to update

Example:cpn_01jps5cgsfzs1ksqaet5hba8ac

Request body

object required

Schema for updating an existing coupon.

couponId, string

Duplicate of id field for GSI queries.

name, string

Internal label for the coupon, visible to event organisers.

active, boolean

Whether this coupon is currently active.

showHidden, boolean

Whether this coupon reveals hidden admissions and sections within its scope.

kind, 'AMOUNT' | 'PERCENT'

Type of discount this coupon gives: a fixed amount or a percentage.

filter, 'TEAM' | 'PROMOTER' | 'EVENTS' | 'SECTIONS' | 'ADMISSIONS'

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.

currency, 'AED' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BZD' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SRD' | 'SVC' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'ZAR' | 'ZMW' | 'ZWL' nullable

Three-letter ISO 4217 currency code for transactions and payouts

discount, number

The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage.

limit, number

Maximum number of times the coupon can be redeemed across all customers.

uses, number

Number of times this coupon has been redeemed so far.

orderLimit, integer nullable

Maximum number of admission units this coupon can discount within a single order. Pass null to remove the per-order limit; omit to leave unchanged.

membersOnly, boolean

Whether this coupon can only be redeemed by a signed-in user holding an active membership pass for the coupon's team.

promoters, object[]

List of promoters this coupon applies to when filter is PROMOTER.

events, object[]

List of events this coupon applies to when filter is EVENTS.

sections, object[]

List of sections this coupon applies to when filter is 'sections'.

admissions, object[]

List of admissions this coupon applies to when filter is 'admissions'.

saleStartsAt, string

Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)

saleEndsAt, string nullable

Wall clock time without timezone (displays same everywhere)

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",
  "saleEndsAt": "2025-03-15T19:30:00"
}

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

    • breaking

      request property orderLimit list-of-types was narrowed by removing types number from media type application/json

    • breaking

      added the pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$ to the request property saleEndsAt/anyOf[subschema #1]

    • breaking

      added the pattern ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$ to the request property saleStartsAt

    6 more changes in this revision