{"uid":"cap_3jO4pOE7QJPXHjVVamt4g","slug":"statement-reconciliation-2b458e45","name":"Statement Reconciliation","description":"Match bank statement lines against ledger lines. References are matched before amounts, because a reference is an identity and an amount is not: matching on amount first pairs two unrelated lines that happen to agree and reports the real pair as unmatched. A reference match with a disagreeing amount or date is reported with the exact difference rather than discarded. With both balances supplied, the statement is also checked for agreeing with itself.","url":"https://api.zfinia.com/x402/v1/bank-statement-reconciliation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ledger":{"type":"array","items":{"type":"object","required":["date","amount"],"properties":{"date":{"type":"string","maxLength":32},"amount":{"type":["string","number"]},"reference":{"type":"string","maxLength":128},"description":{"type":"string","maxLength":512}},"additionalProperties":false},"maxItems":20000,"minItems":1},"statement":{"type":"array","items":{"type":"object","required":["date","amount"],"properties":{"date":{"type":"string","maxLength":32},"amount":{"type":["string","number"]},"reference":{"type":"string","maxLength":128},"description":{"type":"string","maxLength":512}},"additionalProperties":false},"maxItems":20000,"minItems":1},"closing_balance":{"type":["string","number"]},"opening_balance":{"type":["string","number"]},"date_tolerance_days":{"type":"integer","maximum":365,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.24","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":"$0.24/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.24","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.24","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FjqD5ewjh5q5k-3JdKeXt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.24","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Match bank statement lines against ledger lines by reference first, then amount, reporting exact differences for mismatches and validating balance consistency.","exampleAgentPrompt":"Reconcile these two sets of transactions for me — here's the bank statement and here's the ledger, with an opening balance of $12,450.00 and a closing balance of $15,320.75; allow up to 2 days of date tolerance and tell me which lines don't match and what the exact differences are.","exampleUseCases":[{"title":"Month-end bank reconciliation","prompt":"It's month-end and I need to reconcile our bank statement against the general ledger. The opening balance was $50,000 and the closing was $47,320.10. Here are both sets of lines — can you match them up, flag anything that doesn't pair, and tell me the exact difference wherever a reference matches but the amount doesn't?"},{"title":"Detecting duplicate or misposted payments","prompt":"I think some payments in our ledger were posted twice or to the wrong amount. Can you match this bank statement against our ledger entries and show me every case where a reference matched but the amount or date is off, along with the exact difference?"},{"title":"Automated daily transaction matching","prompt":"Run a daily reconciliation for me: here are today's bank statement lines and today's ledger entries — match them by reference first, then flag anything unmatched or where amounts disagree, and report the precise differences."}],"resultDescription":"The endpoint returns matched pairs of statement and ledger lines (matched by reference first, then amount), unmatched lines from either side, and for reference-matched pairs with disagreeing amounts or dates, the exact numerical and date differences. If opening and closing balances are provided, it also checks whether the statement internally agrees with those balances.","failureModes":["Missing required 'date' or 'amount' fields on any line — request rejected with validation error","Ledger or statement arrays empty or exceeding 20,000 items — rejected","Invalid date format causing parse failure","Amount values that cannot be interpreted as numbers — parse error","Payment failure or insufficient USDC balance — 402 response with no reconciliation performed"],"whenToPreferThis":"Choose this endpoint when you need reference-priority reconciliation logic that correctly pairs transactions by identity before falling back to amount matching, and when you need exact difference reporting for partial matches rather than binary matched/unmatched outcomes. It also validates internal statement balance consistency when opening and closing balances are supplied — making it suitable for both transaction-level matching and statement-level auditing in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:43:00.575Z","isFirstParty":false,"canonicalSlug":"statement-reconciliation-2b458e45"}