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
| Status | Code | When |
|---|---|---|
400 | invalid_request | A parameter or the body is not valid; the message says which and why. Nothing was changed. |
401 | missing_key | No X-API-KEY header, or an empty one. |
401 | invalid_key | The key is not a RepriceMax key. |
401 | key_revoked | The key was revoked. Create a new one under Settings, Developers. |
401 | no_subscription | The team has no active subscription. |
401 | plan_without_api | The team's plan does not include API access. |
403 | forbidden | The key may not do this. |
404 | not_found | No 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. |
405 | method_not_allowed | The address does not take this method. |
415 | unsupported_media_type | The body is not sent as JSON. Send Content-Type: application/json. |
429 | rate_limited | Too many requests. Wait for the seconds in the Retry-After header, then try again. |
500 | server_error | Something 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. |