{"uid":"cap_iBkysx6hRfYRV06WrN--R","slug":"autonomous-stack-payment-reconciliation-0715cd65","name":"Autonomous Stack Payment Reconciliation","description":"Turnkey autonomous agent starter. Docs + runnable meta-agent, BYO-LLM, one-shot Debian install. No AI. No cloud. Just files.","url":"https://theautonomousstack.xyz/api/v1/tools/payment-reconciliation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["invoices","payments","service_calls"],"properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"network":{"type":"string"},"amount_due":{"type":"number","description":"Positive amount expected."},"invoice_id":{"type":"string","description":"Unique invoice reference."}}},"maxItems":50,"minItems":1,"description":"Invoices that must be reconciled."},"payments":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"amount":{"type":"number"},"network":{"type":"string"},"tx_hash":{"type":"string"},"invoice_id":{"type":"string","description":"Invoice reference."},"payment_id":{"type":"string"}}},"maxItems":200,"description":"Payment receipts to match against invoice references."},"service_calls":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","description":"Fulfillment state, for example delivered."},"call_id":{"type":"string"},"invoice_id":{"type":"string"}}},"maxItems":200,"description":"Service fulfillment records linked to invoices."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"mode":"deterministic","entries":[{"status":"unpaid","amount_due":1.1,"invoice_id":"inv-001","amount_paid":0,"escalation_required":false}],"service":"payment-reconciliation","summary":{"unpaid":1,"invoices_total":1},"orphan_payments":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2Sqo_GLcg81-51OqSxADK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Matches payment receipts and service fulfillment records against invoices to determine paid, unpaid, and orphaned payment statuses deterministically","exampleAgentPrompt":"Can you reconcile these 3 invoices against our payment receipts and service delivery records — I need to know which invoices are unpaid, which payments are orphaned, and whether any need escalation? Here are the invoice IDs: inv-001 for 1.1 USDC on base, and the corresponding payment tx hashes and fulfillment statuses.","exampleUseCases":[{"title":"Monthly crypto invoice audit","prompt":"I have 20 invoices from last month and a list of on-chain USDC payments — can you reconcile them and tell me which invoices are still unpaid and which payments didn't match anything?"},{"title":"Detect orphaned payments","prompt":"We received several payments this week that don't seem tied to any invoice — can you run reconciliation on our full payment list and invoice set and flag any orphaned payments for me?"},{"title":"Agent service billing verification","prompt":"Our autonomous agent fleet processed 50 service calls this week — can you match each service fulfillment record to its invoice and tell me which ones are paid, which are unpaid, and if any need escalation?"}],"resultDescription":"Returns a deterministic reconciliation result with per-invoice entries showing status (e.g. paid/unpaid), amount_due, amount_paid, and escalation_required flag; plus a list of orphan_payments not matched to any invoice; and a summary with total invoice count and unpaid count.","failureModes":["Invoice list empty or exceeds 50 items — validation error","Payments array exceeds 200 items — validation error","invoice_id mismatch between invoices and payments arrays — items treated as orphans","Missing required fields in invoice or payment objects — schema validation failure","No matching payments found — all invoices returned as unpaid","Network or asset mismatch causes incorrect grouping"],"whenToPreferThis":"Use this endpoint when you need deterministic, rule-based matching of crypto payment receipts to invoices without relying on an AI model — it is self-hosted with no cloud dependency, suitable for agent workflows that require auditable, reproducible reconciliation results and need to operate without external AI services.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:34:35.898Z","isFirstParty":false,"canonicalSlug":"autonomous-stack-payment-reconciliation-0715cd65"}