Reference
Bulk
For agents and scripts: set up a whole event in one call, copy an event, create or change many items at once, make thousands of single-use codes under one batch, and check a code before it goes out.
Every operation below is also in the OpenAPI document. One that names an MCP tool can be called through the MCP server; one that names none cannot.
Set up a whole event in one call#
POST /v1/events/setup
Operation id setupEvent. MCP tool setup_event. SDK tickets.bulk.setup.
Makes a whole event in one call: the event and its days, up to 40 ticket types, add-ons and codes together, and up to 10 code batches. Items point at each other by your own ref names. All or nothing: if any part is refused, nothing is kept. Send dry_run: true to see exactly what would be made, or why not. The event stays marked as being set up, and cannot be published, until the setup finishes.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
Request body (EventSetupInput)
| Field | Type | Description |
|---|---|---|
event * | object | The event, as POST /v1/events takes it. Its days are made with it. |
ticket_types | array of SetupTicketType | |
add_ons | array of SetupAddOn | |
codes | array of SetupCode | |
code_batches | array of SetupCodeBatch | |
dry_run | boolean | true: check everything and list what would be made. Nothing is written. |
* required
{
"event": {
"name": "Yacht Rock Detroit 2028",
"venue": {
"name": "Riverfront Lawn",
"address": {
"line1": "1 Example St",
"line2": null,
"city": "Detroit",
"region": "MI",
"postal_code": "48215",
"country": "US"
},
"timezone": "America/Detroit",
"location": {
"latitude": 42.36,
"longitude": -82.95
}
},
"currency": "usd",
"consent_texts": {
"email": {
"version": "2028-01-01",
"text": "Email me news and offers."
},
"sms": null
},
"days": [
{
"date": "2028-07-14",
"doors_at": "2028-07-14T20:00:00Z",
"starts_at": "2028-07-14T21:00:00Z",
"ends_at": "2028-07-15T03:00:00Z"
},
{
"date": "2028-07-15",
"doors_at": "2028-07-15T20:00:00Z",
"starts_at": "2028-07-15T21:00:00Z",
"ends_at": "2028-07-16T03:00:00Z"
}
]
},
"ticket_types": [
{
"ref": "ga-weekend",
"name": "GA Weekend",
"price": {
"amount": 19500,
"currency": "usd"
},
"capacity": 6000,
"valid_days": "all",
"day_wristbands": {
"2028-07-14": {
"label": "Fri blue",
"color": "#2A78D6"
},
"2028-07-15": {
"label": "Sat red",
"color": "#D14D4D"
}
}
}
],
"add_ons": [
{
"ref": "parking",
"name": "Parking",
"price": {
"amount": 3000,
"currency": "usd"
},
"per": "order",
"scannable": true,
"capacity": 800
}
],
"codes": [
{
"code": "VISITDETROIT",
"discount": {
"amount_off": null,
"percent_off_bps": 1000
},
"applies_to": [
"ga-weekend"
],
"max_uses": 500
}
],
"code_batches": [
{
"name": "Staff passes",
"count": 5000,
"prefix": "STAFF",
"length": 10,
"discount": {
"amount_off": null,
"percent_off_bps": 10000
},
"max_uses": 1,
"applies_to": [
"ga-weekend"
],
"unlocks": []
}
],
"dry_run": true
}Answers 200. dry_run: what would be made, or why not.
Fields (EventSetupResult)
| Field | Type | Description |
|---|---|---|
object * | "event_setup" | |
dry_run * | boolean | |
event * | Event | null | The draft event; null in a dry run. |
copied_from * | string | null | For a copy: the event it was copied from. |
would * | object | What was (or in a dry run, would be) made. |
ticket_types * | array of object | |
add_ons * | array of object | |
codes * | array of object | |
code_batches * | array of CodeBatch | Queued; their codes are made by a job each (job on the batch). Empty in a dry run. |
skipped * | array of string | What a copy left behind, in words. |
problems * | array of object | A dry run that would be refused says why here (and the answer is 200); a real run answers the error itself. |
* required
Answers 201. The draft event with everything in it. All or nothing.
Fields (EventSetupResult)
| Field | Type | Description |
|---|---|---|
object * | "event_setup" | |
dry_run * | boolean | |
event * | Event | null | The draft event; null in a dry run. |
copied_from * | string | null | For a copy: the event it was copied from. |
would * | object | What was (or in a dry run, would be) made. |
ticket_types * | array of object | |
add_ons * | array of object | |
codes * | array of object | |
code_batches * | array of CodeBatch | Queued; their codes are made by a job each (job on the batch). Empty in a dry run. |
skipped * | array of string | What a copy left behind, in words. |
problems * | array of object | A dry run that would be refused says why here (and the answer is 200); a real run answers the error itself. |
* required
Errors of its own. currency_mismatch, code_already_exists, invalid_state_transition. The errors every operation can answer are on the errors page.
An event written as a setup body#
GET /v1/events/{id}/template
Operation id getEventTemplate. MCP tool get_event_template. SDK tickets.bulk.template.
An existing event written as a setup body. Post it to POST /v1/events/setup, in this org or another, to make the next event for a client.
Who may call it. Any one of: An API key with scope full, read. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has read (owner, admin, staff, viewer).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with evt_. |
Answers 200. Post it to POST /v1/events/setup in this org or another.
Fields (EventTemplate)
| Field | Type | Description |
|---|---|---|
object * | "event_template" | |
source * | string | An id starting with evt_. |
setup * | EventTemplateBody | A setup body read from an event. |
notes * | array of string | What does not travel in a template, in words (images, made codes, uses, orders, and anything past what one setup makes). |
* required
Copy an event to new dates#
POST /v1/events/{id}/copy
Operation id copyEvent. MCP tool copy_event. SDK tickets.bulk.copy.
Copies an event to new dates as a draft: its ticket types, add-ons, design, questions, settings and code definitions. Never its orders, tickets or code uses. Give either start_date (days shift together) or days (each day's own times). dry_run: true shows what it would make.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with evt_. |
Request body (CopyEventInput)
| Field | Type | Description |
|---|---|---|
name | string | The new event's name (default: the old name and "(copy)"). |
start_date | string | The date the first day moves to; every other day moves by the same number of days, at the same local times. Sale windows move with the dates, keeping their distance from the first day. |
days | array of DayInput | Or each day with its new times, in date order, one for every day of the old event. |
codes | "definitions" | "none" | definitions: the old event's own codes, with no uses. A batch's made codes never copy (make a batch for the new event). |
dry_run | boolean |
{
"name": "Yacht Rock Detroit 2028",
"start_date": "2028-07-14",
"codes": "definitions",
"dry_run": false
}Answers 200. dry_run: what would be made.
Fields (EventSetupResult)
| Field | Type | Description |
|---|---|---|
object * | "event_setup" | |
dry_run * | boolean | |
event * | Event | null | The draft event; null in a dry run. |
copied_from * | string | null | For a copy: the event it was copied from. |
would * | object | What was (or in a dry run, would be) made. |
ticket_types * | array of object | |
add_ons * | array of object | |
codes * | array of object | |
code_batches * | array of CodeBatch | Queued; their codes are made by a job each (job on the batch). Empty in a dry run. |
skipped * | array of string | What a copy left behind, in words. |
problems * | array of object | A dry run that would be refused says why here (and the answer is 200); a real run answers the error itself. |
* required
Answers 201. The new draft. Never the old one's orders, tickets or code uses.
Fields (EventSetupResult)
| Field | Type | Description |
|---|---|---|
object * | "event_setup" | |
dry_run * | boolean | |
event * | Event | null | The draft event; null in a dry run. |
copied_from * | string | null | For a copy: the event it was copied from. |
would * | object | What was (or in a dry run, would be) made. |
ticket_types * | array of object | |
add_ons * | array of object | |
codes * | array of object | |
code_batches * | array of CodeBatch | Queued; their codes are made by a job each (job on the batch). Empty in a dry run. |
skipped * | array of string | What a copy left behind, in words. |
problems * | array of object | A dry run that would be refused says why here (and the answer is 200); a real run answers the error itself. |
* required
Errors of its own. invalid_state_transition. The errors every operation can answer are on the errors page.
Create or change many ticket types#
POST /v1/ticket_types/bulk
Operation id bulkTicketTypes. MCP tool bulk_ticket_types. SDK tickets.bulk.ticketTypesOnce.
Creates or changes up to 500 ticket types in one call. Every item has your own key, and gets its own result: one failure never stops the rest. Sending the same keys again makes nothing twice. When the call ran out of time (or of test mode's items a minute), unreached items come back not_run and resume.not_run lists their places: send those again with the same keys.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
Request body (BulkTicketTypesInput)
| Field | Type | Description |
|---|---|---|
items * | array of BulkTicketTypeItem | |
dry_run | boolean | true: run every item through the same checks and change nothing. |
* required
{
"items": [
{
"key": "ga-weekend",
"create": {
"event": "evt_yrd2027",
"name": "GA Weekend",
"price": {
"amount": 19500,
"currency": "usd"
}
}
}
],
"dry_run": false
}Answers 200. One result per item.
Fields (BulkResult)
| Field | Type | Description |
|---|---|---|
object * | "bulk_result" | |
kind * | "ticket_types" | "add_ons" | "codes" | |
dry_run * | boolean | |
summary * | object | |
items * | array of BulkItemResult | |
resume * | object | Null when every item was reached. Otherwise the call ran out of time, or of test mode's items a minute: send the items at these places again, with the same keys, under a new Idempotency-Key or none. The same Idempotency… |
* required
Create or change many add-ons#
POST /v1/add_ons/bulk
Operation id bulkAddOns. MCP tool bulk_add_ons. SDK tickets.bulk.addOnsOnce.
Creates or changes up to 500 add-ons in one call, with a result per item and a key per item so a repeat makes nothing twice. Items come back not_run if the call ran out of time: send the places in resume.not_run again with the same keys.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
Request body (BulkAddOnsInput)
| Field | Type | Description |
|---|---|---|
items * | array of BulkAddOnItem | |
dry_run | boolean | true: run every item through the same checks and change nothing. |
* required
{
"items": [
{
"key": "parking",
"id": "add_parking",
"update": {
"price": {
"amount": 3500,
"currency": "usd"
}
}
}
],
"dry_run": true
}Answers 200. One result per item.
Fields (BulkResult)
| Field | Type | Description |
|---|---|---|
object * | "bulk_result" | |
kind * | "ticket_types" | "add_ons" | "codes" | |
dry_run * | boolean | |
summary * | object | |
items * | array of BulkItemResult | |
resume * | object | Null when every item was reached. Otherwise the call ran out of time, or of test mode's items a minute: send the items at these places again, with the same keys, under a new Idempotency-Key or none. The same Idempotency… |
* required
Create or change many codes#
POST /v1/codes/bulk
Operation id bulkCodes. MCP tool bulk_codes. SDK tickets.bulk.codesOnce.
Creates or changes up to 500 codes in one call, with a result per item and a key per item so a repeat makes nothing twice. Items come back not_run if the call ran out of time: send the places in resume.not_run again with the same keys. For thousands of single-use codes, make a batch.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
Request body (BulkCodesInput)
| Field | Type | Description |
|---|---|---|
items * | array of BulkCodeItem | |
dry_run | boolean | true: run every item through the same checks and change nothing. |
* required
{
"items": [
{
"key": "cabana",
"create": {
"event": "evt_yrd2027",
"code": "CABANA",
"unlocks": [
"tt_cabana"
]
}
}
]
}Answers 200. One result per item.
Fields (BulkResult)
| Field | Type | Description |
|---|---|---|
object * | "bulk_result" | |
kind * | "ticket_types" | "add_ons" | "codes" | |
dry_run * | boolean | |
summary * | object | |
items * | array of BulkItemResult | |
resume * | object | Null when every item was reached. Otherwise the call ran out of time, or of test mode's items a minute: send the items at these places again, with the same keys, under a new Idempotency-Key or none. The same Idempotency… |
* required
Make many codes under one batch#
POST /v1/events/{id}/code_batches
Operation id createCodeBatch. MCP tool create_code_batch. SDK tickets.codeBatches.create.
Makes many single-use (or limited-use) codes under one named batch, up to 20,000: each is PREFIX- plus random characters that avoid look-alike letters. The codes are made by a background job; the batch answers 202 and its status moves from queued to making to ready. Send dry_run: true to see what it would make.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with evt_. |
Request body (CreateCodeBatchInput)
| Field | Type | Description |
|---|---|---|
name * | string | What the batch is for ("Staff passes", "Visit Detroit partners"); shown where the batch is counted. |
count * | integer | How many codes, 1 to 20000. |
prefix | string | Letters every code starts with ("VIP"): the code is PREFIX-XXXXXXXXXX. |
length | integer | Random characters after the prefix (31 letters and digits, none that look alike). |
description | string | |
discount | Discount | null | What each code takes off; a $0 pass is a 10000 bps (100%) discount. |
max_uses | integer | Orders each code may be used for. 1: a single-use code. |
max_quantity_per_order | integer | null | Units one order can have discounted. Left out: 1 for a single-use code (one use is one unit, and a bundle is one unit), no limit otherwise. To let one use cover more, ask for a number, or null for the whole order. |
starts_at | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
ends_at | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
partner | string | An id starting with ptr_. |
metadata | object | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
applies_to | "all" | array of string | "all" is every ticket type; an add-on is discounted only when named. |
unlocks | array of string | |
dry_run | boolean | true: say what would be made and change nothing. |
* required
{
"name": "Staff passes",
"count": 5000,
"prefix": "STAFF",
"length": 10,
"discount": {
"amount_off": null,
"percent_off_bps": 10000
},
"max_uses": 1,
"applies_to": "all",
"unlocks": [],
"dry_run": false
}Answers 200. dry_run: what would be made.
Fields (CodeBatchPreview)
| Field | Type | Description |
|---|---|---|
object * | "code_batch_preview" | |
event * | string | An id starting with evt_. |
name * | string | |
would_make * | integer | |
shape * | string | The look of one code (PREFIX-XXXXXXXXXX): the real ones are random. |
documents * | integer | Records the job would write (a code, its name lookup and its use pool). |
each_use * | string | What one use of one code covers, in a sentence. |
problems * | array of object | Why it would be refused, when it would. |
* required
Answers 202. The batch; its codes are made by a job.
Fields (CodeBatch)
| Field | Type | Description |
|---|---|---|
object * | "code_batch" | |
id * | string | An id starting with cbat_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
event * | string | An id starting with evt_. |
name * | string | |
status * | "queued" | "making" | "ready" | "failed" | queued, making (the job is at work), ready (every code is made), failed (the job gave up: its errors say why; codes already made stay). |
active * | boolean | False once the batch was turned off. |
turning_off * | boolean | True while the job that turns its codes off is still at work. |
count * | integer | Codes asked for. |
made * | integer | Codes made so far. |
active_codes * | integer | Of those made, the ones still switched on. |
off_codes * | integer | Of those made, the ones switched off, by the batch or by hand. A code of a batch that is off cannot be switched back on. |
uses * | integer | null | Orders made with the batch's codes. Only with expand=usage (null otherwise); a batch over 2000 codes is counted through its codes list instead. |
reserved * | integer | null | Uses held by open holds right now. Only with expand=usage. |
template * | object | What every code of the batch is, but for its text. |
job * | string | null | The job making the codes (GET /v1/jobs/{id}). |
errors * | array of object | |
created_by * | Actor | Who made a change. |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
finished_at * | string | null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
* required
Errors of its own. currency_mismatch, invalid_state_transition. The errors every operation can answer are on the errors page.
List code batches#
GET /v1/code_batches
Operation id listCodeBatches. MCP tool list_code_batches. SDK tickets.codeBatches.list.
Code batches with their counts of codes made, used and held, filtered by event.
Who may call it. Any one of: An API key with scope full, read. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has read (owner, admin, staff, viewer).
| Parameter | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many to return, 1 to 100 (default 20). |
starting_after | query | string | An id from the page before: the page after it. |
ending_before | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |
event | query | string | An id starting with evt_. |
Answers 200. A page of batches with their counts.
Fields
| Field | Type | Description |
|---|---|---|
object * | "list" | |
data * | array of CodeBatch | This page, newest first. |
has_more * | boolean | True when there is another page: pass the last id as starting_after. |
url * | "/v1/code_batches" | The path this list came from (/v1/code_batches). |
* required
Retrieve a batch and count it#
GET /v1/code_batches/{id}
Operation id getCodeBatch. MCP tool get_code_batch. SDK tickets.codeBatches.retrieve.
One batch and its progress. With expand=usage it also counts uses and open holds (refused for a batch over 2,000 codes: page its codes instead).
Who may call it. Any one of: An API key with scope full, read. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has read (owner, admin, staff, viewer).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with cbat_. |
expand | query | "usage" | usage: also count the batch's uses and open holds (a batch over 2000 codes is refused: page its codes). |
Answers 200. The batch (expand=usage: with its uses).
Fields (CodeBatch)
| Field | Type | Description |
|---|---|---|
object * | "code_batch" | |
id * | string | An id starting with cbat_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
event * | string | An id starting with evt_. |
name * | string | |
status * | "queued" | "making" | "ready" | "failed" | queued, making (the job is at work), ready (every code is made), failed (the job gave up: its errors say why; codes already made stay). |
active * | boolean | False once the batch was turned off. |
turning_off * | boolean | True while the job that turns its codes off is still at work. |
count * | integer | Codes asked for. |
made * | integer | Codes made so far. |
active_codes * | integer | Of those made, the ones still switched on. |
off_codes * | integer | Of those made, the ones switched off, by the batch or by hand. A code of a batch that is off cannot be switched back on. |
uses * | integer | null | Orders made with the batch's codes. Only with expand=usage (null otherwise); a batch over 2000 codes is counted through its codes list instead. |
reserved * | integer | null | Uses held by open holds right now. Only with expand=usage. |
template * | object | What every code of the batch is, but for its text. |
job * | string | null | The job making the codes (GET /v1/jobs/{id}). |
errors * | array of object | |
created_by * | Actor | Who made a change. |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
finished_at * | string | null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
* required
The codes of a batch#
GET /v1/code_batches/{id}/codes
Operation id listCodeBatchCodes. MCP tool list_code_batch_codes. SDK tickets.codeBatches.codes.
A page of the codes a batch has made so far, with their use counts. A caller who may change the catalog sees the code text; a read key or a viewer sees null. Page forward with starting_after.
Who may call it. Any one of: An API key with scope full, read. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has read (owner, admin, staff, viewer).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with cbat_. |
limit | query | integer | How many to return, 1 to 100 (default 20). |
starting_after | query | string | An id from the page before: the page after it. |
ending_before | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |
Answers 200. A page of its codes with their use counts. The text of a code is in the answer for a caller who may change the catalog (null for a read key or a viewer), never in a log or a URL.
Fields
| Field | Type | Description |
|---|---|---|
object * | "list" | |
data * | array of CodeAsRead | This page, newest first. |
has_more * | boolean | True when there is another page: pass the last id as starting_after. |
url * | string | The path this list came from (/v1/code_batches/{id}/codes). |
* required
The codes of a batch as a CSV#
GET /v1/code_batches/{id}/export
Operation id exportCodeBatch. MCP tool export_code_batch. SDK tickets.codeBatches.export.
Every code a batch has made so far as a CSV (code, code_id, active). It hands out all codes at once, so it needs the right to change the catalog.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with cbat_. |
Answers 200. code, code_id, active: one row per code, made so far.
The body is text/csv.
Turn off every code of a batch#
POST /v1/code_batches/{id}/turn_off
Operation id turnOffCodeBatch. MCP tool turn_off_code_batch. SDK tickets.codeBatches.turnOff.
Turns off every code in a batch together. A background job does it (202); codes still being made are made off. Call it again if the job gave up and codes are still on.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has catalog.write (owner, admin, staff).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with cbat_. |
Answers 202. The batch is off now; a job switches its codes off, and codes still being made are made off. Sent again while codes are still on (a job that gave up), it starts another job.
Fields (CodeBatch)
| Field | Type | Description |
|---|---|---|
object * | "code_batch" | |
id * | string | An id starting with cbat_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
event * | string | An id starting with evt_. |
name * | string | |
status * | "queued" | "making" | "ready" | "failed" | queued, making (the job is at work), ready (every code is made), failed (the job gave up: its errors say why; codes already made stay). |
active * | boolean | False once the batch was turned off. |
turning_off * | boolean | True while the job that turns its codes off is still at work. |
count * | integer | Codes asked for. |
made * | integer | Codes made so far. |
active_codes * | integer | Of those made, the ones still switched on. |
off_codes * | integer | Of those made, the ones switched off, by the batch or by hand. A code of a batch that is off cannot be switched back on. |
uses * | integer | null | Orders made with the batch's codes. Only with expand=usage (null otherwise); a batch over 2000 codes is counted through its codes list instead. |
reserved * | integer | null | Uses held by open holds right now. Only with expand=usage. |
template * | object | What every code of the batch is, but for its text. |
job * | string | null | The job making the codes (GET /v1/jobs/{id}). |
errors * | array of object | |
created_by * | Actor | Who made a change. |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
finished_at * | string | null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
* required
Does this code work right now, and what would it do#
POST /v1/events/{id}/code_check
Operation id checkEventCode. MCP tool check_event_code. SDK tickets.bulk.checkCode.
Asks whether a code works for an event right now and what it would do (which items, how much off), or why not (code_expired, code_exhausted...). It reads only: nothing is held or used. The code goes in the body, never the URL.
Who may call it. Any one of: An API key with scope full, read. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has read (owner, admin, staff, viewer).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with evt_. |
Request body (CheckCodeInput)
| Field | Type | Description |
|---|---|---|
code * | string | A promo or access code as typed; case does not matter. |
* required
{
"code": "VISITDETROIT"
}Answers 200. Read-only: nothing is held or used.
Fields (CodeCheck)
| Field | Type | Description |
|---|---|---|
object * | "code_check" | |
event * | string | An id starting with evt_. |
found * | boolean | False when the event has no such code. Nothing else is said then (a retired code and a guess look the same). |
code_id * | string | null | An id starting with code_. |
batch * | string | null | An id starting with cbat_. |
works_now * | boolean | True when a buyer who types it right now gets what it promises: it is on, in its window, has uses left, the event is on sale and what it discounts or unlocks is on sale. |
reasons * | array of object | Why not, most important first. Empty when it works. |
would * | object | What it does, whether or not it works now. Null when not found. |
as_of * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
* required