Stablecoin payment API documentation

The public testnet beta uses test USDC on Base Sepolia and Ethereum Sepolia, and test USDT on TRON Nile. There is no real-money charge.

Discover assets with a test key

Issue a project test key in the dashboard. Keep ZERO_TO_ONE_PAY_API_KEY in the server environment. The API origin is https://api.0to1pay.com and the HTTP paths start with /v1.

curl --fail-with-body https://api.0to1pay.com/v1/chain/assets \
  -H "Authorization: Bearer ${ZERO_TO_ONE_PAY_API_KEY}"

From order to access pass

Register single-use merchant recipients, then create a payment and quote. The buyer signs before transferring and again when submitting the transaction hash. Verify the raw signed webhook, persist the command, then grant access in a worker. The Next.js example runs this flow on Base Sepolia.

Integration resources

Networks and connections

  • GET /v1/chain/assets · List enabled network assets · payments:read
  • POST /v1/chain/connections · Create a watch-only connection · connections:manage
  • POST /v1/connections/{connection_id}/chain-recipients · Register one-use recipient addresses · connections:manage
  • GET /v1/connections · List project connections · connections:read
  • GET /v1/connections/{connection_id} · Read connection metadata · connections:read
  • POST /v1/connections/{connection_id}/disable · Disable new collection on a connection · connections:manage

Payments and quotes

  • POST /v1/payments · Create a payment obligation · payments:write
  • GET /v1/payments · List project payments · payments:read
  • GET /v1/payments/{payment_id} · Read payment, decision and fulfillment · payments:read
  • GET /v1/payments/{payment_id}/receipt · Read confirmed funds by asset and network · payments:read
  • POST /v1/payments/{payment_id}/quotes · Reserve a recipient and freeze the payable terms · payments:write
  • GET /v1/quotes/{quote_id} · Read the frozen quote · payments:read
  • POST /v1/payments/{payment_id}/attempts · Open the assigned transfer attempt · attempts:initiate
  • GET /v1/payments/{payment_id}/attempts · List the payment attempts · payments:read
  • GET /v1/attempts/{attempt_id} · Read a payment attempt · payments:read
  • POST /v1/payments/{payment_id}/cancel · Stop new collection attempts · payments:write

Wallet approval and verification

  • POST /v1/quotes/{quote_id}/chain-intents · Create a buyer-wallet signing challenge · payments:write
  • POST /v1/quotes/{quote_id}/chain-intents/{intent_id}/authorize · Authorize a quote with the chosen wallet · payments:write
  • POST /v1/quotes/{quote_id}/chain-intents/{intent_id}/submit · Submit the signed transaction claim · payments:write
  • POST /v1/payments/{payment_id}/verify · Queue evidence verification · payments:verify
  • POST /v1/payments/{payment_id}/reviews · Record an audited payment review · payments:review
  • GET /v1/operations/{operation_id} · Read the result of an operation · operations:read

Webhooks and events

  • POST /v1/webhook-endpoints · Register a webhook endpoint · webhooks:manage
  • GET /v1/webhook-endpoints/{endpoint_id} · Read webhook endpoint metadata · webhooks:read
  • POST /v1/webhook-endpoints/{endpoint_id}/rotate-secret · Rotate a webhook signing secret · webhooks:manage
  • GET /v1/events · Replay events using an opaque cursor · events:read

Fulfillment

  • GET /v1/fulfillments/{command_id} · Read a fulfillment command and execution · fulfillment:read
  • POST /v1/fulfillments/{command_id}/claim · Claim permission to execute a command · fulfillment:execute
  • POST /v1/fulfillments/{command_id}/results · Report an execution result · fulfillment:results
  • POST /v1/fulfillments/{command_id}/retry-delivery · Redeliver the same command · fulfillment:retry

Subscriptions and usage

  • GET /v1/billing/plans · List plans, prices and available payment networks and tokens · billing:read
  • GET /v1/billing/subscription · Read subscription and request usage · billing:read
  • GET /v1/billing/invoices · List recent subscription invoices · billing:read
  • POST /v1/billing/invoices · Create a stablecoin invoice and signing challenge · billing:write
  • GET /v1/billing/invoices/{invoice_id} · Read a subscription invoice · billing:read
  • POST /v1/billing/invoices/{invoice_id}/authorize · Authorize an invoice with the payer wallet · billing:write
  • POST /v1/billing/invoices/{invoice_id}/submit · Submit the signed subscription transaction · billing:write
  • POST /v1/billing/test-keys · Issue a Sandbox server key · billing:write
  • POST /v1/billing/keys · Issue a scoped project server key · billing:write
한국어