Skip to main content
Errors use standard HTTP status codes and a consistent JSON response format.

Error format

Errors are returned in the following format:
Include the request_id when contacting Key2Arena support about a failed API request.

HTTP status codes

Authentication errors

Unauthorized

Returned when the access token is missing, invalid, revoked, or expired.

Insufficient scope

Returned when the access token does not include the scope required by the endpoint.

Validation errors

Invalid request data returns 422 Unprocessable Entity.
The errors object contains validation messages for each invalid field.

Order errors

Insufficient balance

Returned when the account does not have enough available balance to complete the order.
The order is not created and the account is not charged.

Idempotency conflict

Returned when an Idempotency-Key is reused with different order data.
Use a new Idempotency-Key when creating a different order.

Not found

Returned when a requested product, order, or other resource cannot be found.

Rate limits

When the request limit is exceeded, the API returns 429 Too Many Requests.
When provided, retry_after indicates how long to wait before retrying the request.

Server errors

Unexpected errors return 500 Internal Server Error.
For 500 responses, avoid immediately creating a new order with a different Idempotency-Key. Retry the original request with the same key to prevent duplicate purchases.