Payclave developers
Paid API requests
Prepare, claim and record paid server actions with enabled merchant access.
Access and availability
Both endpoints require merchant enablement and a secret key. Use the published @payclave/x402 Fetch/Next.js middleware and @payclave/sdk-server paid-request helpers. Claim the verified request before running the handler.
Paid request lifecycle
Prepare a paid request, claim its verified payment, or record the business outcome. Requires paid request access and a secret key.
Request identity
JSON body · Secret key- string
requestKeyRequired - Server-owned request identity: 64 lowercase hexadecimal characters.
- string
digestRequired - Server-owned request digest: 64 lowercase hexadecimal characters.
- string
routeIdRequired - Identifier of the server-owned paid route.
- string
methodRequired - HTTP method of the paid route.
GETPOSTPUTPATCHDELETE - string · decimal
amountRequired - A positive USDC amount with at most six decimal places.
- string
walletIdRequired - The merchant settlement wallet.
- integer
chainIdRequired - Live: Base or Arc USDC. Test: Base Sepolia USDC.
- string
actionRequired - The stage to perform.
prepareclaimfinish
- Keep the request identity and payment configuration unchanged on retries.