Errors

We indicate the type of API error that occured in two ways:

  • HTTP status codes.
  • Unique Error Codes. If a situation occurs that you are expected to be able to react to with more precision than HTTP status codes would allow, we will return a unique error code in the response body as well.

Example Error Body

Our error responses always have the following JSON structure:

1{
2 "code": "generic_error",
3 "message": "Http method OPTIONS is not supported."
4}

HTTP Error Status Codes

The following HTTP status error codes are used in our API:

Status CodeDescription
400Bad Request: The request could not be understood by the server.
401Unauthorized: Authentication is required and has failed or has not yet been provided.
403Forbidden: The server understood the request but refuses to authorize it.
404Not Found: The requested resource could not be found.
405Method Not Allowed: The request method is not supported for the requested resource.
408Request Timeout: The server timed out waiting for the request.
409Conflict: The request could not be completed due to a conflict with the current state of the resource.
410Gone: The resource requested is no longer available and will not be available again.
413Payload Too Large: The request is larger than the server is willing or able to process.
415Unsupported Media Type: The request entity has a media type which the server or resource does not support.
416Range Not Satisfiable: The server cannot provide the requested range of data.
422Unprocessable Entity: The server understands the request, but could not succeed in processing it.
429Too Many Requests: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
500Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request.
501Not Implemented: The server does not support the functionality required to fulfill the request.
502Bad Gateway: The server received an invalid response from an upstream server.
503Service Unavailable: The server is currently unable to handle the request due to temporary overloading or maintenance.
504Gateway Timeout: The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server.
505HTTP Version Not Supported: The server does not support the HTTP protocol version that was used in the request.

Unique Error Codes

The following unique error codes are used in our API:

Error CodeDescription
generic_errorAn error occurred. See HTTP status code.
saas_tenant_not_foundProvided tenant GUID (parameter tenant) is not a valid tenant ID.
saas_environment_not_foundProvided tenant environment name (parameter environment) is not a valid environment name for the selected tenant.
saas_company_not_foundProvided company name (parameter company) is not a valid company name for the selected tenant and environment.
server_timeoutThe server timed out while processing the request.
unsupported_http_methodThe http method is not supported for this endpoint.
resource_not_foundThe selected resource does not exist.
globalsale_duplicate_keyDuplicate key.
capacity_exceededThe capacity has been exceeded. Entry is not allowed.
invalid_referenceThe reference is invalid.
reservation_not_foundThe required reservation for the ticket was not found.
not_validThe ticket is not valid.
reservation_mismatchYour reservation is not for the current event.
admission_not_openThe admission code is not open.
admission_not_open_entryThe admission code is not open for this entry.
not_confirmedThe ticket has not been confirmed.
reservation_not_for_todayThe reservation is not valid for today.
reservation_capacity_exceededThe reservation capacity has been exceeded.
ticket_canceledThe ticket has been canceled.
ticket_not_valid_yetThe ticket is not valid yet.
ticket_expiredThe ticket has expired.
quantity_change_not_allowedThe quantity change is not allowed.
no_default_scheduleNo default schedule could be found.
missing_paymentThe ticket is missing a payment transaction.
schedule_entry_expiredThe schedule entry has expired.
reservation_not_for_nowThe reservation is not valid for now.
concurrent_capacity_exceededThe concurrent capacity has been exceeded.
reschedule_not_allowedRescheduling is not allowed.
invalid_admission_codeThe admission code is invalid.
has_paymentThe ticket has already been paid.
duration_exceededThe admission duration has expired.
ticket_blockedThe ticket is blocked.
ticket_not_valid_for_suggested_admissionThe ticket is not valid for the suggested admission.
ticket_not_allowedThe ticket is not allowed since no valid admission code could be found.
wallet_expiredThe wallet has expired.
ticket_reservation_has_no_ticketsThe ticket reservation has no tickets.
member_blockedMember is blocked.
member_card_blockedMember card is blocked.
member_card_not_allowedMember card is not allowed.
member_card_expiredMember card has expired.
membership_setup_missing_ticket_itemMembership setup is missing ticket item.
membership_setup_missingMembership setup is missing.
membership_blockedMembership is blocked
member_unique_id_violationMember with same unique id already exists.
member_count_exceededMember count exceeded.
member_card_existsMember card already exists.
no_admin_memberNo admin member found.
member_card_blankMember card is blank.
invalid_contactThe provided contact number is not valid in context of the customer.
age_verification_setupAdd member failed on age verification because item number for sales was not provided.
age_verificationAge verification failed.
allow_member_merge_not_setThis request violates the community’s member identity uniqueness rule. See the API documentation for merge options.
member_card_limitation_errorLimitations on member card apply and deny admission.
denied_by_speedgateThe reference number was denied by the gate.
scanner_not_foundThe scanner was not found.
scanner_id_requiredThe scanner id is required.
scanner_not_enabledThe scanner is not enabled.
number_not_whitelistedThe reference number was not whitelisted by the gate.
number_rejectedThe reference number was actively rejected by gate setup.