PayclaveDocs

Payclave developers

Public checkout

Read customer-safe records and start recovery checkout or x402 payment.

Access and availability
These endpoints use the unguessable public token or publicId from the hosted URL and do not require an API key. Prefer sending customers to the hosted URL. Public responses exclude merchant-only configuration.

Invoice checkout

GET

GET /v1/public/invoices/:publicToken

Path: public invoice token, not an internal invoice id.

GET

GET /v1/public/invoices/:publicToken/x402

No API key. Negotiate the server-owned remaining amount, then retry with PAYMENT-SIGNATURE and the challenge resource. Live payments require USDC; test payments use Base Sepolia USDC.

POST

POST /v1/public/invoices/:publicToken/checkout-sessions

No body required. Required Idempotency-Key (1-255 visible ASCII characters). The server chooses the remaining collectible amount.

GET

Path: publicId, not the authenticated link id.

POST

POST /v1/public/payment-links/:publicId/checkout

Required: Idempotency-Key and JSON version. Supply amount only for customer_entered links. Supply email, name and customerReference when the corresponding collect fields require them. Unknown fields are rejected.

On this page