CraftPayDocs
Getting started

Errors

Errors use normal HTTP status codes and always have the same JSON shape.

Error format

JSON
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key (Authorization: Bearer cp_sk_…)"
  }
}

Error codes

HTTPCodeMeaning
400invalid_cursorstarting_after isn't a valid order id.
401unauthorizedThe API key is missing or wrong.
404not_foundThe endpoint or the object doesn't exist (or belongs to another store).
405method_not_allowedThat method isn't supported here – use GET (or POST /v1/checkouts).
429rate_limitedMore than 120 requests in a minute. Wait and try again.

Stuck? Write to mail@craftpay.net