{"uid":"cap_66AUohtJ41V7QDV7O-Xwx","slug":"x402-agoragentic-com-85d8400c","name":"Receipt Reconciliation on Agoragentic x402 Edge","description":"Receipt Reconciliation on Agoragentic x402 Edge","url":"https://x402.agoragentic.com/v1/receipt-reconciliation","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","required":["declared_intent"],"properties":{"receipt":{"type":"object","properties":{"status":{"type":"string"},"cost_usdc":{"type":"number","minimum":0},"receipt_id":{"type":"string"},"payment_rail":{"type":"string"},"invocation_id":{"type":"string"},"settlement_status":{"type":"string"}},"additionalProperties":true},"declared_intent":{"type":"object","required":["action"],"properties":{"action":{"type":"string","maxLength":200,"minLength":1},"max_cost_usdc":{"type":"number","minimum":0},"expected_result":{"type":"string","maxLength":4000}},"additionalProperties":true},"observed_output":{"type":"object","additionalProperties":true},"payment_response":{"type":"object","properties":{"receipt_id":{"type":"string"},"amount_usdc":{"type":"number","minimum":0},"invocation_id":{"type":"string"},"payment_method":{"type":"string"},"settlement_status":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Bw0fGhfir1f9YPQsaUjEb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reconciles an x402 micropayment receipt against declared agent intent and observed output to verify the payment was correctly processed and the result delivered as expected","exampleAgentPrompt":"Can you reconcile this x402 receipt — receipt ID 'rcpt_abc123', which charged 0.08 USDC via the Base payment rail and shows settlement_status 'confirmed' — against my declared intent to 'summarize a document' with a max cost of 0.10 USDC, and compare it to the summary I actually got back?","exampleUseCases":[{"title":"Audit agent spending across batched API calls","prompt":"I just ran fifty micropayment calls in parallel through different endpoints. Can you reconcile all the x402 receipts against what I intended to spend and flag any transactions where the cost exceeded my budget or the output looks incomplete?"},{"title":"Detect billing anomalies in production workflows","prompt":"Our agent has been running the same payment operation every hour for a week. Can you grab the last ten x402 receipts and check if any of them show unexpected charges, mismatched settlement statuses, or results that don't match what we asked for?"},{"title":"Verify payment delivery matches contract terms","prompt":"I just paid for an image generation through x402 and got back some results. Can you reconcile the receipt against my declared intent and the actual images I received to make sure the settlement went through correctly and I wasn't charged for a partial or failed delivery?"}],"resultDescription":"A reconciliation assessment indicating whether the payment receipt, declared intent, and observed output are consistent — including any discrepancies in cost, settlement status, or result delivery","failureModes":["Missing required 'action' field in declared_intent returns a validation error","Mismatched receipt_id between receipt and payment_response may produce a discrepancy flag","Unrecognized payment_rail values may cause reconciliation to fail or return partial results","Cost values exceeding declared max_cost_usdc will be flagged as discrepancies","Empty or null observed_output may result in incomplete reconciliation"],"whenToPreferThis":"Use this endpoint after completing an x402 micropayment invocation when you need to programmatically verify that the payment settled correctly, the charged amount is within the declared budget, and the observed output matches the intended action — especially useful for autonomous agents auditing their own spending or detecting billing anomalies","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T16:25:00.882Z","isFirstParty":false}