Rogerio Melfi
« Back
24/03/2026 · Articles

402: Payment Required

402: Payment Required

The internet was born to transport information. Text, images, video, messages. It has always been extraordinary at moving data from one point on the planet to another in fractions of a second. But there is something it never knew how to do natively: move money. The digital commerce we know was attached afterward, like a sophisticated workaround. Pages, checkout buttons, gateways, card networks, external clearing. Value always circulated “outside” the network’s architecture.

A small historical trace reveals a legacy: HTTP status code 402, “Payment Required.” It was defined in the web’s early days, when someone imagined a future in which the internet itself could charge for access to a resource. The code remained; time passed. For decades, 402 was a technical ghost, a placeholder for an economic model that never materialized within the protocol.

What no one predicted was that the trigger finally giving this code meaning would not be human behavior, but the emergence of artificial intelligence agents capable of acting as economic participants. The transition we are experiencing is not merely from the web to AI, but from the internet of information to infrastructure where software discovers, negotiates and pays for goods, services, data and computing capacity without a human in the middle of every step.

The current payments model was designed for people. For someone looking at a screen, comparing prices, entering data, waiting for pages to load and reviewing a shopping cart. This world makes increasingly little sense when decisions are made by an algorithm operating in milliseconds. The conversion funnel loses meaning when there is no page. Cart abandonment stops being a problem when there is no emotion, distraction or fatigue. In its place emerges a new field of optimization: no longer SEO, but AEO, Agent Engine Optimization. Markets begin organizing themselves to be understood and prioritized by automated decision-making systems.

But before any payment, there is an even deeper problem: trust. The initial question is not “How does this agent pay?” but “Should I believe this agent is legitimate?” The internet already suffers from malicious bots. Now imagine bots with financial capabilities, operating at machine speed. This is why an identity and reputation layer for agents is beginning to emerge. Initiatives recording identities and behavioral histories in verifiable infrastructures, along with signature and authentication mechanisms distinguishing trustworthy agents from hostile software, are building something the original web never had: a notion of economic identity for code.

In parallel, commerce is being redesigned. We are witnessing the birth of protocols attempting to standardize how agents discover suppliers, understand what can be bought, assemble a purchase intent and execute payment. On one side, more open, orchestration-oriented approaches emerge, in which companies publish their capabilities to be “read” by agents. On the other, more transactional and prescriptive models structure the cart, encapsulate payment intent and integrate directly with financial service providers. This contest is not merely technical. It defines who controls the gateway to commerce in the AI age.

Card networks, far from remaining on the sidelines, are translating decades of experience in consumer protection, fraud prevention and reversals into the world of agents. The logic is simple: even if software makes the purchase, security, dispute and liability mechanisms cannot disappear. The challenge is encapsulating these guarantees in tokens and flows that make sense for automated systems, preserving rights in an environment where decisions occur without a human interface.

Despite the media’s retail focus, the greatest financial impact is likely to occur in B2B and direct interactions between agents. Companies already operate with high-value payments, complex approval flows and audit requirements. When agents begin negotiating contracts, procuring services, consuming APIs and settling obligations with one another, traditional rails coexist with new programmable alternatives such as stablecoins, offering fast settlement and embedded logic. Here, an error signaling “payment required” stops being a metaphor and becomes a mechanism: a system encounters a blocked resource, receives a cost indication and automatically triggers a machine-to-machine transaction.

What is forming is a new economic stack over the internet. Layers of agent-to-agent communication, trust and identity layers, mandate layers allowing humans to delegate financial authority to software, negotiation and transaction layers, authentication and fraud prevention mechanisms, and finally settlement rails themselves. It is a financial equivalent of what TCP/IP was for data. The difference is that what circulates now is not merely information, but value.

For the financial sector, this is not a technological curiosity. It is structural reconfiguration. Banks, fintechs and payment networks begin operating in a world where customers are not only people and companies, but also software agents with identity, reputation and decision-making capabilities. Merchants need to be “discovered” by algorithms, not only consumers. Regulators enter territory where transactions can occur at scales and speeds that challenge traditional supervisory models.

The old HTTP 402 remained for decades an unfulfilled promise of an internet that could charge. It now reappears as a symbol of something much larger: the network’s transformation into native economic infrastructure. We are not merely automating payments. We are creating nonhuman economic actors and designing the rules for their coexistence. And the standards being defined now may become as fundamental as the protocols that once made the internet itself possible.

📌 Originally published in Época Negócios