Stripe payout match.
One weekly Stripe payout is taken apart into invoices paid, refunds, money taken back and fees. Code matches each line and proves the sum to the cent, the accountant posts the entry, and the clearing account must equal what Stripe has not paid out yet.
- Company
- Demo Manufacturer US Inc.
- Starts when
- Stripe pays out the week's card payments
- How often
- Once a week, one run per payout
The diagram goes on to the side. Drag it, or use the two buttons.
Steps
Steps in order
| # | Step | Done by | Tolerance | Rollout stage |
|---|---|---|---|---|
| 1 | Code reads the payout and all its lines Selected | Payout reader · Automation, no AI | Each payout once and 3 more | 6 |
| 2 | Code matches each line to its record Selected | Payout checks · Automation, no AI | Stripe reference exact and 2 more | 6 |
| 3 | Code adds up the payout Selected | Payout checks · Automation, no AI | Equal to the cent | 6 |
| 4 | Accountant settles unmatched lines Selected | Accountant | Every line has one record, and the sum of step 3 is equal to the cent | 6 |
| 5 | Code drafts the payout entry Selected | Payout entry · Automation, no AI | What the payout leaves on the clearing account equals the amount paid out, to the cent and 1 more | 6 |
| 6 | Accountant posts the payout entry Selected | Accountant | Exact | 6 |
| 7 | Code agrees the clearing account Selected | Payout checks · Automation, no AI | Amount and payout number exact and 2 more | 6 |
Rollout stage: 6 · Month-end close and approvals.
Before
How it was done before
The net amount of the payout was booked in QuickBooks Online as one sale, and the fees and refunds inside it were never seen.
Where it breaks without control
- The payout is posted as sales, so the fees are lost and the invoices stay open.
- A bank takes back a card or ACH payment, and the invoice still shows as paid.
- A refund is made in Stripe with no credit note behind it.
- Only the first page of a long payout is read, and the rest looks like a difference.
Controls
What is checked, and who signs
Checks
| Step | Compared with | Tolerance | On a difference |
|---|---|---|---|
| 1 · Code reads the payout and all its lines | The payout number against those read before; the currency; the pages of lines against Stripe's mark that more follow; the payouts read against Stripe's list | Each payout once; USD only; every page of lines read; no earlier payout in the list left unread | A payout read before is skipped and the log says so. A payout with a missing page, with another currency or with an unread one before it is read once more, then waits in the accountant's exception queue; nothing is drafted from part of a payout. |
| 2 · Code matches each line to its record | Each charge against the Odoo payment and its invoice or quotation, each refund against its credit note, each dispute or returned ACH debit against the payment it takes back, money given back against the line that took it | Stripe reference exact; amount exact to the cent; one line, one record | The line is marked unmatched with its reason - no payment in Odoo because Stripe's message never arrived, an invoice paid twice, a refund with no credit note, or money taken back by a bank, of which Odoo's Stripe module receives no message. Nothing is matched by the dealer's name or by the amount alone. |
| 3 · Code adds up the payout | Charges less refunds, less money taken back, plus money given back, less fees, against the amount of the payout | Equal to the cent | No entry is drafted. The payout waits in the accountant's exception queue with the totals by kind, so that a missing line and a fee of another kind can be told apart. |
| 4 · Accountant settles unmatched lines | Each unmatched line against the charge in Stripe, the dealer's portal account and the open invoices | Every line has one record, and the sum of step 3 is equal to the cent | A charge that nobody can place is booked on the account for unidentified receipts under its Stripe reference and is listed to the owner after 5 working days; it is never booked as a sale or a fee. A sum that still differs sends the payout back to step 1. |
| 5 · Code drafts the payout entry | The draft against the totals of the payout; the clearing lines of this payout against the amount of the payout | What the payout leaves on the clearing account equals the amount paid out, to the cent; no line on a sales account | The draft is not offered for posting and waits in the accountant's exception queue with the line that breaks the sum. |
| 6 · Accountant posts the payout entry | Fees, refunds and money taken back in the draft against Stripe's own report of the payout | Exact | The accountant rejects the draft with a reason; it is drafted again after step 4. |
| 7 · Code agrees the clearing account | The bank line against the payout; the rest of the Stripe clearing account against Stripe's lines that are in no payout yet, before fees | Amount and payout number exact; the lines of this payout add up to 0.00; the rest of the account equals those lines to the cent, and money taken back since the payout is named beside it | A payout with no bank line after 3 working days, or a rest that differs, goes to the accountant's exception queue. The accountant asks Stripe or the bank; the account is never set to zero by a write-off. |
Duties by role
What the action log records
| Step | Record | What is written |
|---|---|---|
| 1 · Code reads the payout and all its lines | Agent action log | One line per payout read or skipped |
| 7 · Code agrees the clearing account | Agent action log | The two balances compared |
Connected processes
Where the work comes from and where it goes
Work goes to
| Process | What passes | At step |
|---|---|---|
| Bank reconciliation | A payout with its number, to be found on the statement | Accountant posts the payout entry |
| Credit note to a dealer | A refund or a disputed charge with no credit note | Accountant settles unmatched lines |
Work comes from
| Process | What passes | At step |
|---|---|---|
| Customer invoice | A card or ACH payment of an invoice | Dealer pays the invoice |
Want this process checked on your data?
Tell us where it goes wrong.