Developers / Docs / Errors
Errors
Every failure has a code you can act on.
Illustrative. The Partner API is a proposal. Names, fields and numbers on this page show the intended shape; the final contract will be published as an OpenAPI file with the sandbox.
Errors use normal HTTP status codes and a small JSON body.
402
{
"error": {
"code": "budget_low",
"message": "Rewards Budget is too low to approve this sale.",
"request_id": "req_8H2K"
}
}Quote the request_id when you contact support.
| HTTP | Code | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_request | A field is missing or wrong | Fix the request |
| 401 | bad_signature | Signature, timestamp or key is wrong | Check signing and clock |
| 403 | scope_missing | Key lacks the scope | Use another key or request the scope |
| 403 | ip_not_allowed | Call from an address not on the allow-list | Add the address |
| 404 | not_found | Unknown ProCo, outlet or code | Check the ID |
| 409 | already_used | Code already redeemed, or bill already sent with different data | Do not retry |
| 410 | expired | Code passed its end date | Tell the customer |
| 402 | budget_low | Outlet Rewards Budget too low | Owner tops up |
| 422 | declined | Business rule refused it, for example insufficient points | Show the message |
| 429 | rate_limited | Too many calls | Wait for Retry-After |
| 500 | server_error | Something failed at Caship | Retry with the same idempotency key |
Retry only on 429 and 5xx, with growing gaps. Never retry a 4xx without changing the request.
