Skip to content

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.

View as Markdown

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)

FieldTypeDescription
event *objectThe event, as POST /v1/events takes it. Its days are made with it.
ticket_typesarray of SetupTicketType
add_onsarray of SetupAddOn
codesarray of SetupCode
code_batchesarray of SetupCodeBatch
dry_runbooleantrue: check everything and list what would be made. Nothing is written.

* required

JSON
{
  "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)

FieldTypeDescription
object *"event_setup"
dry_run *boolean
event *Event | nullThe draft event; null in a dry run.
copied_from *string | nullFor a copy: the event it was copied from.
would *objectWhat 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 CodeBatchQueued; their codes are made by a job each (job on the batch). Empty in a dry run.
skipped *array of stringWhat a copy left behind, in words.
problems *array of objectA 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)

FieldTypeDescription
object *"event_setup"
dry_run *boolean
event *Event | nullThe draft event; null in a dry run.
copied_from *string | nullFor a copy: the event it was copied from.
would *objectWhat 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 CodeBatchQueued; their codes are made by a job each (job on the batch). Empty in a dry run.
skipped *array of stringWhat a copy left behind, in words.
problems *array of objectA 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).

ParameterInTypeDescription
id *pathstringAn id starting with evt_.

Answers 200. Post it to POST /v1/events/setup in this org or another.

Fields (EventTemplate)

FieldTypeDescription
object *"event_template"
source *stringAn id starting with evt_.
setup *EventTemplateBodyA setup body read from an event.
notes *array of stringWhat 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).

ParameterInTypeDescription
id *pathstringAn id starting with evt_.

Request body (CopyEventInput)

FieldTypeDescription
namestringThe new event's name (default: the old name and "(copy)").
start_datestringThe 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.
daysarray of DayInputOr 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_runboolean
JSON
{
  "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)

FieldTypeDescription
object *"event_setup"
dry_run *boolean
event *Event | nullThe draft event; null in a dry run.
copied_from *string | nullFor a copy: the event it was copied from.
would *objectWhat 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 CodeBatchQueued; their codes are made by a job each (job on the batch). Empty in a dry run.
skipped *array of stringWhat a copy left behind, in words.
problems *array of objectA 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)

FieldTypeDescription
object *"event_setup"
dry_run *boolean
event *Event | nullThe draft event; null in a dry run.
copied_from *string | nullFor a copy: the event it was copied from.
would *objectWhat 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 CodeBatchQueued; their codes are made by a job each (job on the batch). Empty in a dry run.
skipped *array of stringWhat a copy left behind, in words.
problems *array of objectA 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)

FieldTypeDescription
items *array of BulkTicketTypeItem
dry_runbooleantrue: run every item through the same checks and change nothing.

* required

JSON
{
  "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)

FieldTypeDescription
object *"bulk_result"
kind *"ticket_types" | "add_ons" | "codes"
dry_run *boolean
summary *object
items *array of BulkItemResult
resume *objectNull 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)

FieldTypeDescription
items *array of BulkAddOnItem
dry_runbooleantrue: run every item through the same checks and change nothing.

* required

JSON
{
  "items": [
    {
      "key": "parking",
      "id": "add_parking",
      "update": {
        "price": {
          "amount": 3500,
          "currency": "usd"
        }
      }
    }
  ],
  "dry_run": true
}

Answers 200. One result per item.

Fields (BulkResult)

FieldTypeDescription
object *"bulk_result"
kind *"ticket_types" | "add_ons" | "codes"
dry_run *boolean
summary *object
items *array of BulkItemResult
resume *objectNull 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)

FieldTypeDescription
items *array of BulkCodeItem
dry_runbooleantrue: run every item through the same checks and change nothing.

* required

JSON
{
  "items": [
    {
      "key": "cabana",
      "create": {
        "event": "evt_yrd2027",
        "code": "CABANA",
        "unlocks": [
          "tt_cabana"
        ]
      }
    }
  ]
}

Answers 200. One result per item.

Fields (BulkResult)

FieldTypeDescription
object *"bulk_result"
kind *"ticket_types" | "add_ons" | "codes"
dry_run *boolean
summary *object
items *array of BulkItemResult
resume *objectNull 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).

ParameterInTypeDescription
id *pathstringAn id starting with evt_.

Request body (CreateCodeBatchInput)

