{"description":"Synthetic cash-application examples. Not customer data, an accounting policy, or a production matching engine.","version":"2026-10-23","scope":{"customer":"DEMO-CUSTOMER","entity":"DEMO-ENTITY","currency":"USD","independentSnapshots":true,"amountUnit":"integer cents","excluded":["discounts","credits","fees","write-offs","tax adjustments","foreign exchange","partial-invoice subset search"]},"openInvoices":[{"id":"A101","balanceCents":120000},{"id":"A102","balanceCents":120000},{"id":"A103","balanceCents":70000},{"id":"A104","balanceCents":50000},{"id":"A105","balanceCents":80000},{"id":"A106","balanceCents":40000}],"cases":[{"id":"amount-only","receiptCents":120000,"references":[],"expectedFullBalanceSets":[["A101"],["A102"],["A103","A104"],["A105","A106"]],"decision":"Obtain allocation evidence or use a separately authorized allocation policy; the amount does not select one set."},{"id":"explicit-bundle","receiptCents":120000,"references":["A103","A104"],"allocationCents":{"A103":70000,"A104":50000},"expectedInvoiceBalancesCents":{"A101":120000,"A102":120000,"A103":0,"A104":0,"A105":80000,"A106":40000},"expectedUnallocatedReceiptCents":0,"decision":"A consistent proposal; posting still requires verified identity, live balances, authorization and integration controls."},{"id":"closed-reference","receiptCents":120000,"references":["A102"],"closedInvoices":["A102"],"expectedFullBalanceSetsIgnoringReference":[["A101"],["A103","A104"],["A105","A106"]],"decision":"Stop this reference-led automatic path. Do not silently fall back to another amount-compatible invoice."},{"id":"inconsistent-bundle","receiptCents":120000,"references":["A103","A105"],"allocationCents":{"A103":70000,"A105":80000},"expectedAllocationExceedsReceiptCents":30000,"decision":"Request corrected allocation; the stated 1500 allocation is not funded by the 1200 receipt."}],"singleInvoiceResidualCases":[{"invoiceCents":120000,"receiptCents":118000,"applyCents":118000,"expectedInvoiceOpenCents":2000,"expectedReceiptUnallocatedCents":0},{"invoiceCents":120000,"receiptCents":120000,"applyCents":120000,"expectedInvoiceOpenCents":0,"expectedReceiptUnallocatedCents":0},{"invoiceCents":120000,"receiptCents":122000,"applyCents":120000,"expectedInvoiceOpenCents":0,"expectedReceiptUnallocatedCents":2000}]}