HY4 Verification Services / Guides

Decode an x402 payment-required header

An HTTP 402 response is a machine-readable invoice, not a payment. Read it before paying, the same way you would read an invoice amount and payee.

Get the header

curl -sS -D - -o /dev/null 'https://HOST/PATH' | grep -i payment-required

The value is usually a base64-encoded JSON object. Decode it locally; never paste a private key, seed phrase or signature into a decoder.

Fields that matter

Then verify the result

Paying produces a public receipt; use the receipt guide to check it independently. A quote is supply. Only an external, confirmed receipt is payment.

Free local tools: quote decoder and quote builder. Full machine catalog: llms.txt.

Published with deed.pageReport abuse