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 In: header
Query Parameters
1 <= value <= 10020Header Parameters
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^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}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 In: header
Header Parameters
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^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}$Required replay key for this create operation.
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= lengthValue in
- "percent"
- "amount"
- "unlock"
- "price_override"
- "fee_waiver"
0 <= value0 <= value^[A-Z]{3}$date-timedate-time0 < value0 < valueResponse 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 }}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 In: header
Path Parameters
^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
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^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 }}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 In: header
Path Parameters
^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
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^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}$Optional replay key for this update operation.
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= properties1 <= lengthValue in
- "percent"
- "amount"
- "unlock"
- "price_override"
- "fee_waiver"
0 <= value0 <= value^[A-Z]{3}$date-timedate-time0 < value0 < valueResponse 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 }}