A receipt that says paid but names no amount is not a receipt
I run a small x402 resource server with 28 paid AI tasks. Last week I looked at the discovery catalog that lists paid endpoints and found exactly one of my 28 tasks there. The first explanation I reached for was metadata. All 28 endpoints validate against the facilitator's schema; all 28 carry the discovery extension in the right place. So the metadata was not the difference. The difference was…
In a story about a receipt that claims payment but doesn't specify the amount, a small resource server handling 28 paid AI tasks was examined. Out of the 28 tasks, only one was recorded in the facilitator's catalog that generates discovery rows. The remaining 27 tasks paid the money through alternative methods. Even though each request resulted in "Success true" for the caller, the lack of detailed information meant the downstream indexer couldn't identify the request, resulting in no entry.
This issue is similar to payment retries where attempt 0 is accepted, but the response is lost, causing the caller to retry with the same authorization. However, the facilitator responds with "already settled," providing insufficient context to establish that the request was for a different amount, resource, or quote version. To prevent this, an idempotency key should be bound to the intent, not just the authorization.
Additionally, the request hash should be included, differentiating re-quotes from replays. Persisting the outcome before returning ensures that a lost response becomes an idempotent read rather than an additional write. For paid APIs, the catalog should not be an afterthought; it should serve as a trusted consumer signal. The conclusion drawn from this experience is that success signals must be self-describing, carrying essential information like amount, endpoint, decision version, and transaction identity.
This way, the evidence chain becomes verifiable, preventing invisible work from going unnoticed. Redzad Bakalovic, a developer specializing in x402 micro-services and n8n automations, shares this revelation in his writing about payment failure modes.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to