Payclave developers
Checkout sessions
Create hosted checkout and read verified payment progress.
Access and availability
Checkout creation and retrieval accept publishable, secret, or restricted agent keys under their respective field restrictions. Payment retrieval accepts secret or restricted agent keys. Read amounts and payment status from the API before fulfillment.
Checkout sessions
Create a hosted checkout session for an order.
Body parameters
JSON body- string · decimal
amountRequired - A positive decimal amount in the selected settlement currency.
- string
externalReference - Your order or purchase identifier. Use it to match the checkout to your records.
- Currency and recipient come from the selected active merchant wallet in the key's mode. A request cannot supply an arbitrary recipient.
Path: the returned checkout id. No body. There is no checkout-session list endpoint.
Agent payments with x402
Pay an eligible checkout through its returned x402Url. No API key is required.
Payment sequence
HTTP payment challenge- Read the PAYMENT-REQUIRED response challenge at the returned x402Url.
- Validate the recipient, network, token, and amount before authorizing payment.
- Retry the original resource with PAYMENT-SIGNATURE and the original authorization.
- Live checkouts require USDC; test checkouts use Base Sepolia USDC.
- After a timeout, reuse the original authorization. Do not create a replacement authorization just to retry.