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 returns422 Unprocessable Entity.
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.Idempotency conflict
Returned when anIdempotency-Key is reused with different order data.
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 returns429 Too Many Requests.
retry_after indicates how long to wait before retrying the request.
Server errors
Unexpected errors return500 Internal Server Error.