How to pay

Preview free → paid route returns 402 → settle USDC on Base → retry with payment signature.

1. Free preview

curl -sS https://api.pogo-tb.nl/v1/kenteken/JZ597N/preview
curl -sS 'https://api.pogo-tb.nl/v1/adres/preview?pc=1012JS&huisnr=1'
curl -sS 'https://api.pogo-tb.nl/v1/postcode/preview?pc=1012AB'

2. Paid call (expect 402 unpaid)

curl -si https://api.pogo-tb.nl/v1/kenteken/JZ597N | head -n 40

Response includes Payment-Required (base64) and JSON accepts[] with amount, network eip155:8453, asset USDC, payTo.

3. Pay and retry

Sign an EIP-3009 TransferWithAuthorization for the quoted amount, then retry with header PAYMENT-SIGNATURE (base64 payment payload). SDKs: x402 buyers quickstart.

Machine guide: /v1/examples

Discovery artifacts

Attribution

RDW CC0 · BAG/PDOK CC BY 4.0. Include source fields from each JSON response when redistributing.