v1

latestOpenAPI 3.1.02026-07-13570316.1 KB
x402

Get payment accepts

Transform payment configuration into x402 payment requirements. This endpoint converts high-level payment parameters (like USD amounts or ERC20 token specifications) into the standardized x402 payment requirements format used by x402-compatible middleware.

post/v1/payments/x402/accepts

Request body

resourceUrlstring uri required

The URL of the resource being protected by the payment

serverWalletAddressstring

Your server wallet address, defaults to the project server wallet address

recipientAddressstring

Optional recipient address to receive the payment if different from your facilitator server wallet address

extraMetadataobject

Optional extra data to be passed to in the payment requirements.

Example request

{
  "network": "eip155:1"
}

Response

Returns x402 payment requirements

x402Versionnumber required
errorstring

Example response

{
  "accepts": [
    {
      "network": "eip155:1"
    }
  ]
}