Skip to navigation

Introduction

Every endpoint below is served from https://api.paid.ai/v1 and takes JSON. The authentication and headers on this page apply to all of them, so the endpoint pages don’t repeat them.

Authentication

Authenticate with an API key from Developers > API keys in the Paid app, sent as a bearer token. A key from a sandbox organization starts with paid_sk_test_, one from a production organization with paid_sk_live_:

curl https://api.paid.ai/v1/betas \
-H "Authorization: Bearer $PAID_API_KEY"

A key only reaches the endpoints its scopes cover; any other call returns 403 with the insufficient_scope code.

Request headers

HeaderSent onDescription
AuthorizationEvery request (required)Bearer <API key>. See Authentication.
Paid-VersionAny requestThe API version to use for this request, one of 2026-11-01. Defaults to the version your account is pinned to.
Paid-BetaAny requestOpt this request in to one or more betas, comma-separated, e.g. name=v1. Endpoints in a beta list the value they require.
Idempotency-KeyPOST and PATCHA unique key of 1 to 255 printable ASCII characters, such as a UUID. Retrying with the same key and body within 24 hours returns the original response instead of repeating the operation. See Idempotency.

Response headers

HeaderSent onDescription
Paid-VersionEvery responseThe API version applied to this request.
Request-IdEvery responseThe ID of this request, e.g. req_.... Include it when contacting support.
Paid-BetaSuccessful responsesThe betas applied to this request, when it opted in to any.
Paid-Beta-DeprecatedSuccessful responsesBetas sent in Paid-Beta that graduated in this request’s version or an earlier one, as name=vN; graduated-in=YYYY-MM-DD. Their header is accepted for a grace period, then ignored. On a version before graduated-in the beta still needs its header.
Idempotent-ReplayedPOST and PATCH replaystrue when the response is the stored result of an earlier request with the same Idempotency-Key.
Paid-WarningSuccessful responsesA condition worth checking that did not fail the request, as a code: external_id_changed when an update changed a customer’s externalId, so events still sent with the old ID will create a draft customer.
Retry-After429 responsesSeconds to wait before retrying.

Errors

Every error returns the same JSON error object, with a docUrl linking to its code on the errors page.