Error shape
Developer (/v1/*) endpoints return errors in a typed envelope:
Status codes
Common error types
authentication_error— the key is missing, invalid or revoked.invalid_request_error— a field failed validation;messagenames the first problem.
Rate limits
Endpoints are rate-limited per key (and per IP as a floor). A limited request returns429. Use exponential backoff with jitter, and design writes to be safe
to retry — pass a stable reference on payments so a retry doesn’t create a
duplicate you can’t recognise.