Integration
Full API Reference
All 407 endpoints you can call with an API key or from your own pages, generated from the OpenAPI spec.
Base URL https://paymenthooks.com/api/v1. Send your secret key as Authorization: Bearer phk_live_...; each endpoint names the API key scope it needs. Endpoints marked No API keyare called by the hosted checkout and your customers' pages. Every response is { data, error }.
The machine-readable spec is at /openapi.json; guides with worked examples are under API Reference.
All resources
- Account (2)
- Analytics (3)
- API Keys (6)
- Balance (2)
- Billing (2)
- Billing Page (14)
- Brand Assets (1)
- Branding (4)
- Business Entities (5)
- Cashfree (1)
- Checkout Sessions (24)
- Communications (5)
- Compliance (2)
- Contact (1)
- Coupons (6)
- Credit Notes (5)
- Currency (3)
- Custom Domains (9)
- Customers (41)
- Disputes (6)
- Embed Policy (1)
- Events (3)
- External Transactions (6)
- Features & Entitlements (4)
- Gateway Marketplace (12)
- Gateway Oauth (3)
- Gateways (2)
- Hosted Invoices (3)
- Imports (7)
- Insights (1)
- Invoice Settings (2)
- Invoices (17)
- Merchant (11)
- Meter Events (1)
- Meters (6)
- Notifications (16)
- Orders (1)
- Pay Pages (2)
- Payment Element (2)
- Payment Links (9)
- Payment Methods (2)
- Payments (14)
- Payouts (3)
- Plans (2)
- Prices (12)
- Products (10)
- Quote Pages (3)
- Quotes (5)
- Receipt Pages (2)
- Refunds (1)
- Reports (14)
- Routing (5)
- Status (1)
- Subscription Schedules (6)
- Subscriptions (27)
- Tax (15)
- Tax Codes (2)
- Team & Roles (11)
- Tokens (1)
- Transactions (1)
- Webhooks (19)
Account
/v1/account/audit-logaudit:readList your account's activity log
Your account's activity (audit) log, newest first: sign-ins, API keys, team, refunds, disputes, webhooks, gateways, businesses, tax and settings changes. Only your own account's entries are returned. Needs the account owner's session, or a team member or API key with `audit:read`. Query: `action` (prefix, e.g. `auth.` or `api_key.revoked`), `actor` (user id or part of a name), `actorType` (user, team_member, api_key, admin, system, customer), `entityType`, `from` / `to` (ISO 8601), `page`, `pageSize` (max 100). Each entry has id, timestamp, action, entityType, entityId, userId, userName, actorType, ipAddress, userAgent and details (secrets are never recorded). Entries are append-only.
| Parameter | In | Type | Description |
|---|---|---|---|
| action? | query | string | |
| actor? | query | string | |
| actorType? | query | string | |
| entityType? | query | string | |
| from? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| to? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/account/audit-log/exportaudit:readExport your account's activity log as CSV
The same entries as GET /account/audit-log as text/csv, with the same filters (no paging): the newest 10,000 matching entries. `X-Export-Rows` gives the row count and `X-Export-Truncated: true` means more entries matched. The export is itself recorded as `audit_log.exported`.
| Parameter | In | Type | Description |
|---|---|---|---|
| action? | query | string | |
| actor? | query | string | |
| actorType? | query | string | |
| entityType? | query | string | |
| from? | query | string | |
| to? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Analytics
/v1/analyticsreports:readRetrieve analytics
Required API key scope: `reports:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| from? | query | string | |
| period? | query | string | |
| to? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/analytics/eventsreports:readList analytics events
Required API key scope: `reports:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/analytics/subscriptionsreports:readList analytics subscriptions
Required API key scope: `reports:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
API Keys
/v1/api-keysaccount:readList API keys
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/api-keysaccount:writeCreate an API key
Required API key scope: `account:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/api-keys/usageaccount:readRetrieve API key usage
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/api-keys/{keyId}account:readRetrieve an API key
Required API key scope: `account:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| keyId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/api-keys/{keyId}account:writeUpdate an API key
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| keyId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/api-keys/{keyId}account:writeDelete an API key
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| keyId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Balance
/v1/balancepayments:readRetrieve balance
Required API key scope: `payments:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/balance/transactionspayments:readList balance transactions
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| type? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Billing
/v1/billingbilling:readRetrieve billing
Required API key scope: `billing:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/billing/upgradebilling:writeUpgrade the platform plan
Required API key scope: `billing:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Billing Page
/v1/billing-page/accessNo API keyCreate a billing page access
Public endpoint: no API key required.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/billing-page/cancelNo API keyCreate a billing page cancel
Public endpoint: no API key required.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/billing-page/change-planNo API keyChange plan from the billing page
Public endpoint: no API key required.
Responses: 202 Accepted, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 402 Payment required: the payment was declined or blocked by fraud screening., 500 Internal error: the failure was logged server-side.
/v1/billing-page/exportNo API keyExport billing history (billing page token)
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| format? | query | string | |
| token? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/billing-page/pauseNo API keyCreate a billing page pause
Public endpoint: no API key required.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/billing-page/pay-invoiceNo API keyPay a renewal invoice from the billing page
Public endpoint: no API key required.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/billing-page/plan-optionsNo API keyList billing page plan options
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId? | query | string | |
| token? | query | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/billing-page/previewbilling:readPreview the hosted billing page
Required API key scope: `billing:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/billing-page/reauthoriseCreate a billing page reauthorise
Public endpoint: no API key required.
/v1/billing-page/resolveNo API keyResolve a billing page token (public)
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/billing-page/setup-sessionNo API keyCreate a billing page setup session
Public endpoint: no API key required.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/billing-page/tokensbilling:readList billing page tokens
Required API key scope: `billing:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/billing-page/tokensbilling:writeCreate a billing page token
Required API key scope: `billing:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/billing-page/tokens/{tokenId}billing:writeDelete a token
Required API key scope: `billing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| tokenId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Brand Assets
/v1/brand-assets/{assetId}No API keyRetrieve a brand asset
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| assetId | path | string |
Responses: 200 Success, 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Branding
/v1/brandingaccount:readRetrieve branding
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/brandingaccount:writeUpdate branding
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/branding/assets/{kind}account:writeCreate an asset
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| kind | path | string |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/branding/assets/{kind}account:writeDelete an asset
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| kind | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Business Entities
/v1/business-entitiesaccount:readList business entities
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/business-entitiesaccount:writeCreate a business entity
Required API key scope: `account:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/business-entities/{entityId}account:readRetrieve a business entity
Required API key scope: `account:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| entityId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/business-entities/{entityId}account:writeUpdate a business entity
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| entityId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/business-entities/{entityId}account:writeDelete a business entity
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| entityId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
Cashfree
/v1/cashfree/subscription-redirectRetrieve cashfree subscription redirect
| Parameter | In | Type | Description |
|---|---|---|---|
| subs_session_id? | query | string | |
| target? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
Checkout Sessions
/v1/checkout-sessionspayments:readList checkout sessions
Return a paginated list of checkout sessions, newest first. Requires payments:read.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| mode? | query | string | payment or subscription. |
| page? | query | integer | Page number (1-based). Defaults to 1. |
| pageSize? | query | integer | Results per page, 1-100. Defaults to 25. |
| sortDirection? | query | "asc" | "desc" | asc or desc. Defaults to desc. |
| sortField? | query | string | Field to sort by (e.g. createdAt, or a money column such as transactionAmountUsdCents). Defaults to createdAt. |
| status? | query | string | open, pending, or complete. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessionspayments:writeCreate a checkout session
Create a checkout session. itemLocalCurrency is required with any inline line; when every line names one of your prices it is their one currency. itemLocalCurrencyAmount = sum of line items + tax + convenience fee, in itemLocalCurrency's smallest unit; itemAmountUsdCents is the same total in USD cents at itemUsdToLocalCurrencyRate. taxRate alone computes the tax from the subtotal. Line items keep their unitPrice and total in itemLocalCurrency. webhookUrl must use https. Returns 201. Requires payments:write; honours Idempotency-Key. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| lineItems | object[] | No | Items to charge. Required in payment mode; in subscription mode send recurring line items or priceId. |
| lineItems[].description | string | No | Label for the line item. Required unless priceId is set. |
| lineItems[].quantity | integer | Yes | Number of units (>= 1). |
| lineItems[].unitPrice | integer | No | Price per unit in the smallest unit of itemLocalCurrency. Required unless priceId is set (then the price's own amount is charged). The line total is computed for you. |
| lineItems[].priceId | string | No | One of your prices. In subscription mode a recurring price makes the line recurring. |
| lineItems[].recurring | object | No | Subscription mode: { interval: "day"|"week"|"month"|"year", intervalCount?, startsAt? }. The price is found or created once per description, amount, currency and interval. Recurring lines are grouped by interval, intervalCount and startsAt: each group becomes its own subscription after the one payment, on one payment method authorisation (the session returns subscriptions[]). startsAt (ISO date or date-time, future, at most 3 years; alias firstChargeAt) delays the line: it is not charged today and its subscription is first charged on that date (400 INVALID_STARTS_AT, STARTS_AT_IN_PAST, STARTS_AT_TOO_FAR; NO_AMOUNT_DUE when nothing is charged today). Lines without recurring are charged on the first payment only. |
| lineItems[].adjustableQuantity | boolean | No | Defaults to false: the quantity is fixed and the item cannot be removed. Set true to let the customer change the quantity or remove the item on the checkout page. Not supported with mode "subscription". |
| lineItems[].productKey | string | No | Inline recurring lines: a stable key of what is sold, shared by every customer buying it (1-64 of a-z 0-9 _ - ., e.g. "hosting_3", "com_domain_registration"). One product per key and one price per key and cycle, in your default currency; another currency the line is in becomes that price's currency option at the exact line amount. |
| lineItems[].productName | string | No | Inline recurring lines with productKey: the item's name (max 255), e.g. "Starter" or ".com domain registration". |
| lineItems[].productCategory | string | No | Inline recurring lines with productKey: the item's category (max 100), e.g. "Web Hosting". The product is named "<category> - <item>" ("Web Hosting - Starter") and the price <category>_<item>, e.g. web_hosting_starter (no currency or amount: one price holds an amount per currency). Names are catalog references; customers see the product and their own line text. |
| mode | "payment" | "subscription" | No | Defaults to "payment" (one-time). "subscription": PaymentHooks creates the subscription when the payment succeeds and auto-debits renewals. Other values return 400 INVALID_MODE; subscription mode without a recurring item returns 400 NO_RECURRING_ITEM. |
| priceId | string | No | Subscription mode: one of your recurring prices (the subscription's price). Replaces metadata.priceId, which is still accepted. A price with trialDays starts a free trial at checkout when every recurring line shares it (nothing of them charged today; 422 TRIAL_MISMATCH otherwise, 422 TRIAL_UNSUPPORTED_GATEWAY when no subscription gateway can save a method without charging). |
| itemLocalCurrency | string | No | ISO 4217 code of the line item amounts, e.g. "USD" or "INR". Required when any line is priced inline (unitPrice without priceId). Derived when every line, and priceId, names one of your prices: their one currency (different currencies: 400 CURRENCY_MISMATCH). No default (see /docs/money-and-currencies). |
| itemTaxLocalCurrencyAmount | integer | No | Tax in the smallest unit of itemLocalCurrency (non-negative integer), added to the total. Takes precedence over the computed value. Returned with itemTaxAmountUsdCents. |
| taxRate | number | No | Tax percentage, 0-100 (e.g. 18). When itemTaxLocalCurrencyAmount is omitted, tax is computed as round(subtotal x taxRate / 100). |
| itemConvenienceFeeLocalCurrencyAmount | integer | No | Fee in the smallest unit of itemLocalCurrency (non-negative integer), added to the total. Returned with itemConvenienceFeeAmountUsdCents. |
| customerId | string | No | ID of an existing customer to associate with the session. |
| customerEmail | string | No | Pre-fills the email field on the hosted checkout. |
| customerCountry | string | No | The customer's billing country (ISO 3166-1 alpha-2). Used by automatic tax and pre-filled on the checkout; when omitted, the customer selects it on the checkout before paying. customerState (needed for India, the United States and Canada) and customerPostalCode are also accepted; invalid values return 400. |
| successUrl | string | No | Where the customer is sent after a successful payment. |
| cancelUrl | string | No | Where the customer is sent after a failed or cancelled payment. |
| webhookUrl | string | No | HTTPS URL that receives this session's events (max 2048 chars). http:// URLs return 400 VALIDATION_ERROR. |
| captureMethod | "automatic" | "manual" | No | Defaults to "automatic". |
| payOnceOption | "auto" | "on" | "off" | No | Subscription checkouts: offer Pay once (first period only, renewals invoiced) next to Subscribe. auto (default) offers it unless Settings > Subscriptions > Offer Pay once is switched off; on always offers it; off never does. |
| paymentMethod | string | No | Preferred payment method, stored in metadata. |
| theme | object | No | Checkout branding: primaryColor and backgroundColor (hex), fontFamily, borderRadius, logoUrl. |
| metadata | object | No | Key-value pairs stored on the session. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}payments:readRetrieve a checkout session
Retrieve a checkout session. Includes paymentId once a payment has been attempted. Requires payments:read.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/apply-couponNo API keyApply a coupon to a checkout session
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/checkout-sessions/{sessionId}/apply-couponNo API keyRemove the coupon from a checkout session
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/checkout-sessions/{sessionId}/billing-addressNo API keyUpdate checkout session billing address
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/eventsNo API keyList checkout session events
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/gateway-keysNo API keyRetrieve publishable gateway keys for a session
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string | |
| connectionId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/checkout-sessions/{sessionId}/order-notesNo API keySet checkout session order notes
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/checkout-sessions/{sessionId}/payNo API keyPay a checkout session
Public endpoint called by the hosted checkout to pay a session. The charge is in the customer's currency when the selected gateway supports it, otherwise USD, otherwise the session's itemLocalCurrency. The response transactionLocalCurrencyAmount and transactionLocalCurrency are what the gateway charged. In test mode the payment is simulated and succeeds. Errors: 409 SESSION_ALREADY_COMPLETED, 410 EXPIRED, 400 SESSION_CLOSED, 402 FRAUD_BLOCKED, 422 UNSUPPORTED_CURRENCY, 409 PRICE_CHANGED, 400 TERMS_NOT_ACCEPTED. Fraud screening fails closed: if it is unavailable the payment is rejected with 500 INTERNAL_ERROR and no gateway is called. When 3D Secure is required, status is action_required and actionUrl is returned. Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| string | Yes | Customer email. A customer record is found or created for it. | |
| cardNumber | string | No | Card number (spaces allowed), for gateways that take card details directly. |
| cardExpiry | string | No | Expiry in MM/YY format. |
| cardCvc | string | No | Card security code. |
| cardholderName | string | No | Name on the card. |
| phone | string | No | Customer phone, forwarded to the gateway. |
| gatewayConnectionId | string | No | Gateway connection chosen on the checkout page. |
| currency | string | No | Currency the customer was shown on the Pay button. Charged in when the gateway supports it; otherwise USD, then the session's itemLocalCurrency. |
| displayAmount | integer | No | Amount the customer was shown, in that currency's smallest unit. The server re-derives the charge from itemAmountUsdCents and refuses a difference over 1% with 409 PRICE_CHANGED. |
| termsAccepted | boolean | No | Required (true) when the merchant has terms, privacy or refund links; otherwise 400 TERMS_NOT_ACCEPTED. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 402 Payment required: the payment was declined or blocked by fraud screening., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 410 Gone: the resource has expired or is no longer active., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/piNo API keyCreate a gateway payment intent for a session
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 410 Gone: the resource has expired or is no longer active., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/checkout-sessions/{sessionId}/publicNo API keyRetrieve a checkout session (public)
Public, unauthenticated read used by the hosted checkout page. Returns 410 EXPIRED after expiresAt. Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 404 Not found: the resource does not exist or does not belong to your account., 410 Gone: the resource has expired or is no longer active., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/razorpay-orderNo API keyCreate a Razorpay order for a session
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 410 Gone: the resource has expired or is no longer active., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/checkout-sessions/{sessionId}/renewal-modeNo API keyChoose how a subscription checkout renews
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/saved-cardsNo API keyList a customer's saved cards for a session
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string | |
| email? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/setupNo API keyCreate a checkout session setup
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/shippingCreate a checkout session shipping
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/trialCreate a checkout session trial
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/update-itemsNo API keyUpdate checkout session line items
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/checkout-sessions/{sessionId}/wallet-confirmNo API keyConfirm a wallet payment
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/checkout-sessions/{sessionId}/wallet-initNo API keyStart a wallet payment (Apple Pay / Google Pay)
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 410 Gone: the resource has expired or is no longer active., 500 Internal error: the failure was logged server-side.
/v1/checkout/sessionspayments:readList checkout sessions
Alias of GET /checkout-sessions.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| mode? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/checkout/sessionspayments:writeCreate a checkout session (SDK shape)
Accepts the @paymenthooks/sdk snake_case body (amount or line_items with price_id, success_url, cancel_url, customer_id, metadata), translates it and forwards to POST /checkout-sessions. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| amount | integer | No | Total in the smallest unit of currency. Required when line_items is omitted; becomes the session's itemLocalCurrencyAmount. |
| currency | string | No | ISO 4217 code; becomes the session's itemLocalCurrency. Required with amount (no default). With line_items it must match the prices' itemLocalCurrency. |
| success_url | string | Yes | |
| cancel_url | string | No | |
| customer_id | string | No | |
| line_items | object[] | No | |
| line_items[].price_id | string | Yes | |
| line_items[].quantity | integer | No | |
| metadata | object | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/checkout/sessions/{sessionId}payments:readRetrieve a checkout session
Alias of GET /checkout-sessions/{sessionId}.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Communications
/v1/communications/email-preview/{templateCode}Retrieve an email preview
| Parameter | In | Type | Description |
|---|---|---|---|
| templateCode | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/communications/statusaccount:readRetrieve email provider status
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/communications/test-connectionaccount:writeTest the email provider connection
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side., 502 Bad gateway: an upstream payment gateway or service rejected or failed the request.
/v1/communications/test-emailList test email options
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/communications/test-emailSend a test email
Responses: 202 Accepted, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
Compliance
/v1/complianceaccount:readRetrieve compliance
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/complianceaccount:writeUpdate compliance
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
Contact
/v1/contactNo API keyCreate a contact
Public endpoint: no API key required.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
Coupons
/v1/couponsproducts:readList coupons
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/couponsproducts:writeCreate a coupon
Required API key scope: `products:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/coupons/{couponId}products:readRetrieve a coupon
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| couponId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/coupons/{couponId}products:writeUpdate a coupon
Required API key scope: `products:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| couponId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/coupons/{couponId}products:writeDelete a coupon
Required API key scope: `products:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| couponId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/coupons/{couponId}/archiveproducts:writeCreate a coupon archive
Required API key scope: `products:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| couponId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Credit Notes
/v1/credit-notesinvoices:readList credit notes
Required API key scope: `invoices:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| invoiceId? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| status? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/credit-notesinvoices:writeCreate a credit note
Required API key scope: `invoices:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/credit-notes/{noteId}invoices:readRetrieve a credit note
Required API key scope: `invoices:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| noteId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/credit-notes/{noteId}invoices:writeDelete a credit note
Required API key scope: `invoices:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| noteId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/credit-notes/{noteId}/voidinvoices:writeCreate a credit note void
Required API key scope: `invoices:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| noteId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
Currency
/v1/currencyaccount:readRetrieve currency
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/currencyaccount:writeUpdate currency settings
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side., 502 Bad gateway: an upstream payment gateway or service rejected or failed the request., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/currency/public-rateNo API keyRetrieve a live exchange rate (public)
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| from? | query | string | |
| to? | query | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
Custom Domains
/v1/custom-domainscustom_domains:readList custom domains
Required API key scope: `custom_domains:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/custom-domainscustom_domains:writeCreate a custom domain
Required API key scope: `custom_domains:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/custom-domains/eventscustom_domains:readStream custom domain events (server-sent events)
Required API key scope: `custom_domains:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/custom-domains/{domainId}custom_domains:readRetrieve a custom domain
Required API key scope: `custom_domains:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| domainId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/custom-domains/{domainId}custom_domains:writeUpdate a custom domain
Required API key scope: `custom_domains:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| domainId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/custom-domains/{domainId}custom_domains:writeDelete a custom domain
Required API key scope: `custom_domains:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| domainId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/custom-domains/{domainId}/dns-checkcustom_domains:readCheck DNS records for a custom domain
Required API key scope: `custom_domains:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| domainId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/custom-domains/{domainId}/ssl/retrycustom_domains:writeRetry SSL provisioning for a custom domain
Required API key scope: `custom_domains:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| domainId | path | string |
Responses: 202 Accepted, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/custom-domains/{domainId}/verifycustom_domains:writeVerify a custom domain
Required API key scope: `custom_domains:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| domainId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
Customers
/v1/customerscustomers:readList customers
Return a paginated list of customers, newest first. Archived customers are left out unless status=archived. An unknown query parameter returns 400 VALIDATION_ERROR naming it.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | Page number (1-based). Defaults to 1. |
| pageSize? | query | integer | Results per page, 1-100. Defaults to 25. |
| search? | query | string | Matches customer name or email. |
| sortDirection? | query | "asc" | "desc" | asc or desc. Defaults to desc. |
| sortField? | query | string | Field to sort by (e.g. createdAt, or a money column such as transactionAmountUsdCents). Defaults to createdAt. |
| status? | query | string | Filter by customer status; archived lists archived customers (left out otherwise). |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customerscustomers:writeCreate a customer
Create a customer. Returns 201. Create-only: an email that already exists in your account returns 409 DUPLICATE_EMAIL and the existing customer is left unchanged; use PUT to edit it.
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | |
| string | Yes | ||
| phone | string | No | |
| country | string | No | |
| metadata | object | No | |
| taxExempt | "none" | "exempt" | "reverse" | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/customers/overviewRetrieve the customer overview
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}customers:readRetrieve a customer
Retrieve a single customer by ID.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}customers:writeUpdate a customer
Update a customer. Only the fields you send are changed. Only the fields below are accepted; unknown or server-managed fields (e.g. merchantId, totalSpendAmountUsdCents) return 400 VALIDATION_ERROR with error.fields.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | No | |
| string | No | ||
| phone | string | No | |
| country | string | No | |
| metadata | object | No | |
| taxExempt | "none" | "exempt" | "reverse" | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/addressescustomers:readList customer addresses
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/addressescustomers:writeCreate a customer address
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| type | "billing" | "shipping" | Yes | |
| line1 | string | Yes | |
| line2 | string | No | |
| city | string | Yes | |
| state | string | No | |
| postalCode | string | Yes | |
| country | string | Yes | |
| isDefault | boolean | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/addresses/{addressId}customers:writeUpdate a customer address
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| addressId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| type | "billing" | "shipping" | No | |
| line1 | string | No | |
| line2 | string | No | |
| city | string | No | |
| state | string | No | |
| postalCode | string | No | |
| country | string | No | |
| isDefault | boolean | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/addresses/{addressId}customers:writeDelete a customer address
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| addressId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/archiveCreate a customer archive
Archive a customer (customers:write, audited). History is kept; the customer is hidden from lists unless status=archived, and new checkouts, payments, subscriptions and invoices for it return 409 CUSTOMER_ARCHIVED. 409 CUSTOMER_HAS_ACTIVE_SUBSCRIPTIONS while a subscription is active, trialing or past_due. POST /api/v1/customers/:id/unarchive restores it. There is no DELETE.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/balancecustomers:readRetrieve customer balance
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/balance-transactionscustomers:readList customer balance transactions
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| currency? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/balance-transactionscustomers:writeCreate a customer balance transaction
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/communicationscustomers:readList customer communications
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| channel? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| type? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/entitlementsentitlements:readList a customer's entitlements
Every feature the customer is granted: key, type, enabled, limit (null = unlimited), used, remaining, policy, overageUnits, estimated overage (local and USD cents), resetsAt and source (product, price or customer_override). policy is the price's choice above the maximum: restrict, allow or bill.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/entitlements/{key}entitlements:readRetrieve a customer's entitlement
One feature for the customer (the hot path for an app checking access): enabled, limit (null = unlimited), used, remaining, policy, overage so far and resetsAt. A feature the customer is not granted answers 200 with enabled false; an unknown key answers 404 NOT_FOUND.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| key | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/entitlements/{key}/checkentitlements:readCheck an entitlement
Would quantity more units be allowed now? Read-only and exact; nothing is reserved. reason is null, NO_ENTITLEMENT, ENTITLEMENT_LIMIT_REACHED or ENTITLEMENT_OVERAGE_CAP_REACHED. 404 NOT_FOUND for an unknown key or customer.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| key | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| quantity | integer | No | Units the next action would use (whole number from 0, default 1). The body may be empty. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/feature-overridesentitlements:readList a customer's feature overrides
The customer's overrides (negotiated exceptions), oldest first, each with its feature, enabled, limitValue, unlimited, policy, reason and expiresAt.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/feature-overrides/{key}entitlements:readRetrieve a feature override
The customer's override for one feature. 404 NOT_FOUND when there is none.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| key | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/feature-overrides/{key}entitlements:writeCreate or replace a feature override
Create or replace a customer's override (audited); the customer's entitlements refresh at once. GET returns it (404 when none), DELETE removes it, and GET /customers/:id/feature-overrides lists them. Archived features cannot be overridden.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| key | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| reason | string | Yes | Why the customer gets different terms (3-500 characters). Kept in the audit log. |
| enabled | boolean | No | Include (true) or exclude (false) the feature for this customer; null keeps the plan's. |
| limitValue | integer | No | A different maximum; null keeps the plan's. Not with unlimited. |
| unlimited | boolean | No | No maximum for this customer. Defaults to false. |
| policy | "restrict" | "allow" | "bill" | No | Above the maximum: restrict, allow (never refused or charged) or bill (metered; billed at the price's overage terms). null keeps the price's. |
| expiresAt | string | No | A future ISO 8601 date after which the plan's terms apply again; null for no expiry. At least one of enabled, limitValue, unlimited or policy must change something. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/feature-overrides/{key}entitlements:writeRemove a feature override
Remove the override (audited); the plan's terms apply again at once. Returns { deleted: true, key }. 404 NOT_FOUND when there is none.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| key | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/feature-usage/{key}entitlements:writeReport a quantity in use
Set how many of a quantity feature are in use now. 409 ENTITLEMENT_LIMIT_REACHED above the maximum unless the price allows overage, 409 NO_ENTITLEMENT when no subscription grants it. Honours Idempotency-Key. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| key | path | string | |
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| quantity | integer | Yes | How many of a quantity feature are in use now (e.g. 3 projects), not a delta. Going up past the maximum answers 409 ENTITLEMENT_LIMIT_REACHED unless the price's policy is allow; going down always succeeds. Metered usage is reported with POST /meter-events. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/gdpr/deletecustomers:writeErase a customer's data (GDPR)
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/gdpr/exportcustomers:readExport a customer's data (GDPR)
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/invoicescustomers:readList customer invoices
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| limit? | query | integer | |
| page? | query | integer |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/payment-methodscustomers:readList customer payment methods
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/paymentscustomers:readList customer payments
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| limit? | query | integer | |
| page? | query | integer |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/subscriptionscustomers:readList customer subscriptions
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| limit? | query | integer | |
| page? | query | integer |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tagsList customer tags
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
/v1/customers/{customerId}/tagsUpdate customer tags
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
/v1/customers/{customerId}/tagsUpdate customer tags
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
/v1/customers/{customerId}/tax-exemptionsList customer tax exemptions
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tax-exemptionsCreate a customer tax exemption
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tax-exemptionsUpdate customer tax exemptions
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| exemptionId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tax-exemptionsDelete customer tax exemptions
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| exemptionId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tax-idscustomers:readList customer tax IDs
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tax-idscustomers:writeCreate a customer tax ID
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tax-idscustomers:writeUpdate customer tax IDs
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| taxIdId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/tax-idscustomers:writeDelete a customer tax ID
Required API key scope: `customers:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| taxIdId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/transactionscustomers:readList customer transactions
Required API key scope: `customers:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string | |
| limit? | query | integer | |
| page? | query | integer |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/customers/{customerId}/unarchiveCreate a customer unarchive
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
Disputes
/v1/disputespayments:readList disputes
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/disputes/{disputeId}payments:readRetrieve a dispute
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| disputeId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/disputes/{disputeId}payments:writeUpdate a dispute
Required API key scope: `payments:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| disputeId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| status | "open" | "under_review" | "won" | "lost" | Yes |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/disputes/{disputeId}/evidencepayments:writeSubmit evidence for a dispute
Required API key scope: `payments:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| disputeId | path | string | |
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| description | string | No | |
| evidenceFiles | object | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side., 502 Bad gateway: an upstream payment gateway or service rejected or failed the request.
/v1/disputes/{disputeId}/evidence/filespayments:readList evidence files
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| disputeId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/disputes/{disputeId}/evidence/files/{fileId}payments:readRetrieve a file
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| disputeId | path | string | |
| fileId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Embed Policy
/v1/embed-policyNo API keyRetrieve embed policy
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentLink? | query | string | |
| sessionId? | query | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
Events
/v1/eventswebhooks:readList events
Required API key scope: `webhooks:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| category? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| type? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/events/streamwebhooks:readStream events (server-sent events)
Required API key scope: `webhooks:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/events/{eventId}webhooks:readRetrieve an event
Required API key scope: `webhooks:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| eventId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
External Transactions
/v1/external-transactionspayments:readList external transactions
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | |
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| externalProvider? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/external-transactionspayments:writeRecord a payment taken on another service
Required API key scope: `payments:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| externalProvider | string | Yes | |
| externalTransactionId | string | Yes | |
| status | "succeeded" | "pending" | "failed" | No | |
| transactionLocalCurrency | string | Yes | |
| transactionLocalCurrencyAmount | integer | Yes | |
| transactionUsdToLocalCurrencyRate | number | No | |
| customerId | string | No | |
| customerEmail | string | No | |
| customerName | string | No | |
| paymentMethod | "card" | "bank_transfer" | "upi" | "wallet" | "bnpl" | "crypto" | "cash" | "check" | "other" | No | |
| description | string | No | |
| metadata | object | No | |
| occurredAt | string | No | |
| invoiceId | string | No | |
| businessEntityId | string | No | |
| sendReceipt | boolean | No |
Responses: 200 Success, 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/external-transactions/{paymentId}payments:readRetrieve an external transaction
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/external-transactions/{paymentId}payments:writeUpdate or settle an external transaction
Required API key scope: `payments:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| description | string | No | |
| metadata | object | No | |
| status | "succeeded" | "failed" | No | |
| customerId | string | No | |
| customerEmail | string | No | |
| customerName | string | No | |
| sendReceipt | boolean | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/external-transactions/{paymentId}payments:writeVoid an external transaction
Required API key scope: `payments:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string | |
| reason? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/external-transactions/{paymentId}/refundspayments:writeRecord a refund made on another service
Required API key scope: `payments:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| externalRefundId | string | Yes | |
| transactionLocalCurrencyAmount | integer | Yes | |
| reason | string | No | |
| notifyCustomer | boolean | No |
Responses: 200 Success, 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Features & Entitlements
/v1/featuresproducts:readList features
Return your feature catalogue, active first then by name, with meta.total, page and pageSize.
| Parameter | In | Type | Description |
|---|---|---|---|
| page? | query | integer | Page number (1-based). Defaults to 1. |
| pageSize? | query | integer | Results per page, 1-100. Defaults to 50. |
| search? | query | string | Matches part of the key or name, case-insensitive. |
| status? | query | string | Only active or only archived features. Omit for both. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/featuresproducts:writeCreate a feature
Create a feature. Returns 201. key and type (and a metered feature's meterId and resetInterval) are fixed once created. Errors: 400 VALIDATION_ERROR (error.fields names each field, including unknown fields), 409 CONFLICT when the key is already used, 409 FEATURE_METER_AGGREGATION_UNSUPPORTED when the meter is not sum or count. Honours Idempotency-Key. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | What your app checks, e.g. api_calls. 1-64 characters: lower-case letters, digits, _ . - (starting with a letter or digit). Unique in your account; cannot change later. |
| name | string | Yes | Name customers see, e.g. API calls (max 80 characters). |
| type | "boolean" | "quantity" | "metered" | Yes | boolean: included or not. quantity: how many the customer has in use at a time (e.g. projects), reported with PUT /customers/:id/feature-usage/:key. metered: usage counted by a meter in each period. Cannot change later. |
| unit | string | No | Plural unit shown with limits, e.g. calls (max 30 characters). Not allowed on boolean features. |
| meterId | string | No | Metered features only, and required for them: one of your active meters with sum or count aggregation. A max or last meter answers 409 FEATURE_METER_AGGREGATION_UNSUPPORTED. Cannot change later. |
| resetInterval | "billing_period" | "month" | No | Metered features only. billing_period (default): usage resets at each subscription period boundary. month: at the start of each calendar month in UTC. Cannot change later. |
| description | string | No | Internal description (max 500 characters). |
| metadata | object | No | Up to 50 keys (40 characters each) with text values up to 500 characters. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/features/{featureId}products:readRetrieve a feature
Retrieve one feature. 404 NOT_FOUND when it is not yours.
| Parameter | In | Type | Description |
|---|---|---|---|
| featureId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/features/{featureId}products:writeUpdate or archive a feature
Change name, description, unit, status or metadata. Sending key, type, meterId or resetInterval answers 400 VALIDATION_ERROR (create a new feature instead). Archive with status archived; there is no DELETE.
| Parameter | In | Type | Description |
|---|---|---|---|
| featureId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | No | New name (max 80 characters). |
| description | string | No | New description, or null to clear it. |
| unit | string | No | New unit, or null to clear it. Not allowed on boolean features. |
| status | "active" | "archived" | No | archived: the feature can no longer be added to a product; products and subscriptions that already include it keep it. active restores it. Features are never deleted. |
| metadata | object | No | Up to 50 keys (40 characters each) with text values up to 500 characters. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Gateway Marketplace
/v1/gateway-marketplaceList marketplace gateways
| Parameter | In | Type | Description |
|---|---|---|---|
| category? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| region? | query | string | |
| search? | query | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/categoriesList gateway categories
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/connectionsrouting:readList gateway connections
Required API key scope: `routing:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/connections/{connectionId}routing:writeUpdate a connection
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| connectionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/connections/{connectionId}/disconnect-impactrouting:readRetrieve connection disconnect impact
Required API key scope: `routing:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| connectionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/connections/{connectionId}/webhookrouting:writeCreate a connection webhook
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| connectionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/{gatewayId}Retrieve a marketplace gateway
| Parameter | In | Type | Description |
|---|---|---|---|
| gatewayId | path | string |
Responses: 200 Success, 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/{gatewayId}/connectrouting:writeConnect a gateway marketplace
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| gatewayId | path | string |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/{gatewayId}/disconnectrouting:writeDisconnect a gateway marketplace
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| gatewayId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side., 502 Bad gateway: an upstream payment gateway or service rejected or failed the request.
/v1/gateway-marketplace/{gatewayId}/healthRetrieve gateway connection health
| Parameter | In | Type | Description |
|---|---|---|---|
| gatewayId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/{gatewayId}/healthRun a health check on a gateway marketplace
| Parameter | In | Type | Description |
|---|---|---|---|
| gatewayId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/gateway-marketplace/{gatewayId}/testrouting:writeTest credentials for a gateway marketplace
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| gatewayId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Gateway Oauth
/v1/gateway-oauth/razorpay/websitesrouting:readList razorpay websites
Required API key scope: `routing:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/gateway-oauth/razorpay/websitesrouting:writeCreate a razorpay website
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| website? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/gateway-oauth/razorpay/websitesrouting:writeDelete razorpay websites
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| website? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Gateways
/v1/gateway-currency-support/{gatewayId}No API keyRetrieve a gateway's supported currencies
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| gatewayId | path | string | |
| originalAmount? | query | integer | |
| originalCurrency? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/gatewaysrouting:readList gateways
Required API key scope: `routing:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Hosted Invoices
/v1/hosted-invoices/{token}No API keyRetrieve a hosted invoice
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/hosted-invoices/{token}/payNo API keyCreate a hosted invoice pay
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/hosted-invoices/{token}/pdfNo API keyRetrieve hosted invoice pdf
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
Imports
/v1/importsList imports
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/importsCreate an import
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/imports/eventsList import events
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/imports/templates/{type}Retrieve a template
| Parameter | In | Type | Description |
|---|---|---|---|
| type | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/imports/{importId}Retrieve an import
| Parameter | In | Type | Description |
|---|---|---|---|
| importId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/imports/{importId}/confirmCreate an import confirm
| Parameter | In | Type | Description |
|---|---|---|---|
| importId | path | string |
Responses: 202 Accepted, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/imports/{importId}/errors.csvRetrieve import errors.csv
| Parameter | In | Type | Description |
|---|---|---|---|
| importId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
Insights
/v1/insightsreports:readRetrieve insights
Required API key scope: `reports:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Invoice Settings
/v1/invoice-settingsinvoices:readList invoice settings
Required API key scope: `invoices:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/invoice-settingsinvoices:writeUpdate invoice settings
Required API key scope: `invoices:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Invoices
/v1/invoicesinvoices:readList invoices
Return a paginated list of invoices, newest first.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | Only rows of this business (one of your businesses, else 400 VALIDATION_ERROR). An API key scoped to a business always sees only its own business, whatever is sent. |
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | Page number (1-based). Defaults to 1. |
| pageSize? | query | integer | Results per page, 1-100. Defaults to 25. |
| search? | query | string | Matches the invoice number. |
| sortDirection? | query | "asc" | "desc" | asc or desc. Defaults to desc. |
| sortField? | query | string | Field to sort by (e.g. createdAt, or a money column such as transactionAmountUsdCents). Defaults to createdAt. |
| status? | query | string | draft, sent, open, overdue, paid or void. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/invoicesinvoices:writeCreate an invoice
Create an invoice in draft status: invoiceNumber and finalizedAt are null until it is finalised. Set supplyDate when the date of supply differs from the issue date. customerId must be a customer in your account (404 NOT_FOUND otherwise). The USD cents side is converted at the live exchange rate. Returns 201.
| Body field | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | |
| itemLocalCurrencyAmount | integer | No | |
| itemLocalCurrency | string | No | ISO 4217 code the invoice is issued in. Required unless every item has a priceId: then it is the prices' one currency (prices in different currencies: 400 CURRENCY_MISMATCH). There is no default. See /docs/money-and-currencies. |
| dueDate | string | No | |
| supplyDate | string | No | Date of supply / tax point (YYYY-MM-DD), up to 365 days ahead and 6 years back. Omitted: the issue date, stamped when the invoice is finalised. Printed on the PDF and hosted invoice; VAT / GST is filed under the earliest of this, the issue date and payment. |
| items | object[] | No | |
| items[].description | string | Yes | |
| items[].quantity | integer | No | |
| items[].unitAmount | integer | No | |
| items[].unitPrice | integer | No | |
| items[].priceId | string | No | |
| lineItems | object[] | No | |
| lineItems[].description | string | Yes | |
| lineItems[].quantity | integer | No | |
| lineItems[].unitAmount | integer | No | |
| lineItems[].unitPrice | integer | No | |
| lineItems[].priceId | string | No | |
| notes | string | No | |
| metadata | object | No | |
| taxRate | number | No | |
| itemTaxLocalCurrencyAmount | integer | No | |
| taxBehavior | "inclusive" | "exclusive" | No | |
| taxRateId | string | No | |
| taxName | string | No | |
| customerCountry | string | No | |
| customerState | string | No | |
| customerPostalCode | string | No | |
| shippingRate | object | No | Shipping charged on the invoice: { id?, displayName, itemLocalCurrencyAmount, taxCode? (tc_shipping), taxBehavior? (exclusive) } in the invoice currency. Taxed at the customer's place with the items; never discounted. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/invoices/statsList invoice stats
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}invoices:readRetrieve an invoice
Retrieve a single invoice including its line items and status.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}invoices:writeUpdate an invoice
Update an invoice's dueDate and notes, and a draft's supplyDate (409 INVALID_STATE once issued). These are the only editable fields. Totals and status are server-managed; any other field returns 400 VALIDATION_ERROR, and an empty body returns 400.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| dueDate | string | No | |
| supplyDate | string | No | Date of supply / tax point (YYYY-MM-DD), up to 365 days ahead and 6 years back. Omitted: the issue date, stamped when the invoice is finalised. Printed on the PDF and hosted invoice; VAT / GST is filed under the earliest of this, the issue date and payment. |
| notes | string | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/apply-creditinvoices:writeCreate an invoice apply credit
Required API key scope: `invoices:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/attachmentsList invoice attachments
List the invoice's attached files, oldest first, without their content. Requires invoices:read.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/attachmentsCreate an invoice attachment
Upload one file to attach to the invoice's emails (multipart/form-data). Up to 5 files per invoice. Errors: 400 VALIDATION_ERROR (type, content or size), 409 ATTACHMENT_LIMIT (5 files already), 413 PAYLOAD_TOO_LARGE, 415 when the body is not multipart, 422 INVALID_STATE for a paid or void invoice. Requires invoices:write. Returns 201.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| file | string | Yes | multipart/form-data part, one file per request. PDF, PNG, JPEG, CSV, TXT, DOCX or XLSX, at most 10 MB. The extension, the declared type and the file's content must agree. The name is sanitized (no paths or control characters, at most 120 characters). |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/attachments/{attachmentId}Retrieve an invoice attachment
Download one attached file with its stored Content-Type. Requires invoices:read.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string | |
| attachmentId | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/attachments/{attachmentId}Delete an invoice attachment
Remove an attached file. Emails already sent keep the copy the customer received. Requires invoices:write.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string | |
| attachmentId | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/finalizeinvoices:writeCreate an invoice finalize
Required API key scope: `invoices:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/hosted-linkinvoices:readRetrieve invoice hosted link
Return the customer's current hosted invoice link as { invoiceId, url } (the same value as hostedInvoiceUrl). 404 for a draft, which has no hosted page yet. Requires invoices:read.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/hosted-linkinvoices:writeDelete invoice hosted link
Revoke every hosted link of the invoice sent so far (emails, copied links, webhook hosted_invoice_url and invoice_pdf) and return the new link as { invoiceId, url }. Old links then open the Invoice unavailable page (404). Emails, webhooks and GET /api/v1/invoices/:id use the new link from then on. Cannot be undone; recorded in the activity log as invoice.hosted_link_revoked. 404 for a draft or an invoice of another account. Requires invoices:write.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/mark-paidinvoices:writeMark an invoice as paid
Mark an invoice paid for out-of-band payments (wire, cash, etc.) and dispatch invoice.paid. No request body. Paid, void or cancelled invoices return 422 INVALID_STATE; a concurrent change returns 409 INVALID_STATE (the invoice is settled once).
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/pdfinvoices:readDownload an invoice PDF
Download the invoice as a PDF (Content-Type: application/pdf).
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/sendinvoices:writeSend an invoice
Email the invoice to the customer and set its status to sent. A draft is finalised first (numbered, dated, invoice.finalized). The body is optional: { attachmentIds } adds files uploaded to the invoice after the invoice PDF. Errors: 400 VALIDATION_ERROR when an attachment id is not one of this invoice's files; 422 NO_RECIPIENT when the customer has no email; 502 EMAIL_SEND_FAILED (the invoice stays unsent).
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/invoices/{invoiceId}/voidinvoices:writeCreate an invoice void
Required API key scope: `invoices:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| invoiceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Merchant
/v1/merchantaccount:readRetrieve merchant
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/merchantaccount:writeUpdate merchant
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/merchant/embed-settingsaccount:readList merchant embed settings
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/embed-settingsaccount:writeUpdate merchant embed settings
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/entitlement-settingsentitlements:readRetrieve entitlement settings
Your account's usage alert and access settings: pastDueKeepsAccess, notifyCustomer, alertThresholds, upgradeAllowance and billOverageOnCancel. Overage is set per price (GET /prices/{priceId}/feature-overage).
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/entitlement-settingsentitlements:writeUpdate entitlement settings
Change your account's usage alert and access settings (audited). Send only the fields to change; unknown fields, and the removed mode, answer 400 VALIDATION_ERROR. GET returns all five settings. Overage is set per price.
| Body field | Type | Required | Description |
|---|---|---|---|
| pastDueKeepsAccess | boolean | No | past_due subscriptions keep their features while payment is retried. Default true. |
| notifyCustomer | boolean | No | Also email the customer (feature_usage_alert_customer) when their usage crosses an alert threshold. Default false. |
| alertThresholds | integer[] | No | Up to 5 whole percentages from 1 to 100. Default [75, 90, 100]. |
| upgradeAllowance | "full" | "prorated" | No | After a mid-period upgrade, the new plan's full allowance (default) or a share prorated to the time left. |
| billOverageOnCancel | boolean | No | Invoice billed overage (prices with policy bill) used so far when a subscription is cancelled. Default true. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/pay-pageaccount:readRetrieve merchant pay page
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/pay-pageaccount:writeUpdate merchant pay page
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/settingsaccount:readRetrieve merchant settings
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/settingsaccount:writeUpdate merchant settings
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/merchant/settingsaccount:writeDelete merchant settings
Required API key scope: `account:write`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Meter Events
/v1/meter-eventssubscriptions:writeCreate a meter event
Required API key scope: `subscriptions:write`.
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Meters
/v1/meterssubscriptions:readList meters
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| page? | query | integer | |
| pageSize? | query | integer | |
| status? | query | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/meterssubscriptions:writeCreate a meter
Required API key scope: `subscriptions:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
Responses: 201 Created, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/meters/{meterId}subscriptions:readRetrieve a meter
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| meterId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/meters/{meterId}subscriptions:writeUpdate a meter
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| meterId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/meters/{meterId}subscriptions:writeUpdate a meter
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| meterId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/meters/{meterId}/usagesubscriptions:readRetrieve meter usage
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| meterId | path | string | |
| customerId? | query | string | |
| from? | query | string | |
| to? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Notifications
/v1/notificationsaccount:readList notifications
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notificationsaccount:writeUpdate notifications
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/notifications/alert-rulesaccount:readList notification alert rules
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/alert-rulesaccount:writeCreate a notification alert rule
Required API key scope: `account:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/alert-rulesaccount:writeUpdate notification alert rules
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/alert-rules/{ruleId}account:writeUpdate an alert rule
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| ruleId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/alert-rules/{ruleId}account:writeDelete an alert rule
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| ruleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/channelsaccount:readList notification channels
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/channelsaccount:writeUpdate notification channels
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/channels/webhookaccount:readRetrieve channel webhook
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/channels/webhookaccount:writeUpdate channel webhook
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/channels/{channel}/credentialsUpdate channel credentials
| Parameter | In | Type | Description |
|---|---|---|---|
| channel | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/notifications/channels/{channel}/credentialsDelete channel credentials
| Parameter | In | Type | Description |
|---|---|---|---|
| channel | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/notifications/countaccount:readRetrieve notification count
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/preferencesaccount:readRetrieve notification preferences
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/notifications/preferencesaccount:writeUpdate notification preferences
Required API key scope: `account:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Orders
/v1/orders/{orderId}/publicNo API keyRetrieve an order (public)
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| orderId | path | string |
Responses: 200 Success, 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Pay Pages
/v1/pay-pages/{handle}No API keyRetrieve a pay page
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| handle | path | string |
Responses: 200 Success, 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/pay-pages/{handle}/checkoutNo API keyCreate a pay page checkout
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| handle | path | string |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
Payment Element
/v1/payment-element/issue-public-idpayments:writeIssue a Payment Element public id
Required API key scope: `payments:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/payment-element/tokenizeNo API keyTokenize a card from the Payment Element
Public endpoint: no API key required.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
Payment Links
/v1/payment-linkspayment_links:readList payment links
Return a paginated list of payment links, newest first.
| Parameter | In | Type | Description |
|---|---|---|---|
| page? | query | integer | Page number (1-based). Defaults to 1. |
| pageSize? | query | integer | Results per page, 1-100. Defaults to 25. |
| search? | query | string | Matches link name or slug. |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string | Filter by link status (e.g. active). |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/payment-linkspayment_links:writeCreate a payment link
Create a payment link with status active. Unknown body fields return 400 VALIDATION_ERROR. Returns 201 and dispatches payment_link.created.
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | |
| itemLocalCurrencyAmount | integer | No | Fixed price in the smallest unit of itemLocalCurrency (positive integer). Required unless priceId is set: then the price's own amount is used. See /docs/money-and-currencies. |
| itemLocalCurrency | string | No | ISO 4217 code the link is priced in. Required unless priceId is set: then it is the price's currency (derived, never defaulted). See /docs/money-and-currencies. |
| url | string | No | |
| status | "active" | "inactive" | No | |
| productId | string | No | |
| priceId | string | No | |
| description | string | No | |
| metadata | object | No | |
| businessEntityId | string | No | |
| shippingOptions | object[] | No | Shipping rates the checkout offers (at most 5): { id?, displayName, itemLocalCurrencyAmount, taxCode? (tc_shipping), taxBehavior? (exclusive) } in the link's currency. The customer picks one; it is taxed at their address. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/payment-links/checkoutNo API keyCreate a checkout session from a payment link
Public endpoint: no API key required.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 410 Gone: the resource has expired or is no longer active., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/payment-links/resolveNo API keyResolve a payment link by slug (public)
Public endpoint. Resolve a payment link by slug (or ID). Returns 410 LINK_INACTIVE if the link is not active. Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| slug? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 410 Gone: the resource has expired or is no longer active., 500 Internal error: the failure was logged server-side.
/v1/payment-links/{linkId}payment_links:readRetrieve a payment link
Retrieve a single payment link by ID.
| Parameter | In | Type | Description |
|---|---|---|---|
| linkId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payment-links/{linkId}payment_links:writeUpdate a payment link
Update a payment link, e.g. to rename or deactivate it. Only the fields below are accepted; unknown or server-managed fields (e.g. paymentCount, itemLocalCurrency) return 400 VALIDATION_ERROR, and an empty body returns 400. An unknown link returns 404 NOT_FOUND; any other failure returns 500 INTERNAL_ERROR.
| Parameter | In | Type | Description |
|---|---|---|---|
| linkId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | No | |
| itemLocalCurrencyAmount | integer | No | |
| status | "active" | "inactive" | No | |
| metadata | object | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payment-links/{linkId}/payNo API keyPay a payment link
Public endpoint called by the hosted payment page. Supports card and UPI. Returns 410 LINK_INACTIVE for inactive links. Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| linkId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| string | Yes | Customer email (required for card payments). | |
| paymentMethod | "card" | "upi" | No | Defaults to "card". |
| vpa | string | No | UPI VPA. Required when paymentMethod is "upi". |
| cardNumber | string | No | Card number. Required unless the link is paid through a Stripe connection. |
| cardExpiry | string | No | Expiry in MM/YY format. Required for card payments. |
| cardCvc | string | No | Card security code. Required for card payments. |
| cardholderName | string | No | Name on the card. |
| gatewayConnectionId | string | No | Gateway connection to use. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 410 Gone: the resource has expired or is no longer active., 500 Internal error: the failure was logged server-side.
/v1/payment-links/{linkId}/paymentspayment_links:readList payment link payments
Required API key scope: `payment_links:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| linkId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payment-links/{linkId}/sendpayment_links:writeSend a payment link
Required API key scope: `payment_links:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| linkId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side., 502 Bad gateway: an upstream payment gateway or service rejected or failed the request.
Payment Methods
/v1/payment-methodscustomers:readList payment methods
Required API key scope: `customers:read`.
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/payment-methodscustomers:readUpdate payment methods
Required API key scope: `customers:read`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Payments
/v1/paymentspayments:readList payments
Return a paginated list of payments, newest first. Requires payments:read.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | Only rows of this business (one of your businesses, else 400 VALIDATION_ERROR). An API key scoped to a business always sees only its own business, whatever is sent. |
| customerId? | query | string | |
| dateFrom? | query | string | Inclusive start date, YYYY-MM-DD. |
| dateTo? | query | string | Inclusive end date, YYYY-MM-DD. |
| limit? | query | integer | |
| page? | query | integer | Page number (1-based). Defaults to 1. |
| pageSize? | query | integer | Results per page, 1-100. Defaults to 25. |
| search? | query | string | Matches payment id, description, or card last 4. |
| sortDirection? | query | "asc" | "desc" | asc or desc. Defaults to desc. |
| sortField? | query | string | Field to sort by (e.g. createdAt, or a money column such as transactionAmountUsdCents). Defaults to createdAt. |
| status? | query | string | Filter by payment status (e.g. success, pending, failed). |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/paymentspayments:writeCreate a payment
Create a payment. The gateway connection is chosen by your routing rules and routing strategy, or forced with gatewayId. An account in test mode is only routed to sandbox connections, never a live gateway. Errors: 404 NOT_FOUND when customerId is not a customer in your account; 422 GATEWAY_NOT_CONNECTED when the forced gateway has no active connection in your mode. Requires the payments:write scope. Returns 201; status reflects the gateway result, and redirectUrl is included when the gateway needs a redirect. Idempotency for this endpoint uses the body field `idempotencyKey` (not the Idempotency-Key header): a retry with the same key and body replays the original response; the same key with a different body returns 409 IDEMPOTENCY_CONFLICT.
| Body field | Type | Required | Description |
|---|---|---|---|
| transactionLocalCurrencyAmount | integer | Yes | |
| transactionLocalCurrency | string | Yes | |
| customerId | string | Yes | |
| gatewayId | string | No | |
| paymentMethod | string | No | |
| description | string | No | |
| metadata | object | No | |
| idempotencyKey | string | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/payments/verifyNo API keyVerify a payment result (public)
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| payment_id? | query | string | |
| payment_link_id? | query | string | |
| session_id? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}payments:readRetrieve a payment
Retrieve a payment with its event timeline, subscriptionId (when it came from a subscription checkout), and an embedded customer summary. Requires payments:read.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}payments:writeUpdate a payment
Update a payment's description and metadata. These are the only editable fields; other fields are ignored, and a body with neither returns 400 VALIDATION_ERROR. Requires payments:write.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| description | string | No | |
| metadata | object | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}/3dspayments:readRetrieve 3D Secure status
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/payments/{paymentId}/3dspayments:writeStart 3D Secure authentication
Required API key scope: `payments:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/payments/{paymentId}/3ds/challengeNo API keyOpen the 3D Secure challenge page
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string | |
| returnUrl? | query | string |
Responses: 302 Redirect to the next step of the flow (see the Location header)., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}/3ds/challengeNo API keySubmit a 3D Secure challenge result
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 302 Redirect to the next step of the flow (see the Location header)., 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/payments/{paymentId}/capturepayments:writeCapture a payment
Capture a payment in status requires_capture, fully or partially. Only test-mode authorizations can be captured through the API; other gateways return 422 CAPTURE_NOT_SUPPORTED. Requires payments:write; honours Idempotency-Key. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string | |
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| transactionAmountUsdCents | integer | No | Amount to capture in USD cents. Defaults to the full authorized transactionAmountUsdCents; cannot exceed it. A partial capture scales transactionLocalCurrencyAmount by the same fraction. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}/receipt-linkpayments:readRetrieve payment receipt link
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}/receipt-linkpayments:writeDelete payment receipt link
Required API key scope: `payments:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}/refundpayments:writeRefund a payment
Refund all or part of a payment in status success or disputed, through the gateway that processed it. Returns 201 with the refund. Errors: 422 INVALID_STATE, 400 EXCEEDS_REFUNDABLE, 409 GATEWAY_NOT_CONNECTED, 502 GATEWAY_REJECTED, 409 IDEMPOTENCY_IN_PROGRESS (the same Idempotency-Key is still being processed). Requires payments:write; honours Idempotency-Key. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string | |
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| transactionAmountUsdCents | integer | Yes | Amount to refund in USD cents. Cannot exceed transactionAmountUsdCents less transactionRefundedAmountUsdCents. The gateway is refunded the pro-rata share of transactionLocalCurrencyAmount, in transactionLocalCurrency. |
| reason | string | No | Free-text reason recorded on the refund. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payments/{paymentId}/statuspayments:readRetrieve payment status
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| paymentId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Payouts
/v1/payoutspayments:readList payouts
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/payouts/{payoutId}payments:readRetrieve a payout
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| payoutId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/payouts/{payoutId}/paymentspayments:readList payout payments
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| payoutId | path | string | |
| limit? | query | integer | |
| pageSize? | query | integer | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Plans
/v1/plansList plans
| Parameter | In | Type | Description |
|---|---|---|---|
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| status? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/plans/{planId}Retrieve a plan
| Parameter | In | Type | Description |
|---|---|---|---|
| planId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Prices
/v1/pricesproducts:readList prices
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | |
| businessOnly? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| productId? | query | string | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string | |
| tag? | query | string | |
| tagMatch? | query | string | |
| type? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/pricesproducts:writeCreate a price
Required API key scope: `products:write`.
| Body field | Type | Required | Description |
|---|---|---|---|
| productId | string | Yes | |
| itemLocalCurrencyAmount | integer | Yes | |
| itemLocalCurrency | string | No | |
| currencyOptions | object | No | |
| name | string | No | |
| nickname | string | No | |
| type | "recurring" | "one_time" | No | |
| interval | "day" | "week" | "month" | "year" | "one_time" | No | |
| intervalCount | integer | No | |
| trialDays | integer | No | |
| taxBehavior | "inclusive" | "exclusive" | No | |
| taxRateId | string | No | |
| status | "active" | "archived" | No | |
| billingScheme | "per_unit" | "tiered" | No | |
| tiersMode | "graduated" | "volume" | No | |
| tiers | object[] | No | |
| tiers[].upTo | integer | Yes | |
| tiers[].unitAmount | integer | Yes | |
| tiers[].flatAmount | integer | No | |
| usageType | "licensed" | "metered" | No | |
| meterId | string | No | |
| includedQuantity | integer | No | |
| showOnHostedPages | boolean | No | |
| allowCustomerPlanChange | boolean | No | |
| metadata | object | No | |
| tags | string[] | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/prices/tagsList price tags
Required API key scope: `products:read`.
/v1/prices/{priceId}products:readRetrieve a price
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}products:writeUpdate a price
Required API key scope: `products:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| itemLocalCurrencyAmount | integer | No | |
| currencyOptions | object | No | |
| name | string | No | |
| nickname | string | No | |
| status | "active" | "archived" | No | |
| trialDays | integer | No | |
| taxBehavior | "inclusive" | "exclusive" | No | |
| taxRateId | string | No | |
| showOnHostedPages | boolean | No | |
| allowCustomerPlanChange | boolean | No | |
| metadata | object | No | |
| tags | string[] | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}products:writeDelete a price
Required API key scope: `products:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}/feature-overageproducts:readRetrieve a price's overage terms
The overage terms of each quantity or metered feature on the price's product: policy (restrict | allow | bill), the package price in the price's itemLocalCurrency and in USD cents, package size and cap.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}/feature-overageproducts:writeReplace a price's overage terms
Replace the price's overage terms. GET returns the current terms with the package price in the price's currency and in USD cents. Errors: 400 VALIDATION_ERROR, 404 NOT_FOUND, 409 FEATURE_METER_BILLED_BY_PRICE.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| overages | object[] | Yes | The price's whole overage list; it replaces the current one. One entry per quantity or metered feature of the price's product. |
| overages[].featureId | string | Yes | A quantity or metered feature on the price's product. |
| overages[].policy | "restrict" | "allow" | "bill" | Yes | restrict (default without an entry): usage above the maximum is refused. allow: recorded, alerted and sent in webhooks, never refused or charged. bill: metered features only; usage above the maximum is billed on the renewal invoice. A feature whose meter a metered price already bills answers 409 FEATURE_METER_BILLED_BY_PRICE. |
| overages[].itemOverageUnitLocalCurrencyAmount | integer | No | bill: price per package in the smallest unit of the price's itemLocalCurrency (from 1). The USD cents are derived at the price's itemUsdToLocalCurrencyRate. |
| overages[].overagePackageSize | integer | No | bill: units per package (from 1, default 1). Packages are rounded up. |
| overages[].overageCap | integer | No | bill: units allowed above the maximum, or null for no cap. Usage beyond it answers 409 ENTITLEMENT_OVERAGE_CAP_REACHED. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}/migrate-subscriptionssubscriptions:writeCreate a price migrate subscription
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}/productproducts:readRetrieve a price's product
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}/subscriptionssubscriptions:readList price subscriptions
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/prices/{priceId}/versionsproducts:readList price versions
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| priceId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Products
/v1/productsproducts:readList products
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | |
| businessOnly? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string | |
| tag? | query | string | |
| tagMatch? | query | string | |
| type? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/productsproducts:writeCreate a product
Required API key scope: `products:write`.
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | |
| description | string | No | |
| hsnCode | string | No | |
| taxCode | string | No | |
| type | string | No | |
| status | "active" | "archived" | No | |
| businessEntityIds | string[] | No | |
| showOnHostedPages | boolean | No | |
| metadata | object | No | |
| tags | string[] | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/products/tagsList product tags
Required API key scope: `products:read`.
/v1/products/{productId}products:readRetrieve a product
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| productId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/products/{productId}products:writeUpdate a product
Required API key scope: `products:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| productId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | No | |
| description | string | No | |
| hsnCode | string | No | |
| taxCode | string | No | |
| type | string | No | |
| status | "active" | "archived" | No | |
| businessEntityIds | string[] | No | |
| showOnHostedPages | boolean | No | |
| metadata | object | No | |
| tags | string[] | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/products/{productId}products:writeDelete a product
Required API key scope: `products:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| productId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/products/{productId}/featuresproducts:readList a product's features
The product's features in display order: featureId, key, name, type, unit, status, enabled, limitValue (null = unlimited) and displayOrder.
| Parameter | In | Type | Description |
|---|---|---|---|
| productId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/products/{productId}/featuresproducts:writeReplace a product's features
Replace the product's whole feature list in one transaction (audited). Running subscriptions keep the terms they were snapshotted with until their next period. Errors: 404 NOT_FOUND for an unknown product, 400 VALIDATION_ERROR with error.fields keyed features.N.field.
| Parameter | In | Type | Description |
|---|---|---|---|
| productId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| features | object[] | Yes | The product's whole feature list (at most 50). It replaces the current list: a feature left out is removed from the product. Send [] to remove all. |
| features[].featureId | string | Yes | One of your active features. A feature already on the product may stay after it was archived. |
| features[].enabled | boolean | No | Whether the plan includes it. Defaults to true. A disabled feature keeps its row but grants nothing and has no maximum. |
| features[].limitValue | integer | No | Quantity and metered features: the maximum (0 to 2147483647), or null / omitted for unlimited. Boolean features take no maximum. |
| features[].displayOrder | integer | No | Position in What's included (0 to 10000). Defaults to the position in the list. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/products/{productId}/pricesproducts:readList product prices
Required API key scope: `products:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| productId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/products/{productId}/subscriptionssubscriptions:readList product subscriptions
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| productId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Quote Pages
/v1/quote-pages/{token}No API keyRetrieve a quote page
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/quote-pages/{token}/pdfNo API keyRetrieve quote page pdf
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 500 Internal error: the failure was logged server-side.
/v1/quote-pages/{token}/respondNo API keyCreate a quote page respond
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 500 Internal error: the failure was logged server-side.
Quotes
/v1/quotesinvoices:readList quotes
Required API key scope: `invoices:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| status? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/quotesinvoices:writeCreate a quote
Create a draft quote in one itemLocalCurrency. Stored like an invoice: itemLocalCurrency, itemUsdToLocalCurrencyRate, and each of subtotal, tax and total in the currency's smallest unit and in USD cents. quoteNumber is the next number in your own sequence, QT-nnnn-XXXX (XXXX: the last four characters of your merchant id); quotes numbered before this keep their original QT-nnnn. Accepting it creates an invoice with the same currency, rate and amounts. Errors: 400 VALIDATION_ERROR (unsupported currency), 404 NOT_FOUND (customer), 400 PRICE_NOT_FOUND / PRICE_NOT_QUOTABLE / CURRENCY_MISMATCH / PRICE_AMOUNT_MISMATCH (lineItems[].priceId). Requires invoices:write. Returns 201.
| Body field | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | ID of a customer in your account (404 NOT_FOUND otherwise). |
| itemLocalCurrency | string | No | ISO 4217 code the quote is issued in (any active currency with a live rate). Required unless every line has a priceId: then the prices' one currency (different currencies: 400 CURRENCY_MISMATCH); no default. Every amount is in its smallest unit; the USD cents side is converted once at the live rate and stored with itemUsdToLocalCurrencyRate. The invoice created on acceptance keeps this currency and rate. |
| lineItems | object[] | Yes | One or more lines. |
| lineItems[].description | string | No | Line label. With priceId, defaults to the price's nickname, name or product name. |
| lineItems[].quantity | integer | No | Quantity. Defaults to 1. |
| lineItems[].unitAmount | integer | No | Unit price in the smallest unit of itemLocalCurrency (unitPrice is accepted as an alias). Required unless priceId is set; with priceId it must equal the price's amount (400 PRICE_AMOUNT_MISMATCH). |
| lineItems[].priceId | string | No | One of your active one-time, per-unit prices. Its currency must be itemLocalCurrency (400 CURRENCY_MISMATCH); recurring, tiered or metered prices return 400 PRICE_NOT_QUOTABLE. |
| taxRate | number | No | Your own tax percentage, 0-100, applied to the whole quote. Omit taxRate and itemTaxLocalCurrencyAmount to tax each line automatically: by its price (priceId), else by your Tax settings for the customer's place (customerCountry / customerState, else the customer's saved country). |
| itemTaxLocalCurrencyAmount | integer | No | Your own tax amount in the smallest unit of itemLocalCurrency (with or without taxRate), applied as given. |
| taxBehavior | string | No | "exclusive" (tax added on top, default) or "inclusive" (the line amounts already contain the tax). |
| taxRateId | string | No | One of your tax rates for lines without a priceId. |
| taxName | string | No | Name printed for your own tax (default "Tax"; max 60 chars). |
| customerCountry | string | No | The customer's country (ISO 3166-1 alpha-2) for automatic tax. customerState is needed for the United States (422 TAX_STATE_REQUIRED otherwise when you collect tax there), Canada and India. The invoice created on acceptance keeps the same tax. |
| expiresAt | string | No | ISO 8601 expiry. The dashboard sets 30 days. |
| notes | string | No | Notes printed on the quote. |
| shippingRate | object | No | Shipping quoted, in the quote's currency: { id?, displayName, itemLocalCurrencyAmount, taxCode?, taxBehavior? }, as on POST /api/v1/invoices. Taxed with the lines, included in the total, printed on the quote, and carried with its tax onto the invoice created on acceptance. Invalid: 400 VALIDATION_ERROR naming shippingRate. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/quotes/{quoteId}invoices:readRetrieve a quote
Required API key scope: `invoices:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| quoteId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/quotes/{quoteId}invoices:writeUpdate a quote
Required API key scope: `invoices:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| quoteId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/quotes/{quoteId}/sendinvoices:writeSend a quote
Required API key scope: `invoices:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| quoteId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Receipt Pages
/v1/receipt-pages/{token}No API keyRetrieve a receipt page
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/receipt-pages/{token}/pdfNo API keyRetrieve receipt page pdf
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| token | path | string |
Responses: 200 Success, 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
Refunds
/v1/refundspayments:readList refunds
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| paymentId? | query | string | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Reports
/v1/reportsreports:readList reports
Required API key scope: `reports:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| search? | query | string | |
| status? | query | string | |
| type? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reportsreports:writeCreate a report
Required API key scope: `reports:write`.
Responses: 201 Created, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/payments-exportpayments:readRetrieve report payments export
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | |
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/previewreports:readCreate a report preview
Required API key scope: `reports:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/receivablesreports:readList report receivables
Required API key scope: `reports:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/schedulesreports:readList report schedules
Required API key scope: `reports:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/schedulesreports:writeCreate a report schedule
Required API key scope: `reports:write`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/schedules/{scheduleId}Retrieve a schedule
| Parameter | In | Type | Description |
|---|---|---|---|
| scheduleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/reports/schedules/{scheduleId}Update a schedule
| Parameter | In | Type | Description |
|---|---|---|---|
| scheduleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/reports/schedules/{scheduleId}Delete a schedule
| Parameter | In | Type | Description |
|---|---|---|---|
| scheduleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 500 Internal error: the failure was logged server-side.
/v1/reports/taxreports:readRetrieve report tax
Required API key scope: `reports:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| format? | query | string | |
| from? | query | string | |
| q? | query | string | |
| to? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/tax/location-evidencereports:readRetrieve tax location evidence
Required API key scope: `reports:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| from? | query | string | |
| to? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/reports/{reportId}reports:readRetrieve a report
Required API key scope: `reports:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| reportId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/reports/{reportId}/downloadreports:readDownload a report as CSV
Required API key scope: `reports:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| reportId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Routing
/v1/routing-rulesrouting:readList routing rules
Required API key scope: `routing:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/routing-rulesrouting:writeCreate a routing rule
Required API key scope: `routing:write`.
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | |
| description | string | No | |
| isEnabled | boolean | No | |
| priority | integer | No | |
| conditions | object[] | Yes | |
| conditions[].field | string | Yes | |
| conditions[].operator | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "contains" | "in" | Yes | |
| conditions[].value | string | number | Yes | |
| conditionLogic | "AND" | "OR" | No | |
| action | object | Yes |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/routing-rules/{ruleId}routing:writeUpdate a routing rule
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| ruleId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| name | string | No | |
| description | string | No | |
| isEnabled | boolean | No | |
| priority | integer | No | |
| conditions | object[] | No | |
| conditions[].field | string | Yes | |
| conditions[].operator | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "contains" | "in" | Yes | |
| conditions[].value | string | number | Yes | |
| conditionLogic | "AND" | "OR" | No | |
| action | object | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
/v1/routing-rules/{ruleId}routing:writeDelete a routing rule
Required API key scope: `routing:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| ruleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/routing/simulaterouting:readSimulate a routing decision
Required API key scope: `routing:read`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Status
/v1/status/publicNo API keyRetrieve platform status (public)
Public endpoint: no API key required.
Responses: 200 Success, 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
Subscription Schedules
/v1/subscription-schedulessubscriptions:readList subscription schedules
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| customerId? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| status? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscription-schedulessubscriptions:writeCreate a subscription schedule
Required API key scope: `subscriptions:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscription-schedules/{scheduleId}subscriptions:readRetrieve a subscription schedule
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| scheduleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscription-schedules/{scheduleId}/advancesubscriptions:writeAdvance a subscription schedule
Required API key scope: `subscriptions:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| scheduleId | path | string | |
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscription-schedules/{scheduleId}/cancelsubscriptions:writeCancel a subscription schedule
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| scheduleId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscription-schedules/{scheduleId}/releasesubscriptions:writeRelease a subscription schedule
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| scheduleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Subscriptions
/v1/subscriptionssubscriptions:readList subscriptions
Return a paginated list of subscriptions, newest first. Also accepts priceId and productId filters.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | Only rows of this business (one of your businesses, else 400 VALIDATION_ERROR). An API key scoped to a business always sees only its own business, whatever is sent. |
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | Page number (1-based). Defaults to 1. |
| pageSize? | query | integer | Results per page, 1-100. Defaults to 25. |
| priceId? | query | string | |
| productId? | query | string | |
| search? | query | string | Matches the customer's id, name, or email. |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string | Filter by subscription status (e.g. active, paused, cancelled). |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptionssubscriptions:writeCreate a subscription
Create a subscription for a customer in your account against a recurring price. Returns 201 with status trialing when a trial applies, otherwise active, and dispatches subscription.created. Errors: 400 VALIDATION_ERROR for an invalid trialEndAt, 404 NOT_FOUND for an unknown price or customer, 422 INVALID_STATE when the price has an unsupported billing interval, 502 SCHEDULING_FAILED when the renewal cannot be scheduled (the subscription is not created). Honours Idempotency-Key. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | |
| priceId | string | No | |
| quantity | integer | No | |
| items | object[] | No | |
| items[].priceId | string | No | |
| items[].priceData | object | No | |
| items[].priceData.description | string | Yes | |
| items[].priceData.productKey | string | No | |
| items[].priceData.productName | string | No | |
| items[].priceData.productCategory | string | No | |
| items[].priceData.unitPrice | integer | Yes | |
| items[].priceData.itemLocalCurrency | string | Yes | |
| items[].priceData.recurring | object | Yes | |
| items[].quantity | integer | No | |
| gatewayConnectionId | string | No | |
| trialEndAt | string | No | |
| collectionMethod | "charge_automatically" | "send_invoice" | No | |
| metadata | object | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side., 503 Service unavailable: a required dependency (database, cache, provider) is not available.
/v1/subscriptions/{subscriptionId}subscriptions:readRetrieve a subscription
Retrieve a subscription. Returns the same camelCase record as list and create (currentPeriodEnd, nextPaymentAt, ...) and embeds a customer summary.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}subscriptions:writeUpdate a subscription
Update a subscription's metadata, the only updatable field. Any other field (e.g. priceId, status) returns 400 VALIDATION_ERROR. To change plans, preview the cost with preview-proration; the switch itself is made from the customer billing page.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| metadata | object | Yes |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/amendsubscriptions:writeCreate a subscription amend
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/cancelsubscriptions:writeCancel a subscription
Cancel immediately (status cancelled; unused time may be credited per your prorate-on-cancel setting) or at period end. Already-cancelled subscriptions return 422 INVALID_STATE.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/change-plansubscriptions:writeCreate a subscription change plan
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/change-plansubscriptions:writeDelete subscription change plan
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/featuresentitlements:readList a subscription's features
The features this subscription grants: enabled, used / maximum, policy, overage so far and its estimated charge, reset date, adjustments, and features covered by an earlier subscription of the same customer.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/invoice-itemssubscriptions:writeCreate a subscription invoice item
Required API key scope: `subscriptions:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
Responses: 201 Created, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/invoice-items/{pendingId}subscriptions:writeDelete a subscription invoice item
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| pendingId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/invoicessubscriptions:readList subscription invoices
Return the subscription's own invoices (those its payments settled), newest first. Paginated with page and limit.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| limit? | query | integer | Results per page. Defaults to 50, max 100. |
| page? | query | integer | Page number (1-based). Defaults to 1. |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/itemssubscriptions:readList subscription items
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/itemssubscriptions:writeCreate a subscription item
Required API key scope: `subscriptions:write`. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
Responses: 201 Created, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/items/{itemId}subscriptions:writeUpdate a subscription item
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| itemId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/items/{itemId}subscriptions:writeUpdate a subscription item
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| itemId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/items/{itemId}subscriptions:writeDelete a subscription item
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| itemId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/pausePause a subscription
Pause an active or trialing subscription. Scheduled renewals are cancelled until it is resumed. Other statuses return 422 INVALID_STATE.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/paymentssubscriptions:readList subscription payments
Return the subscription's own payments (its first checkout charge and every renewal), newest first. Paginated with page and limit.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| limit? | query | integer | Results per page. Defaults to 50, max 100. |
| page? | query | integer | Page number (1-based). Defaults to 1. |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/preview-prorationsubscriptions:readPreview a plan change for a subscription
Preview the credit, debit, and net amount of switching to another price. Returns prorationDate, prorationCreditLocalCurrencyAmount, prorationDebitLocalCurrencyAmount, prorationNetLocalCurrencyAmount (all in the smallest unit of itemLocalCurrency), itemLocalCurrency, and remainingDays. Does not change the subscription.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/reactivatesubscriptions:writeCreate a subscription reactivate
Required API key scope: `subscriptions:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/resumeResume a subscription
Resume a paused subscription. The renewal is rescheduled for its stored next payment date or current period end. Other statuses return 422 INVALID_STATE. If the renewal cannot be scheduled it returns 502 SCHEDULING_FAILED and the subscription stays paused.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/retryRetry a subscription
Create a new checkout session for the subscription's itemLocalCurrencyAmount in its itemLocalCurrency so the customer can pay a missed renewal. The response returns that price as itemLocalCurrencyAmount and itemLocalCurrency. Allowed for active, past_due, paused, and cancelled subscriptions. Returns 201 with the checkout URL.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 201 Created, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/send-setup-linksubscriptions:writeCreate a subscription send setup link
Email the customer a link to set up automatic payments again (the mandate_setup_link email; your Subscription emails preference applies). Returns the url, sessionId and the email outcome. Scope subscriptions:write.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/setup-sessionsubscriptions:writeCreate a subscription setup session
Create a setup-only session for an active or trialing subscription whose automatic payments are not set up. The customer authorises a new payment method at url; the period is not charged, not advanced and the price does not change. Returns the open session again (reused: true) while it is valid. Scope subscriptions:write. 422 SETUP_NOT_AVAILABLE or NO_SETUP_GATEWAY when it cannot be offered.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 201 Created, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/transactionssubscriptions:readList subscription transactions
Return transactions recorded against the subscription, newest first.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string | |
| limit? | query | integer | Results per page. Defaults to 50, max 100. |
| page? | query | integer | Page number (1-based). Defaults to 1. |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/subscriptions/{subscriptionId}/upcoming-invoicesubscriptions:readRetrieve subscription upcoming invoice
Required API key scope: `subscriptions:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| subscriptionId | path | string |
Responses: 200 Success, 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
Tax
/v1/tax-ratestax:readList tax rates
Required API key scope: `tax:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| active? | query | string | |
| country? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax-ratestax:writeCreate a tax rate
Required API key scope: `tax:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax-rates/importtax:writeCreate a tax rate import
Required API key scope: `tax:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax-rates/{taxRateId}tax:readRetrieve a tax rate
Required API key scope: `tax:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| taxRateId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/tax-rates/{taxRateId}tax:writeUpdate a tax rate
Required API key scope: `tax:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| taxRateId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/tax-settingstax:readRetrieve tax settings
Required API key scope: `tax:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax-settingstax:writeUpdate tax settings
Required API key scope: `tax:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax/calculatetax:readCalculate tax
Required API key scope: `tax:read`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax/calculate/publicNo API keyCalculate tax for a checkout session (public)
Public endpoint: no API key required.
| Parameter | In | Type | Description |
|---|---|---|---|
| sessionId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/tax/previewtax:writePreview tax for an amount
Required API key scope: `tax:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax/report-settingstax:readList tax report settings
Required API key scope: `tax:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax/report-settingstax:writeUpdate tax report settings
Required API key scope: `tax:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax/thresholdstax:readList tax thresholds
Required API key scope: `tax:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax/thresholds/registrationstax:writeCreate a threshold registration
Required API key scope: `tax:write`.
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax/transactionstax:readList tax transactions
Required API key scope: `tax:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| from? | query | string | |
| limit? | query | integer | |
| offset? | query | integer | |
| to? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Tax Codes
/v1/tax-codestax:readList tax codes
Required API key scope: `tax:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| category? | query | string | |
| country? | query | string | |
| date? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| state? | query | string | |
| status? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/tax-codes/{taxCodeId}tax:readRetrieve a tax code
Required API key scope: `tax:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| taxCodeId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
Team & Roles
/v1/rbac/meaccount:readRetrieve rbac me
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/rbac/rolesaccount:readList rbac roles
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/rbac/rolesaccount:readCreate a rbac role
Required API key scope: `account:read`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/rbac/roles/{roleId}account:readRetrieve a role
Required API key scope: `account:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| roleId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/rbac/roles/{roleId}account:readUpdate a role
Required API key scope: `account:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| roleId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/rbac/roles/{roleId}account:readDelete a role
Required API key scope: `account:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| roleId | path | string | |
| reassignToRoleId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/rbac/usersaccount:readList rbac users
Required API key scope: `account:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/rbac/usersaccount:writeInvite a team member
Required API key scope: `account:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/rbac/users/{userId}account:readRetrieve a user
Required API key scope: `account:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| userId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/rbac/users/{userId}account:writeUpdate a user
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| userId | path | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
/v1/rbac/users/{userId}account:writeDelete a user
Required API key scope: `account:write`.
| Parameter | In | Type | Description |
|---|---|---|---|
| userId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 500 Internal error: the failure was logged server-side.
Tokens
/v1/tokenspayments:writeTokenize a card
Required API key scope: `payments:write`.
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 422 Unprocessable: the request is valid but cannot be applied in the resource's current state., 500 Internal error: the failure was logged server-side.
Transactions
/v1/transactionspayments:readList transactions
Required API key scope: `payments:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| businessEntityId? | query | string | |
| customerId? | query | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| limit? | query | integer | |
| page? | query | integer | |
| pageSize? | query | integer | |
| search? | query | string | |
| sortDirection? | query | "asc" | "desc" | |
| sortField? | query | string | |
| status? | query | string | |
| type? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
Webhooks
/v1/webhooks/endpointswebhooks:readList webhook endpoints
Return all webhook endpoints for your account, newest first. Not paginated. signingSecret is masked (whsec_… plus its last 4 characters); use reveal-secret for the full value.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/endpointswebhooks:writeCreate a webhook endpoint
Register a webhook endpoint. A whsec_ signing secret is generated and returned in full in this response only. Unknown body fields are rejected. Returns 201. Honours Idempotency-Key. Honours the `Idempotency-Key` header.
| Parameter | In | Type | Description |
|---|---|---|---|
| Idempotency-Key? | header | string | Unique key (max 200 characters) that makes the request safe to retry. A retry with the same key replays the original response (marked with `x-idempotent-replayed: true`); keys are scoped to your account. |
| Body field | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | |
| description | string | No | |
| subscribedEvents | string[] | No | |
| deliveryFilters | object | No | |
| deliveryFilters.apiVersion | string | No | |
| deliveryFilters.gateway | string | No | |
| deliveryFilters.amountMin | integer | No | |
| deliveryFilters.amountMax | integer | No |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/endpoints/{endpointId}webhooks:readRetrieve an endpoint
Return one webhook endpoint (webhooks:read). signingSecret is masked. 404 NOT_FOUND when it does not exist or belongs to another account.
| Parameter | In | Type | Description |
|---|---|---|---|
| endpointId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/webhooks/endpoints/{endpointId}webhooks:writeUpdate a webhook endpoint
Update a webhook endpoint. Only the fields below are accepted; unknown fields return 400 VALIDATION_ERROR. signingSecret is masked in the response.
| Parameter | In | Type | Description |
|---|---|---|---|
| endpointId | path | string |
| Body field | Type | Required | Description |
|---|---|---|---|
| url | string | No | |
| description | string | No | |
| subscribedEvents | string[] | No | |
| status | "active" | "disabled" | No | |
| deliveryFilters | object | No | |
| failureThreshold | integer | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/webhooks/endpoints/{endpointId}/deliverieswebhooks:readList a webhook endpoint's deliveries
Required API key scope: `webhooks:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| endpointId | path | string | |
| dateFrom? | query | string | |
| dateTo? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| status? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/webhooks/endpoints/{endpointId}/reveal-secretaccount:writeCreate an endpoint reveal secret
Return the endpoint's current signing secret in full. Requires account:write. Each reveal is recorded in the activity log as webhook_endpoint.secret_revealed. Limited to 10 per hour per person (429 RATE_LIMITED with Retry-After).
| Parameter | In | Type | Description |
|---|---|---|---|
| endpointId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/webhooks/endpoints/{endpointId}/rotate-secretwebhooks:writeRotate a webhook endpoint signing secret
Generate a new signing secret. The previous secret stays valid for a 24-hour grace period.
| Parameter | In | Type | Description |
|---|---|---|---|
| endpointId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/webhooks/healthwebhooks:readRetrieve webhook delivery health
Required API key scope: `webhooks:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/incomingwebhooks:readList received gateway webhooks
Required API key scope: `webhooks:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| limit? | query | integer | |
| provider? | query | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/logswebhooks:readList webhook deliveries
Return delivery logs for your endpoints, newest first. Accepts endpointId, page, and pageSize (default 25).
| Parameter | In | Type | Description |
|---|---|---|---|
| dateFrom? | query | string | |
| dateTo? | query | string | |
| endpointId? | query | string | |
| page? | query | integer | |
| pageSize? | query | integer | |
| sinceId? | query | string |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/logs/{logId}webhooks:readRetrieve a webhook delivery with its request, response and attempts
Required API key scope: `webhooks:read`.
| Parameter | In | Type | Description |
|---|---|---|---|
| logId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 500 Internal error: the failure was logged server-side.
/v1/webhooks/logs/{logId}/replaywebhooks:writeReplay a webhook delivery
Redeliver a logged event to its endpoint as a new signed delivery, keeping the original event id when the log holds the full event. Returns 200; data.success reflects the endpoint's answer. Errors: 404 NOT_FOUND when the log does not exist or belongs to another account; 409 ENDPOINT_INACTIVE when the endpoint is disabled (re-enable it first).
| Parameter | In | Type | Description |
|---|---|---|---|
| logId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/logs/{logId}/resendwebhooks:writeResend a webhook delivery
Same redelivery as replay, returned as the new delivery log entry (status success or failed). Same 404 NOT_FOUND and 409 ENDPOINT_INACTIVE errors.
| Parameter | In | Type | Description |
|---|---|---|---|
| logId | path | string |
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/session-secretwebhooks:readRetrieve the per-session webhook signing secret
Required API key scope: `webhooks:read`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/session-secret/rotatewebhooks:writeRotate the per-session webhook signing secret
Required API key scope: `webhooks:write`.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/simulatewebhooks:writeSend a simulated webhook event
Required API key scope: `webhooks:write`.
| Body field | Type | Required | Description |
|---|---|---|---|
| eventType | string | Yes | |
| endpointUrl | string | No |
Responses: 200 Success, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 404 Not found: the resource does not exist or does not belong to your account., 409 Conflict: the request conflicts with the resource's current state or an earlier idempotent request., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.
/v1/webhooks/streamwebhooks:readStream webhook events (server-sent events)
Server-sent events (text/event-stream) of every webhook event dispatched for your account, with or without registered endpoints. Scope webhooks:read. The first message is event ready with { merchantId, livemode, signingSecret } (your CLI signing secret, created on first use); then one event webhook with { type, envelope } per event, where envelope is the exact event endpoints receive. Used by ph listen; events are not replayed after a reconnect. Responds with text/event-stream. First message: `event: ready` with { merchantId, livemode, signingSecret } (the CLI signing secret). Then one `event: webhook` with { type, envelope } per event dispatched for your account, where envelope is the exact event registered endpoints receive. Used by `ph listen`; events are not replayed after a reconnect.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/stream/secret/rotatewebhooks:writeRotate the CLI signing secret
Replace the CLI signing secret. Returns 200 { signingSecret }. Streams opened afterwards sign with the new secret; restart running ph listen sessions. Scope webhooks:write. Returns 200 { signingSecret }. Streams opened afterwards sign with the new secret.
Responses: 200 Success, 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 500 Internal error: the failure was logged server-side.
/v1/webhooks/stream/triggerwebhooks:writeSend a sample event to open streams
Publish a sample event built by the real payload builders to your open streams only; it is never delivered to registered endpoints. Body { eventType } (a known event type, else 400 VALIDATION_ERROR). Returns 201 { eventId, type }. The sample has livemode false and metadata.simulated = 'true'. Scope webhooks:write; 20 per minute (429 RATE_LIMITED). Body { eventType } (a known event type, else 400 VALIDATION_ERROR). Publishes a sample event (livemode false, metadata.simulated "true") to open streams only; it is never delivered to registered endpoints. Returns 201 { eventId, type }. 20 per minute (429 RATE_LIMITED).
| Body field | Type | Required | Description |
|---|---|---|---|
| eventType | string | Yes |
Responses: 201 Created, 400 Bad request: the body or parameters failed validation (VALIDATION_ERROR) or the request is malformed., 401 Unauthorized: no valid API key or session was supplied., 403 Forbidden: the API key lacks the required scope (INSUFFICIENT_SCOPE) or the caller lacks the required role., 429 Too many requests: a rate limit was exceeded., 500 Internal error: the failure was logged server-side.