{
  "id": 23694688,
  "title": "We built a free x402 bill-reader — the open internet's headers humbled us in 24h",
  "url": "https://urgent.news/2026/12/05/we-built-a-free-x402-bill-reader-the-open-internets-headers-humbled",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-05T20:30:30.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/paydlux/we-built-a-free-x402-bill-reader-the-open-internets-headers-humbled-us-in-24h-1394"
  },
  "original_language": null,
  "account": "In a single day, a free tool called paydlux.com/check exposed three critical bugs in real-world x402 payment endpoints. x402 is an emerging standard where servers answer 402 Payment Required and list the price in response headers. Our tool, which checks endpoints for free, revealed that many servers were sending unreadable or misleading payment information.\n\nThe first bug involved the header that lies: the parser kept the first payment-related header it encountered, which was actually a version marker, not the payment details. The fix was to test all candidate headers and take the first one that parsed correctly. The second bug revealed that the amount was encoded in base64, not as raw JSON, and the third bug showed a discrepancy in the amount due, with the endpoint charging $0.003 instead of $3000.\n\nThese bugs underscore the importance of thorough testing with real-world data rather than relying solely on fixtures. The tool now shows UNREADABLE when it cannot parse the bill, providing a more accurate indication of the situation. The source code for the paydlux.com/check tool is available on GitHub under the MIT license, and the community is encouraged to contribute to improving the parser and the live assertion.",
  "summary": "AI agents are starting to buy things from APIs on their own. The standard they use is x402: the server answers 402 Payment Required and puts its price in a response header, like a bill slipped under the door. No account, no card — the payment itself is what opens the door. We built a free tool so buyers can see that bill before anyone pays: paste an endpoint's address at paydlux.com/check and we…",
  "summary_source": "publisher",
  "key_points": [
    "Free tool paydlux.com/check exposed three critical bugs in x402 payment endpoints within 24 hours",
    "First bug involved parser keeping first payment-related header, which was actually a version marker"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}