PaybytokenDocs
API reference

API reference

Build and operate stablecoin payments with predictable, server-authenticated resources.

The Paybytoken API uses resource-oriented JSON endpoints. Create orders with Checkout Sessions, observe payment state with Payment Intents, and fulfill from signed events.

The versioned contract spans merchant, public checkout, consumer and restricted operator surfaces. Browse the generated Endpoint catalog for the complete versioned contract and its current operation counts.

API surfaces

SurfaceBase URLIntended caller
Merchanthttps://api-prod.paybytoken.io/api/v1Merchant server with a secret or restricted API key.
Payments Routerhttps://payments-api.paybytoken.io/v2Merchant server with an independent Payments credential.
Public collectionhttps://api-prod.paybytoken.io/public/v1Paybytoken-hosted public Payment Link and Payment Request pages.
Consumerhttps://api-prod.paybytoken.io/consumer/v1Paybytoken-owned consumer clients with consumer session credentials.
Operatorhttps://api-prod.paybytoken.io/admin/v1Restricted Paybytoken operations; not a merchant integration surface.

Send a merchant API key from trusted server code:

Authorization: Bearer $PAYBYTOKEN_SECRET_KEY
Content-Type: application/json

Core resources

ResourcePurpose
Checkout SessionsDefine one order and one customer payment attempt.
Payments RouterOffer stablecoin, card and wallet options through one provider-neutral Payment.
Payment LinksReuse a hosted payment page with fixed or customer-entered amounts.
Payment RequestsCollect one customer receivable across retries and partial payments.
Payment IntentsTrack one payment across crypto transfer or customer-balance methods.
CustomersKeep merchant-scoped customer identity and state.
Customer depositsProvision persistent addresses and track customer balances.
Customer withdrawalsMove a customer's available crypto balance to an external address.
RefundsReturn captured funds through the payment's original method.
Paybytoken PayCreate merchant handoffs for private-beta balance payments and account links.
TokensDiscover enabled token and chain combinations.
EventsInspect payment lifecycle events.
Webhook endpointsConfigure signed asynchronous delivery.
BalancesRead merchant balances by currency and account.
PayoutsCreate and inspect merchant payouts.

Start with Authentication, then Create a Checkout Session.

On this page

API Workbench

Full Explorer

Open in new tab