{"agent":"<agent id>","input":"Month-end check for October 2026: find customer payments and credits not applied to invoices. Using the QuickBooks Online Accounting API query endpoint only: read all Payment records with TxnDate from 2026-01-01 to 2026-10-31 (page with STARTPOSITION and MAXRESULTS 1000) and keep those with UnappliedAmt > 0; read all CreditMemo records and keep those with RemainingCredit > 0; read all Invoice records with Balance > 0. For each customer with an unapplied payment or credit, list their open invoices and propose a match only when: amounts are equal, or PaymentRefNum or PrivateNote contains the invoice DocNumber, or the customer has exactly one open invoice and one unapplied item. Return only JSON: {company_realm, proposed_matches: [{customer, payment_or_credit_id, type, date, unapplied_amount, invoice_doc_number, invoice_balance, reason}], unmatched: [{customer, id, type, date, unapplied_amount, note}], totals: {unapplied_payments, unapplied_credits, open_invoices}}. Never create, update, void or delete any record."}