Error Handling

Error Handling

What an error looks like, and what each code means

Every error has the same shape: success is false, message says what is wrong in words, and code names it in a way a program can check. Branch on code, not on the message, whose wording can change.

Error Response Format

Error Response Example
{
  "success": false,
  "message": "strategyId must be an id (a GUID, such as 3fa85f64-5717-4562-b3fc-2c963f66afa6).",
  "code": "invalid_request"
}

Status codes and error codes

StatusCodeWhen
400invalid_requestA parameter or the body is not valid; the message says which and why. Nothing was changed.
401missing_keyNo X-API-KEY header, or an empty one.
401invalid_keyThe key is not a RepriceMax key.
401key_revokedThe key was revoked. Create a new one under Settings, Developers.
401no_subscriptionThe team has no active subscription.
401plan_without_apiThe team's plan does not include API access.
403forbiddenThe key may not do this.
404not_foundNo such listing, strategy or report in your team, or no such address. Ids are GUIDs; a SKU or ASIN in their place is not found.
405method_not_allowedThe address does not take this method.
415unsupported_media_typeThe body is not sent as JSON. Send Content-Type: application/json.
429rate_limitedToo many requests. Wait for the seconds in the Retry-After header, then try again.
500server_errorSomething went wrong on our side. Check whether the change was made before you try it again, and if it keeps happening, send support the reference in the message.