FieldTypeDescription
name *stringWhat the batch is for ("Staff passes", "Visit Detroit partners"); shown where the batch is counted.
count *integerHow many codes, 1 to 20000.
prefixstringLetters every code starts with ("VIP"): the code is PREFIX-XXXXXXXXXX.
lengthintegerRandom characters after the prefix (31 letters and digits, none that look alike).
descriptionstring
discountDiscount | nullWhat each code takes off; a $0 pass is a 10000 bps (100%) discount.
max_usesintegerOrders each code may be used for. 1: a single-use code.
max_quantity_per_orderinteger | nullUnits 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_atstring (date-time)An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
ends_atstring (date-time)An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
partnerstringAn id starting with ptr_.
metadataobjectYour 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.
unlocksarray of string
dry_runbooleantrue: say what would be made and change nothing.

* required

JSON
{
  "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)

FieldTypeDescription
object *"code_batch_preview"
event *stringAn id starting with evt_.
name *string
would_make *integer
shape *stringThe look of one code (PREFIX-XXXXXXXXXX): the real ones are random.
documents *integerRecords the job would write (a code, its name lookup and its use pool).
each_use *stringWhat one use of one code covers, in a sentence.
problems *array of objectWhy it would be refused, when it would.

* required

Answers 202. The batch; its codes are made by a job.

Fields (CodeBatch)

FieldTypeDescription
object *"code_batch"
id *stringAn id starting with cbat_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn 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 *booleanFalse once the batch was turned off.
turning_off *booleanTrue while the job that turns its codes off is still at work.
count *integerCodes asked for.
made *integerCodes made so far.
active_codes *integerOf those made, the ones still switched on.
off_codes *integerOf 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 | nullOrders 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 | nullUses held by open holds right now. Only with expand=usage.
template *objectWhat every code of the batch is, but for its text.
job *string | nullThe job making the codes (GET /v1/jobs/{id}).
errors *array of object
created_by *ActorWho 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 | nullAn 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).

ParameterInTypeDescription
limitqueryintegerHow many to return, 1 to 100 (default 20).
starting_afterquerystringAn id from the page before: the page after it.
ending_beforequerystringAn 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…
eventquerystringAn id starting with evt_.

Answers 200. A page of batches with their counts.

Fields

FieldTypeDescription
object *"list"
data *array of CodeBatchThis page, newest first.
has_more *booleanTrue 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).

ParameterInTypeDescription
id *pathstringAn id starting with cbat_.
expandquery"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)

FieldTypeDescription
object *"code_batch"
id *stringAn id starting with cbat_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn 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 *booleanFalse once the batch was turned off.
turning_off *booleanTrue while the job that turns its codes off is still at work.
count *integerCodes asked for.
made *integerCodes made so far.
active_codes *integerOf those made, the ones still switched on.
off_codes *integerOf 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 | nullOrders 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 | nullUses held by open holds right now. Only with expand=usage.
template *objectWhat every code of the batch is, but for its text.
job *string | nullThe job making the codes (GET /v1/jobs/{id}).
errors *array of object
created_by *ActorWho 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 | nullAn 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).

ParameterInTypeDescription
id *pathstringAn id starting with cbat_.
limitqueryintegerHow many to return, 1 to 100 (default 20).
starting_afterquerystringAn id from the page before: the page after it.
ending_beforequerystringAn 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

FieldTypeDescription
object *"list"
data *array of CodeAsReadThis page, newest first.
has_more *booleanTrue when there is another page: pass the last id as starting_after.
url *stringThe 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).

ParameterInTypeDescription
id *pathstringAn 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).

ParameterInTypeDescription
id *pathstringAn 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)

FieldTypeDescription
object *"code_batch"
id *stringAn id starting with cbat_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn 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 *booleanFalse once the batch was turned off.
turning_off *booleanTrue while the job that turns its codes off is still at work.
count *integerCodes asked for.
made *integerCodes made so far.
active_codes *integerOf those made, the ones still switched on.
off_codes *integerOf 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 | nullOrders 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 | nullUses held by open holds right now. Only with expand=usage.
template *objectWhat every code of the batch is, but for its text.
job *string | nullThe job making the codes (GET /v1/jobs/{id}).
errors *array of object
created_by *ActorWho 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 | nullAn 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).

ParameterInTypeDescription
id *pathstringAn id starting with evt_.

Request body (CheckCodeInput)

FieldTypeDescription
code *stringA promo or access code as typed; case does not matter.

* required

JSON
{
  "code": "VISITDETROIT"
}

Answers 200. Read-only: nothing is held or used.

Fields (CodeCheck)

FieldTypeDescription
object *"code_check"
event *stringAn id starting with evt_.
found *booleanFalse when the event has no such code. Nothing else is said then (a retired code and a guess look the same).
code_id *string | nullAn id starting with code_.
batch *string | nullAn id starting with cbat_.
works_now *booleanTrue 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 objectWhy not, most important first. Empty when it works.
would *objectWhat 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