No account, no API key, no invoice. The endpoint quotes a price and your wallet pays exactly that.
402 with a PAYMENT-REQUIRED header (base64 JSON: amount, asset, payee, network).transferWithAuthorization).X-PAYMENT header. The facilitator settles and the answer comes back.curl -i "https://minia2a.uk/x402/math?expr=2%2B2" # 402 + PAYMENT-REQUIRED
curl -i "https://minia2a.uk/x402/math?expr=2%2B2" -H "X-PAYMENT: <base64 payload>"
The @x402/fetch client does steps 2–3 for you; quickstart shows the one-liner.
Send the USDC transfer yourself and present X-Payment-Tx plus X-Payer-Signature (a signature over minia2a payment: <txHash> from the paying wallet). Useful when a treasury wallet pays on behalf of the caller.
X-Minia2a-Refund on the response says enqueued, not-applicable or failed.400 is your input being rejected before the endpoint runs — it is not retryable as-is, and the body carries retry_with.409. Start a new payment to retry.