Demo docs: examples are illustrative.
Referral API

Errors

Every error has the same shape, with a type you can switch on.

Example error
{
  "error": {
    "type": "invalid_request",
    "message": "email must be a valid email address",
    "param": "email",
    "request_id": "req_8Ty3Ui0P"
  }
}

Prop

Type

StatusTypeWhat to do
400, 422invalid_requestFix the request. Retrying won't help.
401authentication_errorCheck the API key and environment.
404not_foundCheck the ID. Test and live objects are separate.
409conflictThe object is in the wrong state for this action.
429rate_limitedWait for Retry-After, then retry.
500api_errorRetry with the same idempotency key.

How is this guide?