Caship Sign in

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.

HTTPCodeMeaningWhat to do
400invalid_requestA field is missing or wrongFix the request
401bad_signatureSignature, timestamp or key is wrongCheck signing and clock
403scope_missingKey lacks the scopeUse another key or request the scope
403ip_not_allowedCall from an address not on the allow-listAdd the address
404not_foundUnknown ProCo, outlet or codeCheck the ID
409already_usedCode already redeemed, or bill already sent with different dataDo not retry
410expiredCode passed its end dateTell the customer
402budget_lowOutlet Rewards Budget too lowOwner tops up
422declinedBusiness rule refused it, for example insufficient pointsShow the message
429rate_limitedToo many callsWait for Retry-After
500server_errorSomething failed at CashipRetry with the same idempotency key

Retry only on 429 and 5xx, with growing gaps. Never retry a 4xx without changing the request.