✏️Prompts

How to Automate Payment Reconciliation with AI

How to match card processor payouts, fees and refunds to your bank deposits with one AI prompt and a short list of matching rules.

Abstract illustration of payment records being matched to bank deposits

Payment reconciliation is slow because the processor and the bank describe the same money differently. The bank shows one deposit. The processor's report shows the dozens of charges, refunds, fees and disputes that make up that deposit. AI is good at the matching in between, as long as you give it the processor's itemized report, the bank lines and clear rules. A person still reviews the exceptions and posts the entries.

What you need before you start

You need two exports for the same period, widened by a few days on each side so payouts that cross month-end are not cut off.

  • The processor's itemized payout report. In Stripe this is the payout reconciliation report. Stripe says it helps you "match the payouts you receive in your bank account with the batches of payments and other transactions that they relate to," and its itemized version lists every payment, refund, dispute and fee in each payout, with gross, fee and net columns and the payout ID. Stripe notes the report is available only with automatic payouts; on manual payouts, Stripe points you to its balance report instead. Other processors have an equivalent settlement or payout detail report.
  • The bank or GL cash lines for the clearing or operating account the payouts land in.

Use a general assistant on a business plan, or the AI built into your accounting system. Remove customer names and card details from the export before you upload it; the payout ID, dates and amounts are all the matching needs.

The matching rules

Write these down once and reuse them every month. They are what makes the result checkable.

RuleWhy it matters
1. Match each bank deposit to one payout on net amount and a date within 3 business daysStripe warns that weekends, holidays and bank processing can affect when funds arrive
2. Check that the payout's lines add up: charges less refunds, fees and disputes equals the depositA payout that does not foot points to a missing or extra line in the export
3. Total each category separately: gross sales, refunds, processing fees, disputesEach one posts to a different account
4. Flag what does not match rather than forcing itForced matches hide the real differences
5. Treat instant or manual payouts as exceptionsStripe says you are responsible for reconciling instant payouts against your own transaction history

A worked example

A membership association takes dues and event registrations by card. On 18 November its bank shows one deposit of $9,429.60. The processor's itemized report for that payout shows the following (example figures):

CategoryCountGrossFeeNet
Charges42$10,000.00βˆ’$320.40$9,679.60
Refunds2βˆ’$250.00$0.00βˆ’$250.00
Payout total$9,750.00βˆ’$320.40$9,429.60

The deposit ties to the payout. The entry records $10,000.00 of revenue, $250.00 of refunds and $320.40 of processing fees, not a single $9,429.60 receipt. Posting the net amount as revenue understates both sales and fees.

Prompt
Attached are two files for November. "Payouts" is the processor's itemized payout reconciliation report: payout ID, reporting category, gross, fee, net and expected arrival date. "Bank" is our bank activity for the clearing account. Using Python or spreadsheet formulas, not mental arithmetic: (1) total net by payout ID and match each payout to one bank deposit on exact amount and a date within 3 business days; (2) for each payout, show totals for charges, refunds, fees and disputes, and confirm they add up to the payout amount; (3) produce a summary journal entry for the month with gross sales, refunds, processing fees and disputes on separate lines; (4) list every exception: deposits with no payout, payouts with no deposit, payouts that do not foot, and any instant or manual payouts. Show the totals you used so I can tie them out. Do not guess at matches.

The exception list

Most months, the matching is clean and the exceptions are where the time goes. Expect these:

  • Timing. A payout dated 30 November that reaches the bank on 2 December. It is a reconciling item, not an error.
  • Disputes. A disputed charge shows up as a dispute line in a later payout, not in the payout that held the original charge. Match it to the original charge and tell whoever handles disputes.
  • Refunds against old sales. A refund in November for an October charge reduces November's payout. Code it to refunds, not against November sales.
  • Report lag. Stripe notes that report data follows its own processing schedule, so a payout can arrive before its reconciliation data is ready. Re-run the export rather than matching by hand.

Where this breaks

Where this breaks

Arithmetic. Language models can add up a long column wrong if they do it in text. Ask for the work in code or formulas, and tie the monthly totals to the processor's own summary report yourself.

Partial exports. If the date range cuts a payout in half, the payout will not foot. Widen the range before you assume an error.

Revenue recognition. Card receipts for annual dues or future events may need to be deferred. The AI can sort the cash; the accounting treatment is the controller's call.

Sign-off. A person reviews the exception list, approves the journal entry and signs the reconciliation.

Free briefing

AI Agents in Finance: The Reality Check

Which finance tasks AI agents handle well today, such as bank rec matching, and which still need a person.

Last checked 23 November 2026 against Stripe's reporting documentation. This is an independent guide, and no vendor reviewed or paid for it.

Sources: Stripe, "Payout reconciliation report"; Stripe, "Bank reconciliation". Both checked 23 November 2026. Example figures in this article are illustrative.

Related Articles