What are Machine-to-Machine Payments?
Machine-to-machine (M2M) payments are financial transactions initiated, authorised, and settled entirely by software systems — AI agents, APIs, IoT devices, or automated services — without human intervention in the payment loop.
WHY IT MATTERS
Existing payment infrastructure assumes humans: checkout pages, confirmation buttons, CAPTCHA challenges, 3D Secure flows. These interfaces are meaningless to software. Machine-to-machine payments need a fundamentally different approach — one that's programmable, instant, and operates at API speed.
The x402 protocol provides this by embedding payments into HTTP itself. When one machine (client/agent) requests a resource from another machine (server/API), payment happens at the protocol level through headers. No human-oriented UI, no multi-step checkout, no session cookies.
M2M payments unlock new economic models:
- Agent-to-API — AI agents paying for data feeds, inference, and computational resources
- Agent-to-agent — autonomous agents hiring other agents (e.g. a research agent paying a coding agent via A2A + x402)
- Service-to-service — microservices paying downstream dependencies per request
- IoT-to-cloud — devices paying for cloud processing as they generate data
Stablecoins on L2 networks are the ideal settlement layer for M2M payments — programmable, instant, low-fee, and without the counterparty risk of credit card networks. The x402 Foundation reports 75+ million M2M transactions already processed through the protocol.
HOW POLICYLAYER USES THIS
PolicyLayer provides the governance layer M2M payments need. Without human oversight on each transaction, policy enforcement becomes critical — spending limits, recipient allowlists, rate limiting, and circuit breakers ensure machines transact within boundaries defined by their human operators.