API Reference
Complete reference documentation for the Checkout API.
Base URL
All API requests should be made to:
https://checkout-api.exodus.comAuthentication
All API requests require authentication using your API key in the Authorization header.
headers: {
'Authorization': 'Bearer sk_live_xxxxxxxxxxxxxxxx'
}See the Authorization guide for complete details.
Pagination
The checkout, payment, subscription, subscription charge, subscription checkout, and webhook event list endpoints are cursor-paginated and take the same three parameters. Lists are returned newest first, and the order is not configurable. Endpoints that return a fixed set of configuration rows, such as GET /payments/settlement, are not paginated, and the payouts endpoints document their parameters on their individual pages.
| Parameter | Description |
|---|---|
limit | Rows per page. Each endpoint page documents the range and default. |
starting_after | An object id from a previous page. Returns the rows after it. |
ending_before | An object id from a previous page. Returns the rows before it. |
Each response carries object: "list", the rows in data, and a has_more boolean.
{
"object": "list",
"data": [{ "id": "chk_1234567890abcdef" }],
"has_more": true
}Omit both cursors to get the first page. To walk forward, take the last id of a page and pass it as starting_after. To walk back, take the first id and pass it as ending_before.
starting_after and ending_before are mutually exclusive. Sending both is a 400, since the two ask for opposite directions from different anchors and there is no sensible page to return:
{
"error": {
"type": "validation_error",
"message": "starting_after and ending_before are mutually exclusive",
"param": "ending_before"
}
}has_more is relative to the direction you are paging, not always forward. On a
starting_after page it means more rows exist after the returned set; on an ending_before page
it means more rows exist before it. This differs from Stripe, where has_more is always
forward-looking, so a client written against that definition will read it backwards on backward
pages. It lets you gate a Previous control off the same field you use for Next, but it never
reports the opposite direction, so track that yourself from whether you arrived via a cursor.
Errors
Every error response has the same shape. param is present when the API can name the field or query parameter at fault.
{
"error": {
"type": "validation_error",
"message": "metadata.note must not contain a NUL character or an unpaired Unicode surrogate",
"param": "metadata.note"
}
}Invalid request bodies
A JSON request body that the API cannot read gets a 400 with type: "validation_error":
| Case | message | param |
|---|---|---|
| The body is not valid JSON, including a body of only whitespace. | Request body must be valid JSON | none |
A string or an object key contains a NUL character (\u0000) or an unpaired UTF-16 surrogate (such as \ud800 with no partner). | <param> must not contain a NUL character or an unpaired Unicode surrogate | The dot path to the value, such as metadata.note or items.0.name. |
| Objects and arrays are nested more than 64 levels deep. The top-level object or array is level 1. | <param> must not be nested more than 64 levels deep | The dot path to the 65th level. |
The endpoints that accept an empty body still accept one: POST /payments/:paymentId/capture, refund, rescue, recover and reopen, PUT /payments/settlement, POST /checkouts/quote, POST /subscriptions/:id/charge, charge-quote and cancel, PATCH /merchants/:merchantId/charges/:chargeId, and POST /settings/pauser. A body that is not empty must be valid JSON. These endpoints used to read a malformed or whitespace-only body as {}, and now answer 400.
A malformed body on POST /checkouts, POST /subscription-checkouts, PATCH /subscription-checkouts/:id/cancel, and POST, PUT and PATCH /settings used to get a 500. It now gets the 400 above.
NUL characters in the URL
A NUL character (%00) in the path or in a query parameter name or value gets a 400 with type: "validation_error". The API checks the URL before it checks your API key, so this 400 can arrive before a 401.
| Case | message | param |
|---|---|---|
| NUL in the path | Path must not contain a NUL character | none |
| NUL in a query parameter | <param> must not contain a NUL character | The query parameter name. |
Unexpected errors
An error the API did not expect gets a 500 with type: "invalid_request" and a JSON body in the shape above. The message is a short summary such as Failed to list charges or Internal server error. A GET is safe to retry with backoff. Before you retry a write, read the resource to check whether the first request already succeeded. Some endpoints document their own 500 answers, with a code and their own retry guidance, in the endpoint reference; follow those where they apply. An unexpected error while Exodus checks your API key, such as a failed key lookup, gets a 500 with type: "authentication_error" and the message Authentication failed instead; retry it the same way.
Disabled operations
When Exodus pauses an operation, such as checkout creation or on-chain submission, an endpoint that needs it answers 503 with type: "service_unavailable" and the message Service is temporarily unavailable. The same answer can also mean the relayer cannot pay for gas right now. Retry later.
Endpoints
Checkouts
Create and manage one-time payment sessions.
| Endpoint | Description |
|---|---|
POST /checkouts | Create a checkout |
GET /checkouts/:id | Get checkout details |
GET /checkouts | List all checkouts |
POST /checkouts/:id/cancel | Cancel a checkout |
Subscription Checkouts
Single-use intents that authorize a customer to start a subscription. Customer pays the first charge and signs the on-chain authorization atomically (unless the checkout was created with initial_charge: false); the resulting Subscription is the durable billing record.
| Endpoint | Description |
|---|---|
POST /subscription-checkouts | Create a subscription checkout |
GET /subscription-checkouts/:id | Get subscription checkout details |
GET /subscription-checkouts | List all subscription checkouts |
PATCH /subscription-checkouts/:id/cancel | Cancel a subscription checkout |
Subscriptions
Manage active subscriptions. Subscriptions are created when a customer completes a Subscription Checkout. There is no direct POST /subscriptions endpoint. Each charge is authorized with the @exodus/checkout-signer SDK; cap/budget raises are subscriber-authorized on-chain.
| Endpoint | Description |
|---|---|
GET /subscriptions/:id | Get subscription details |
GET /merchants/:merchantId/subscriptions | List all subscriptions |
POST /subscriptions/:id/charge | Charge a cycle |
POST /subscriptions/:id/charge-quote | Quote the next charge |
POST /subscriptions/:id/cancel | Cancel a subscription |
Subscription Charges
Per-attempt records of cycle charges. Both succeeded and failed attempts are persisted with a typed failure_reason for dunning and reconciliation.
| Endpoint | Description |
|---|---|
GET /merchants/:merchantId/charges | List subscription charges |
PATCH /merchants/:merchantId/charges/:chargeId | Update a charge’s metadata |
Payments
View payment details, capture and refund two-step payments, and recover stranded funds.
| Endpoint | Description |
|---|---|
GET /payments/:paymentId | Get payment details |
GET /payments | List all payments |
POST /payments/:paymentId/capture | Capture a payment |
POST /payments/:paymentId/refund | Refund a payment |
POST /payments/:paymentId/rescue | Rescue funds |
POST /payments/:paymentId/recover | Recover an expired payment |
GET /payments/settlement | View settlement config |
PUT /payments/settlement | Update settlement address |
Payouts (Beta)
Off-ramp crypto to a beneficiary’s bank account in fiat. See the Payouts overview.
Beneficiaries — bank accounts that receive fiat.
| Endpoint | Description |
|---|---|
POST /beneficiaries | Create a beneficiary |
GET /beneficiaries/:id | Get a beneficiary |
GET /beneficiaries | List beneficiaries |
Customers — people who send crypto, after a one-time KYC.
| Endpoint | Description |
|---|---|
POST /customers | Create a customer |
GET /customers/:id | Get a customer |
GET /customers | List customers |
Payouts — off-ramp transactions that move the funds.
| Endpoint | Description |
|---|---|
POST /payouts | Create a payout |
GET /payouts/:id | Get a payout |
GET /payouts | List payouts |
Reports
Export data as CSV for accounting and reconciliation.
| Endpoint | Description |
|---|---|
GET /reports/payments/export | Export payments as CSV |
GET /reports/subscriptions/export | Export subscriptions as CSV |
GET /reports/subscription-charges/export | Export subscription charges as CSV |
Settings
Read your business configuration, register the signer, and manage the settlement address, webhook, branding, and pause authority.
| Endpoint | Description |
|---|---|
GET /settings | Get settings |
POST /settings | Register the merchant signer |
PUT /settings | Update the settlement address |
PATCH /settings | Update the webhook URL, display name, and branding colors |
POST /settings/webhook/secret | Regenerate the webhook secret |
POST /settings/webhook/test | Send a test webhook |
GET /settings/pauser | Get the declared pause authority |
POST /settings/pauser | Declare the pause authority |
Webhooks
Receive real-time event notifications.
| Endpoint | Description |
|---|---|
GET /merchants/:merchantId/webhook-events | List webhook events |
See the Webhooks guide for event types, payload structure, and signature verification.
