Reference
Errors
Every error code the API answers, what it means and what to do.
Every answer that is not a success has the same body:
{
"error": {
"type": "state_error",
"code": "sold_out",
"message": "An item is sold out; `param` names it.",
"param": "items[0]",
"doc_url": "/docs/errors#sold_out",
"request_id": "req_9f8e7d6c5b4a",
"decline_code": null
}
}- Match on
code. It is stable: the list only grows, and a code's status and type never change once shipped. - Show
messageto a person if you like. It is written for a developer and can change. - Quote
request_id(req_…, also theRequest-Idheader) to support. doc_urlis a path on this site, not a full address: put the origin in front of it (https://rcms-tickets-test.web.app/docs/errors#sold_out).paramnames the field at fault (items[1].quantity), or is null.decline_codeis set forpayment_declinedonly:card_declined,insufficient_funds,expired_card,processing_error,fraudulent.
A client written against this list will meet codes it does not know one day. Treat an unknown code by its status: 4xx is yours to fix, 5xx is ours to retry.
The types#
type | Means |
|---|---|
invalid_request_error | Fix the request. |
authentication_error | The key, session or token is missing or bad. |
permission_error | The caller may not do this. |
idempotency_error | An Idempotency-Key was reused, or is in flight. |
rate_limit_error | Slow down: Retry-After. |
state_error | The thing is not in a state that allows this. |
payment_error | The payment failed or was declined. |
api_error | Our side. Retry with the same key. |
Which failures are safe to retry is in idempotency and retries.
The retry delays the API suggests, in seconds: lock_timeout 1, outcome_unknown 5, request_timeout 60.
400: the request#
Something in the request is wrong. param names the field. Fix it and send a new request with a new Idempotency-Key.
parameter_invalid#
400, invalid_request_error. A parameter has the wrong type, format or value; param names it.
parameter_missing#
400, invalid_request_error. A required parameter is missing; param names it.
parameter_unknown#
400, invalid_request_error. The request has a parameter this endpoint does not take; param names it (? for a key that is not a plain identifier of 40 characters or fewer), and the message says what the object takes.
body_invalid#
400, invalid_request_error. The body is not a JSON object.
idempotency_key_invalid#
400, invalid_request_error. Idempotency-Key must be 1 to 255 printable characters, no spaces.
webhook_signature_invalid#
400, invalid_request_error. A payment provider's webhook failed its signature check.
currency_mismatch#
400, invalid_request_error. An amount is in a currency other than the event's.
too_many_tickets#
400, invalid_request_error. An order holds at most the event's max_tickets_per_order tickets (50 at most; a comp 200). Split it.
sms_country_not_allowed#
400, invalid_request_error. Texts don't go to that number's country (the organization's sms_countries).
too_many_pools#
400, invalid_request_error. The hold touches more than 64 inventory pools (each ticket type, add-on and day in it, the event, and a limited code count one each); split it.
provider_unavailable#
400, invalid_request_error. The test provider works in test mode only.
consent_requires_phone#
400, invalid_request_error. SMS consent needs the buyer's phone.
payment_required#
400, invalid_request_error. Something is due, so a payment is needed.
401: who is calling#
The key, session, device token or link is missing or no good. Retrying the same call cannot help.
missing_api_key#
401, authentication_error. No key was sent. Send Authorization: Bearer rt_test_….
invalid_api_key#
401, authentication_error. The key is not one we know.
api_key_revoked#
401, authentication_error. The key was revoked or has expired after a roll.
not_signed_in#
401, authentication_error. The dashboard session is missing or has ended.
sign_in_code_invalid#
401, authentication_error. The sign-in code or link is wrong, used or expired.
device_token_invalid#
401, authentication_error. The door device token is unknown, revoked or expired.
pairing_code_invalid#
401, authentication_error. The device pairing code is wrong, used or expired.
holder_link_invalid#
401, authentication_error. The ticket link is not valid any more.
holder_session_required#
401, authentication_error. Sign in to My tickets first.
partner_link_revoked#
401, authentication_error. This partner link was turned off.
402: payments#
The payment was declined or the provider failed. decline_code says why for a decline. Nothing was charged.
payment_declined#
402, payment_error. The payment was declined; decline_code says why.
payment_failed#
402, payment_error. The payment provider failed; nothing was charged. Try again.
403: what the caller may do#
The caller is known and not allowed. Retrying cannot help.
live_mode_not_open#
403, permission_error. Live mode isn't open yet. Use a test key.
insufficient_scope#
403, permission_error. The key's scope (full, read, checkin) does not allow this.
permission_denied#
403, permission_error. Your role does not allow this.
origin_not_allowed#
403, permission_error. A dashboard request came from another origin.
test_mode_only#
403, permission_error. This works with a test key only.
feature_disabled#
403, permission_error. The organization has this turned off (hosted checkout, texts, an integration).
device_sales_not_allowed#
403, permission_error. This door device may not sell.
404: not found#
No such resource, or no such endpoint. A malformed id in a path answers route_not_found.
resource_missing#
404, invalid_request_error. No such resource in this organization and mode; param names the id.
route_not_found#
404, invalid_request_error. No such endpoint.
405 and 413: before any route runs#
The router and the body reader answer these before an operation is chosen, so no operation lists them.
method_not_allowed#
405, invalid_request_error. The endpoint exists but not for this method; the Allow header lists the methods it takes.
body_too_large#
413, invalid_request_error. The body is larger than this endpoint reads (256 KB to 2.5 MB, by endpoint; the message says which).
409 and 410: state#
The request is fine and the thing is not in a state that allows it, or an idempotency key was reused. message says which state.
last_owner#
409, state_error. An organization keeps at least one owner.
idempotency_key_reused#
409, idempotency_error. This Idempotency-Key was used with a different request.
idempotency_key_in_use#
409, idempotency_error. A request with this Idempotency-Key is still running. Try again in a moment.
invalid_state_transition#
409, state_error. The resource is not in a state that allows this; the message names both.
org_switched#
409, state_error. The dashboard page shows another organization than the session now acts in (switched in another tab). Reload.
mode_switched#
409, state_error. The dashboard page shows another mode (test or live) than the session now acts in (switched in another tab). Reload.
event_not_on_sale#
409, state_error. The event is a draft, paused, ended or cancelled.
event_has_orders#
409, state_error. The event or item has orders, so it cannot be deleted (archive it, or cancel the event).
day_in_use#
409, state_error. A ticket type or add-on names this day, or it was used at the door.
sold_out#
409, state_error. An item is sold out; param names it.
quantity_unavailable#
409, state_error. Fewer are left than asked for; param names the item.
sale_not_started#
409, state_error. An item's sale window has not opened.
sale_ended#
409, state_error. An item's sale window has closed.
ticket_type_unavailable#
409, state_error. A type is hidden without its access code, comp only, or archived.
order_minimum_not_met#
409, state_error. Fewer than a type's per-order minimum.
order_maximum_exceeded#
409, state_error. More than a type's or code's per-order maximum.
add_on_requires_ticket#
409, state_error. A per-ticket add-on needs as many tickets of a type it applies to.
limit_below_committed#
409, state_error. A capacity, or a code's max_uses, can't go below what is already sold, comped or held (used or reserved, for a code); the message says how many.
hold_expired#
410, state_error. The hold expired and its items were released. Make a new hold.
hold_released#
410, state_error. The hold was released.
hold_consumed#
409, state_error. The hold already became an order (the error names it in param).
hold_extension_used#
409, state_error. A hold can be extended once.
code_invalid#
409, state_error. No such code for this event.
code_not_started#
409, state_error. The code has not started.
code_expired#
409, state_error. The code has ended; the message says when.
code_exhausted#
409, state_error. The code has been used as many times as it may be.
code_not_applicable#
409, state_error. The code does not apply to anything in the hold.
code_already_exists#
409, state_error. The event already has a code with this text (codes ignore case).
checkout_link_inactive#
410, state_error. The checkout link was turned off, has expired or has taken all the orders it may.
amount_mismatch#
409, state_error. The payment amount does not equal the total we computed.
payment_reference_conflict#
409, state_error. This external payment reference already paid a different order.
order_not_cancellable#
409, state_error. Only a pending order can be cancelled (refund a paid one).
order_not_refundable#
409, state_error. The order is pending, cancelled, disputed or fully refunded, or its tickets are still being issued (try again in a few seconds).
refund_exceeds_remaining#
409, state_error. The refund is more than what is left to refund.
order_disputed#
409, state_error. The order is disputed: nothing changes until the dispute closes.
ticket_void#
409, state_error. The ticket is void.
ticket_frozen#
409, state_error. The ticket is frozen by a dispute. See the box office.
transfer_on_hold#
409, state_error. This ticket can't change hands right now. Ask the sender or the organizer.
refund_pending#
409, state_error. A refund on its way will void this ticket, so it cannot move until the refund ends.
holder_link_replaced#
410, state_error. This link has been replaced: the email it went to was changed, and the new link went to the new address. It shows nothing of the order or tickets.
ticket_no_longer_held#
409, state_error. This link no longer holds the ticket: it was transferred, or reissued with new links. Its current link has it.
wallet_link_expired#
410, state_error. This Add to Wallet link is out of date (it expired, or the ticket changed since). Open your ticket and add it from there.
transfers_not_allowed#
409, state_error. The event does not allow transfers.
transfer_cutoff_passed#
409, state_error. Transfers closed before doors.
transfer_limit_reached#
409, state_error. The ticket has been transferred as many times as the event allows.
transfer_pending#
409, state_error. The ticket already has a pending transfer; cancel it first.
ticket_checked_in#
409, state_error. The ticket is checked in today, so it cannot move.
swap_not_allowed#
409, state_error. This event does not let holders swap days, or this ticket cannot be swapped by its holder.
swap_cutoff_passed#
409, state_error. Day swaps closed before doors.
swap_limit_reached#
409, state_error. The ticket has been swapped as many times as the event allows.
swap_not_same_price#
409, state_error. Only a swap at the same price is made here: the other day costs a different amount for this ticket.
swap_day_full#
409, state_error. The other day has no room left. The ticket is unchanged.
swap_ticket_changed#
409, state_error. The ticket changed since this page loaded. Reload it and try again.
swap_bundle#
409, state_error. A ticket from a bundle is not swapped on its own.
comp_upgrade_not_allowed#
409, state_error. This event doesn't allow changing a comp. Ask the owner, or give a new comp and void this one.
exchange_quote_expired#
410, state_error. The exchange quote expired. Ask for a new one.
exchange_refund_required#
409, state_error. The new items cost less: confirm with refund_difference: true.
refund_window_closed#
409, state_error. Refunds after the postponement closed at the deadline the organizer set.
undo_window_passed#
409, state_error. A check-in can be undone for 60 seconds.
too_many_event_images#
409, state_error. An event keeps at most 20 images.
too_many_webhook_endpoints#
409, state_error. A mode has at most 16 webhook endpoints.
member_exists#
409, state_error. That person is already a member.
invite_invalid#
410, state_error. The invite was used, revoked or has expired.
lock_timeout#
409, api_error. This record was busy with another change. Nothing was written; retry the request.
429: slow down#
Wait Retry-After seconds, then retry with the same Idempotency-Key.
wallet_message_limit#
429, rate_limit_error. An event sends at most 3 Wallet messages a day.
rate_limited#
429, rate_limit_error. Too many requests. Wait Retry-After seconds.
sms_cap_reached#
429, rate_limit_error. The organization's texts for today, or this number's, are used up.
too_many_attempts#
429, rate_limit_error. Too many wrong codes. Ask for a new one.
5xx: our side#
Retry with the same Idempotency-Key, after Retry-After. A 503 outcome_unknown means the change may have been saved: never retry it with a new key.
internal_error#
500, api_error. Something went wrong on our side. Retry with the same Idempotency-Key.
service_unavailable#
503, api_error. We are busy or down for a moment. Retry after Retry-After.
outcome_unknown#
503, api_error. We could not confirm whether this change was saved. Retry with the same Idempotency-Key.
request_timeout#
503, api_error. The request took too long and may still finish. Retry with the same Idempotency-Key in a minute.
From the MCP server#
An agent's tool call can also answer these. They come back as a tool error with the same code, never as an HTTP status.
org_mismatch#
A key belongs to one org and acts only in it, and the call named another. Leave org out, or use a key of that org.
org_required#
A person's connection named no org, or not an org id. Name org on every call: list_orgs says which.
org_not_found#
This person is not a member of that org, or there is no such org.
mode_required#
A person's connection named no mode. Name mode, test or live, on every call.
member_unreadable#
We could not read who this person is in that org, so nothing happened. Try again.
confirmation_invalid#
That confirmation was not made for this key or connection, mode and tool. Call the tool again without it, and use the new one.
confirmation_expired#
That confirmation ran out, or is spent. Look at the thing again, then call the tool again.
confirmation_changed#
The arguments are not the ones the dry run was made for. A confirmation covers exactly one set of them.
confirmation_unsettled#
The call this confirmation was used for was never seen to finish. Read the thing to see what happened before you try again.
dry_run_changed#
What the dry run showed is no longer true. Look again and get a new confirmation.