Sell a single API result without buyer signup. Bind payment to the exact data, prevent duplicate redemption, and let the buyer recover a lost reply.
An agent buys a dated freight-rate report. You confirm payment and generate the file. The connection closes before the agent receives the reply, and its next request may reach a different server. If that server sees only a consumed payment proof, it cannot tell which version to send or whether the original reply arrived.
An accountless API can charge for a single result by recording exactly what the verified payment grants. Give the purchaser a scoped way to retrieve that result if delivery fails. In the freight-rate example, the buyer should be able to recover the same dated file within the published window. Store the confirmed payment and the grant so both survive the original HTTP connection.
Write the offer around one result
Start with a read-only result you control or have permission to sell to buyers who meet the published terms. Imagine a freight-data provider selling one excerpt of its own aggregated lane rates. Each offer names a lane, reporting date, edition and response format. A corrected edition is a different artifact. The seller can quote a fixed price for any one excerpt and keep the exact version that a buyer ordered.
Publish the method, resource URL, accepted input values, result shape, and price or how to obtain it. Give the buyer an unambiguous way to identify the edition before paying. Include the required payment profile and supported client and rail, as well as the delivery and recovery windows. A machine-readable API description can carry request and response shapes. The buyer also needs to see the terms governing the data, with a stable reference to the terms that applied to the offer. Otherwise, a retry after a price or terms update can leave the parties referring to different sales.
Decide what the purchaser can do with the bytes. The freight example could permit temporary caching for the buyer's own planning and restrict reuse in a redistributed feed. Model training is a separate use to address where it matters. Those are example terms. Review your upstream contracts and distribution rights before describing any permission as part of the offer. A signed payment receipt can support a record that a buyer paid under an offer. The right to copy and reuse the report comes from the applicable terms and the seller's underlying rights.
Use a separate authorization check when results are specific to a customer, a contract grants access to named buyers, or the input could select records that the seller may not release to everyone. An agent can pay for a report and still fail that check. For the first accountless product, choose a result whose availability can be decided from the fixed offer and the verified payment. Keep unrelated query controls out of that paid handler. Apply request limits before expensive work starts. A verified payer address can help attribute usage, with limits on what it says about the person or organization behind the request.
What the signed receipt lets the server check
GOAT Flow's current Machine Payments Protocol integration is an example of a receipt presented to the seller after payment verification. In this profile the buyer sends a direct ERC-20 transfer on the eligible network. GOAT Flow Core verifies the transfer and returns its signed Payment-Receipt. The buyer presents that header to the protected resource. The receipt carries the merchant identifier, canonical request, payer address, expiry and transfer details, along with identifiers for the receipt, challenge and order.
The value has three segments containing encoded JSON, the encoded signature and the algorithm identifier. The merchant verifies the signature against the key and algorithm configured for its deployment. The guide documents Ed25519 with a public verification key or HMAC-SHA256 with a shared secret. Keep verification material under deployment control and limit access to the HMAC secret, which can also be used to sign. The resource server decides what to return after validating the signature, merchant audience, request binding and expiry. GOAT Flow signed receipt specification.
The signed request_canonical is useful only if it captures the part of the request that decides the result. The documented middleware accepts an exact canonical route match or a canonical value under an accepted prefix. A prefix can establish that the receipt belongs to the report route. Your application must still make sure that the signed scope, or a trusted purchase record tied to it, selects the exact lane, date, edition and format being served. A query parser that silently picks a default edition after a price check can turn one valid receipt into permission for a different result. Reject ambiguous inputs and resolve the same normalized selection at quote, grant and retrieval.
The receipt records a payer_addr. Reading the header and validating the issuer's signature establishes what Core signed about the transfer. It does not establish that the current HTTP caller controls the payer's wallet. Treat the presented receipt as a sensitive credential under the documented header flow. Limit where it is forwarded and keep its full value out of application logs, analytics and public caches. For buyer-bound retrieval, issue a separately scoped recovery credential or explicitly check possession of a key that has been bound to the sale.
A transaction hash can help an operator reconcile the payment. GOAT Flow's separate merchant order-proof object also contains a field named signature, which the API reference describes as a recomputable digest. Use that object as a payment record from its intended trusted context. For receipt-gated access, use the signed receipt and its documented verification rules. The current receipt also omits route_pricing_version, so any delivery policy that needs the exact quoted pricing revision has to preserve that revision with the trusted offer or purchase record.
The retry carries different evidence in x402
At the resource boundary, the typical x402 client-server exchange has a different order. The server returns payment requirements for the resource, and the buyer retries that request with a signed payment payload in PAYMENT-SIGNATURE. The server verifies the payload and settles the payment, locally or with a facilitator as appropriate. The resource response carries PAYMENT-RESPONSE with settlement details. The client can use any available transaction reference and network from that response to reconcile settlement.
In the GOAT Flow profile, the buyer uses separate JSON challenge and verify endpoints before presenting a Payment-Receipt to the resource. A client that knows how to send PAYMENT-SIGNATURE and decode PAYMENT-RESPONSE needs additional support for this flow. The GOAT wire contract also differs from the generic MPP Challenge/Credential retry exchange. This distinction applies to the current GOAT profile and its signed receipt extension. Its guide reports no published interoperability result with official MPP SDKs.
Give a prospective buyer the actual resource URL, protocol or profile it speaks and eligible payment rail. For x402, match the client and any facilitator to the advertised scheme, network and asset. For GOAT Flow, confirm that the target merchant and deployment enable the paid route for the chain and token pair. A manifest-driven buyer needs a trusted merchant discovery URL and an enabled MPP rail listing that route. A standalone buyer needs the deployment's configured Core origin. Those checks determine whether the client can acquire a valid receipt before calling the merchant's resource.
In x402, a timeout after sending PAYMENT-SIGNATURE can leave both settlement and work unresolved. The payment-identifier extension, when supported, can help the seller correlate the request. Its deduplication behavior depends on request binding, storage and lifetime. The client needs the seller's or facilitator's available reconciliation process when the response lacks a transaction reference. The transport provides no universal status endpoint. x402 timeout and retry guidance.
In the GOAT profile, a receipt from Core confirms payment. The agent may still be waiting for the merchant's result. A lost verification response calls for reconciliation using the original challenge and transfer context. In both profiles, the data seller owns result retrieval.
Record one right to one artifact
Model the redemption as a durable grant. It should point to a canonical purchase request and the exact report promised for that request. Record the verified payment identity, offer revision, relevant terms, entitlement and result reference. Keep the payment data needed for reconciliation and revenue records in a restricted store. Put enough data in the purchase record to interpret the grant even if the offer later changes.
Establish the binding before the buyer pays. The seller's quote record should associate the logical purchase with the exact resource selection and expected terms. An October edition quoted before a correction should retain its original edition identifier when redeemed after the correction. If the profile binds payment at the route level, require a trusted association between the verified payment and that quote before opening the grant. Check the fields available in the chosen profile. The GOAT receipt, for example, includes the canonical request, amount, asset, network and recipient. Limit the offer to results that the signed scope or trusted purchase record can identify unambiguously.
For a single-use GOAT receipt, the guide describes checking receipt_id when a store is configured. With multiple resource servers, use shared atomic consumption. A per-process memory store sees only the requests arriving at that process. Without a configured store, receipt verification alone does not enforce single use. Choose one place to reserve the purchase, so concurrent requests for the same receipt and merchant can open only one grant. Use the verified identifiers appropriate to the selected profile. Use buyer-supplied correlation values for lookup and verify payment through the payment profile. In a GOAT receipt, the chain, transaction hash and log index together identify the transfer event.
The durable reservation needs to cover the gap between admitting a request and finishing the report. If middleware consumes the receipt before the application records the grant, a crash between those operations can leave a paid buyer with no result and no way to retry. Coordinate receipt consumption and entitlement creation in one atomic operation where your design allows it. Another option is to make the durable entitlement record the authoritative redemption ledger behind a verified receipt. Either design must enforce uniqueness before the handler starts fulfillment. An unconfigured replay store by itself gives you no such guarantee.
Once the seller reserves the grant, retries can look up the existing purchase under the seller's recovery policy. A separate worker can finish a pending artifact. Protect that work from duplication with a durable work record or an idempotent write to the purchase's assigned result. Mark the record ready only once the artifact is available under its exact immutable reference. The report can be physically stored elsewhere. The application must be able to distinguish an unfinished artifact from a ready one that lost its HTTP reply.
Fail closed when the service cannot check the ledger or verify access. GOAT Flow's documented middleware returns 503 if its configured receipt-ID store is unavailable. Any accountless recovery handler needs its own behavior when it cannot validate a grant or cannot safely read the artifact. If the buyer receives an error after paying, the existing purchase remains the operator's starting point. A fresh checkout or transfer would add a second payment to the incident before the service has resolved the first.
Recover a lost reply without reopening the sale
Give the buyer a way to prove recovery authority before any reply carrying the result can disappear. For example, generate a high-entropy retrieval secret when issuing the offer and deliver it securely to the buyer before payment. Keep a verifier for that secret and bind it to the logical purchase. The secret can grant short-lived access to one immutable result. A seller that needs stronger buyer binding can use proof of possession of a key registered with the purchase. Both designs can work without an account for every agent.
When the seller adopts this buyer binding, enforce it at initial redemption too. The request that opens the grant should demonstrate authority over that purchase and present verified payment tied to it. Checking this before consumption keeps a leaked receipt from using up the legitimate buyer's one redemption. Enable recovery only after the corresponding grant exists. Expire unused quotes and their secrets according to a separate deadline so the seller can still honor active grants.
Authenticate each recovery attempt before revealing the state or returning the artifact. Give the buyer a reference it can share with support and keep the retrieval secret separate. If the seller exposes a download URL, keep it scoped and short-lived, and prevent shared caching of private responses. Keep the storage object private and restrict each authorized download to the grant's artifact.
What the seller can establish | Response to an authorized follow-up |
|---|---|
Payment status is unknown | Reconcile the original attempt. Keep the operation unresolved while evidence is incomplete. |
Payment is confirmed and the artifact is pending | Return the existing operation state. Finish or resume that work under the original grant. |
Payment is confirmed and the exact artifact is ready | Return that retained result under the recovery permission, without creating a new grant. |
Payment is confirmed but the result is unavailable | Apply the published delivery or support policy. Preserve the evidence of payment and the original deliverable. |
These distinctions also tell the buyer when to stop retrying. A timeout might occur before anything was submitted, after the payment was submitted, or after the service finished. Persist the original logical purchase and relevant payment evidence on the buyer side. If the payment remains uncertain, keep the request unresolved and route it to the seller's reconciliation process. If payment is confirmed, seek the original result. Before submitting a new authorization after a conclusive failure, check the current terms and whether the operation itself can safely be attempted again.
Keep the recovery credential lifetime separate from the lifetime of the payment proof. Initial redemption must meet the payment profile's expiry rules. A grant created during that window can have its own published retrieval deadline and require its own proof of authority. When a receipt or retrieval secret is unavailable, the seller needs suitable alternative evidence to help. An already-bound key may be sufficient under its policy. A public hash, a payment amount, or knowledge of the report being purchased is insufficient. For a service that does not retain any other buyer binding, losing the recovery credential can mean losing automated recovery.
Choose the promise your service can keep
Decide how long you can keep the artifact and the evidence tying it to the grant. A longer window makes it easier for agents to recover delayed work and for sellers to reconcile disputes. It also means keeping more paid data and credential-related records under access control. License limits, privacy requirements or storage costs can constrain what you retain. Publish when access ends and what happens when the original artifact can no longer be delivered. Rebuilding a report from updated data may produce a different result from the one the buyer agreed to purchase.
Give support a record it can use when the application knows payment was confirmed but cannot retrieve the file. For the freight report, the purchase record should show the promised edition, whether generation finished, and when retrieval expires. An operator can check whether that edition can be restored under the existing grant. A replacement edition needs to follow the published policy for substitutions. Record the resolution on the original purchase so a buyer retry after a manual resolution sees the current status.
Before launch, check the design with two requests against the same purchase, an interrupted reply, a wrong report selection and the recovery ledger unavailable. The acceptance criteria follow from the offer. The seller must be able to account for one payment and one grant, return the same version to an authorized buyer during the retrieval window, and decline a request for another artifact. Offer this delivery policy only for results the service can identify and retain as described.
FAQ
Does a per-request payment let an agent redistribute the data?
Redistribution depends on the seller's published terms and the rights available for that data. State the rules for caching, redistribution and reuse separately from the price. Make them available before the agent pays.
Can an accountless API still enforce rate limits?
Yes. You can rate-limit by source or use a verified payer address as one signal after payment. Set limits on expensive requests and recovery lookups. Treat wallet addresses as payment identifiers, with a separate authorization check for identity-restricted data.
What happens when a paid result cannot be recovered?
Follow the seller's published delivery and support policy. Returning a retained copy is a delivery operation. A refund or replacement is a separate decision that depends on the payment rail and the seller's terms.
What should an agent do if neither the report nor settlement confirmation arrives?
Retain the original purchase reference and any transaction or payment identifier. Check the seller's published reconciliation path before approving another payment. Treat a lost reply or an expired local timer as an unresolved outcome until there is evidence of final settlement or failure.



