Reference
API reference
JSON over HTTP. Amounts are integer strings in token base units.
Merchant endpoints
- POST /v1/checkouts
- {orderId, amount, title?, description?, expiresIn?}; create or reuse an order. Metadata and price are immutable.
- GET /v1/merchant/orders
- Up to 100 recent orders for this merchant.
- GET /v1/merchant/deliveries
- Up to 100 recent notifications for this merchant.
- POST /v1/merchant/deliveries/:id/retry
- {}; requeue a notification.
- POST /v1/merchant/orders/:id/fulfillment
- {state: "fulfilled" | "unavailable"}.
- POST /v1/merchant/orders/:id/refunds
- {refundId, amount}; receive refund ID and typed authorization.
- POST /v1/merchant/refunds/:id/submit
- {signature}; receive job ID and status.
Account and integration endpoints
Use the registration page to create an account. Settings and credential routes require the merchant wallet session; an API key alone cannot rotate credentials.
- POST /v1/registration/challenge
- {address, businessName}; request an account registration message.
- POST /v1/registration/verify
- {id, signature}; create the account and return one-time credentials.
- GET /v1/merchant/settings
- Read profile and connection status; no secrets returned.
- POST /v1/merchant/settings
- {businessName, webhookUrl}; save settings and reset verification.
- POST /v1/merchant/webhook/check
- {}; send a signed integration.check event. Limited to once per 30 seconds.
- POST /v1/merchant/credentials/rotate
- {credential: "apiKey" | "webhookSecret"}; replace and reveal a new credential once.
Buyer endpoints
- GET /v1/config
- Chain, token, router and relay availability.
- GET /v1/checkouts/:id
- Public receipt accessed with its checkout UUID.
- POST /v1/checkouts/:id/authorization
- {payer}; receive EIP-712 typed authorization.
- POST /v1/checkouts/:id/pay
- {payer, signature}; queue payment.
Wallet sessions
- POST /v1/session/challenge
- {address}; receive id, message and expiresAt.
- POST /v1/session/verify
- {id, signature}; set a merchant session cookie.
- GET /v1/session
- Read the current merchant session.
- POST /v1/session/logout
- {}; revoke the session and expire the cookie.
Error format
Validation errors return INVALID_INPUT. Requests are limited to 120 per minute per IP in each API process; a 429 response includes Retry-After. Limits are not shared across processes.
JSON
{
"error": {
"code": "INVALID_INPUT"
}
}