Contract 4d1e0ad · updated 2026-11-11
Lissen Ticketing

Discount codes

Try itGET https://pr-7198-ticketing-api.erik-1c8.workers.dev/v1/discount_codes

Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.

Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant)

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

limit?integer
Range1 <= value <= 100
Default20
starting_after?string
ending_before?string

Header Parameters

Ticketing-Organizer*string

Required organizer tenant id. There is intentionally no default, even for single-grant keys.

Match^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/discount_codes" \  -H "Ticketing-Organizer: string"
{  "data": [    {      "id": "string",      "code": "string",      "effect_type": "percent",      "percent_bps": 0,      "amount_minor": 0,      "amount_currency": "string",      "stackable": true,      "valid_from": "2019-08-24T14:15:22Z",      "valid_until": "2019-08-24T14:15:22Z",      "max_uses": 1,      "max_uses_per_customer": 1,      "active": true,      "item_ids": [        "string"      ],      "event_ids": [        "string"      ],      "metadata": {        "property1": null,        "property2": null      }    }  ],  "has_more": true}
Try itPOST https://pr-7198-ticketing-api.erik-1c8.workers.dev/v1/discount_codes

Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.

Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant), Idempotency-Key (required header parameter), Body (is missing code, effect_type)

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Header Parameters

Ticketing-Organizer*string

Required organizer tenant id. There is intentionally no default, even for single-grant keys.

Match^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Idempotency-Key*string

Required replay key for this create operation.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

code*string
Length1 <= length
effect_type*string

Value in

  • "percent"
  • "amount"
  • "unlock"
  • "price_override"
  • "fee_waiver"
percent_bps?|
Range0 <= value
amount_minor?|
Range0 <= value
amount_currency?|
Match^[A-Z]{3}$
stackable?boolean
valid_from?|
Formatdate-time
valid_until?|
Formatdate-time
max_uses?|
Range0 < value
max_uses_per_customer?|
Range0 < value
active?boolean
item_ids?array<>
event_ids?array<>
metadata?

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/discount_codes" \  -H "Ticketing-Organizer: string" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "effect_type": "percent"  }'
{  "id": "string",  "code": "string",  "effect_type": "percent",  "percent_bps": 0,  "amount_minor": 0,  "amount_currency": "string",  "stackable": true,  "valid_from": "2019-08-24T14:15:22Z",  "valid_until": "2019-08-24T14:15:22Z",  "max_uses": 1,  "max_uses_per_customer": 1,  "active": true,  "item_ids": [    "string"  ],  "event_ids": [    "string"  ],  "metadata": {    "property1": null,    "property2": null  }}
Try itGET https://pr-7198-ticketing-api.erik-1c8.workers.dev/v1/discount_codes/{id}

Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.

Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant), id (required path parameter)

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Match^dsc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Header Parameters

Ticketing-Organizer*string

Required organizer tenant id. There is intentionally no default, even for single-grant keys.

Match^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/discount_codes/string" \  -H "Ticketing-Organizer: string"
{  "id": "string",  "code": "string",  "effect_type": "percent",  "percent_bps": 0,  "amount_minor": 0,  "amount_currency": "string",  "stackable": true,  "valid_from": "2019-08-24T14:15:22Z",  "valid_until": "2019-08-24T14:15:22Z",  "max_uses": 1,  "max_uses_per_customer": 1,  "active": true,  "item_ids": [    "string"  ],  "event_ids": [    "string"  ],  "metadata": {    "property1": null,    "property2": null  }}
Try itPATCH https://pr-7198-ticketing-api.erik-1c8.workers.dev/v1/discount_codes/{id}

Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.

Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant), id (required path parameter)

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Match^dsc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Header Parameters

Ticketing-Organizer*string

Required organizer tenant id. There is intentionally no default, even for single-grant keys.

Match^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Idempotency-Key?string

Optional replay key for this update operation.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Properties1 <= properties
code?string
Length1 <= length
effect_type?string

Value in

  • "percent"
  • "amount"
  • "unlock"
  • "price_override"
  • "fee_waiver"
percent_bps?|
Range0 <= value
amount_minor?|
Range0 <= value
amount_currency?|
Match^[A-Z]{3}$
stackable?boolean
valid_from?|
Formatdate-time
valid_until?|
Formatdate-time
max_uses?|
Range0 < value
max_uses_per_customer?|
Range0 < value
active?boolean
item_ids?array<>
event_ids?array<>
metadata?

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/discount_codes/string" \  -H "Ticketing-Organizer: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "code": "string",  "effect_type": "percent",  "percent_bps": 0,  "amount_minor": 0,  "amount_currency": "string",  "stackable": true,  "valid_from": "2019-08-24T14:15:22Z",  "valid_until": "2019-08-24T14:15:22Z",  "max_uses": 1,  "max_uses_per_customer": 1,  "active": true,  "item_ids": [    "string"  ],  "event_ids": [    "string"  ],  "metadata": {    "property1": null,    "property2": null  }}