PayclaveDocs

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.

POST

POST /v1/paid-requests

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
requestKeyRequired
string
Server-owned request identity: 64 lowercase hexadecimal characters.
digestRequired
string
Server-owned request digest: 64 lowercase hexadecimal characters.
routeIdRequired
string
Identifier of the server-owned paid route.
methodRequired
string
HTTP method of the paid route.
GETPOSTPUTPATCHDELETE
amountRequired
string · decimal
A positive USDC amount with at most six decimal places.
walletIdRequired
string
The merchant settlement wallet.
chainIdRequired
integer
Live: Base or Arc USDC. Test: Base Sepolia USDC.
actionRequired
string
The stage to perform.
prepareclaimfinish
  • Keep the request identity and payment configuration unchanged on retries.

Request state and recovery

GET

GET /v1/paid-requests/:id

Secret key scoped to the original merchant and mode; returned pr_ record id. No body.

On this page