Learn how to design a monetization gateway with x402: rules, verification, protected origin, variable pricing and reconciliation.
HTTP already has the `402 Payment Required` status, but historically it did not define on its own how a server communicates price, network, asset, recipient or authorization.
A rule can combine domain, path, HTTP method, audience, headers, parameters and caller attributes.
In the `exact` scheme, the authorized amount must match the required price.
Verifying payment at the edge reduces work at the origin, but it does not authorize bypassing the origin.