ZapierChecked blueprint6 nodes
Log a Stripe payout and flag a gap
When Stripe pays out, compare the payout with gross charges minus fees and refunds for the period, log the result, and flag any gap over a tolerance.
Portfolio reference build with demo data and placeholder credentials, not a client deployment.
Pain
Month-end stops being a full matching exercise between Stripe, invoices, and the sheet. The blueprint lists the mismatches.
Solution
When Stripe pays out, compare the payout with gross charges minus fees and refunds for the period, log the result, and flag any gap over a tolerance.
Impact · From the blueprint
About 15 minutes per payout at month end, and gaps are found within a day instead of a month.
- Advanced
- Validated
- Auto path
- Webhooks by Zapier
- Google Sheets
- Code by Zapier
- Filter by Zapier
- Slack
Library status: passing. Schema, field mapping, task count, and Code-step unit tests pass. Not built in a live Zapier account.

Step inspector
The first step shows the checked-in sample payload.Later steps name the node. They are not a live execution.
Guardrails
- Filter by Zapier · Only continue if...
Credential ids in the JSON are placeholders. These files are portfolio demos.
Deploy this for your business
Tell us this slug and what still happens by hand. We will map it onto your accounts. This page is not a claim that the blueprint already runs for a customer.
README
Portfolio demo by Mustafa (mustafaautomation). Not client work. The people, companies, and numbers in it are made up. Rebuild it in your own Zapier account. Nothing here is connected to anyone's account.
Category: Finance
Difficulty: advanced
Apps: Webhooks by Zapier, Google Sheets, Code by Zapier, Filter by Zapier, Slack
Zapier plan: Professional (multi-step Zap: 5 steps after the trigger; Filter by Zapier; premium app: Webhooks by Zapier)
Tasks per run: 3 typical, 4 at most
Test status: passing (schema, mapping scope, task count, Code step unit tests)
Problem
Stripe deposits a single net amount into the bank. Whether it matches the charges, fees, and refunds behind it gets checked at month end, if at all, and a missing dispute debit or a refund booked twice surfaces weeks after the fact.
Who it's for
Founders and bookkeepers of online businesses paid through Stripe who keep a running sales sheet and want each payout checked the day it lands.
How the Zap runs
flowchart TD
s1["1. Webhooks by Zapier: Catch Hook<br/>Stripe payout.paid webhook"]
s2["2. Google Sheets<br/>Find the totals for this payout's period"]
s1 --> s2
s3["3. Code by Zapier<br/>Compare in cents"]
s2 --> s3
s4["4. Google Sheets<br/>Log the payout"]
s3 --> s4
s5{{"5. Filter by Zapier<br/>Only payouts with a gap over tolerance"}}
s4 --> s5
s6["6. Slack<br/>Flag the gap in #finance"]
s5 -->|"passes"| s6
Build it in the Zapier editor
Zapier has no import file for a Zap like this one, so it is built by hand from the steps below. zap.json is the same Zap in a machine-readable form (schema), and zap.yaml is the same document in YAML.
A value like [2. vendor] means: click the field, open step 2 in the data picker, and choose vendor. Plain text is typed as shown. YOUR_... is a value from your own account.
Before you start
- Create the sheet Stripe reconciliation › Periods with these headers in row 1:
arrival_date. - Create the sheet Stripe reconciliation › Payouts with these headers in row 1:
payout_id,arrival_date,payout,expected_minor,gap,needs_review,period_found,logged_at. - In the Stripe dashboard, add a webhook endpoint with the Catch Hook URL and select only the
payout.paidevent. Use test mode first. - In Stripe reconciliation › Periods, add one row per payout date with
charges_gross,fees, andrefunds(plain numbers, no currency symbols).
Steps
1. Trigger: Stripe payout.paid webhook
App: Webhooks by Zapier · Event: Catch Hook · instant (the app pushes each event to Zapier) · Tasks: 0
Zapier's Stripe app has no New Payout trigger, so this catches Stripe's own payout.paid webhook. In Stripe, add an endpoint pointing at the Catch Hook URL for that one event; Zapier sees the payout object's fields.
| Field | Value |
|---|---|
| Pick off a Child Key | (leave blank) |
Fields this library maps from the trigger: id, type, amount, currency, arrival_date, status, balance_transaction. Zapier shows them with its own labels; pick the one with the same meaning.
2. Search: Find the totals for this payout's period
App: Google Sheets · Event: Lookup Spreadsheet Row · Tasks: 1
Your sales sheet keeps one row per payout date with gross charges, Stripe fees, and refunds summed by formula. The lookup reads that row.
| Field | Value |
|---|---|
| Drive | My Google Drive |
| Spreadsheet | Stripe reconciliation |
| Worksheet | Periods |
| Lookup Column | arrival_date |
| Lookup Value | [1. arrival_date] |
| Should this step be considered a "success" when nothing is found? | Yes |
Later steps can map: row_number, _zap_search_was_found_status, charges_gross, fees, refunds.
3. Action: Compare in cents
App: Code by Zapier · Event: Run JavaScript · Tasks: 1
Stripe sends the payout in the smallest currency unit (cents, or whole yen); the sheet holds decimals. The comparison is done in integers so 0.1 + 0.2 never becomes a false gap.
Paste the whole of code/payout-cents.js into the code box. Source: content/code/payout-cents.cjs. Unit tests: content/code/payout-cents.test.cjs.
| Input Data key | Value |
|---|---|
payout_amount | [1. amount] |
payout_currency | [1. currency] |
charges_gross | [2. charges_gross] |
fees | [2. fees] |
refunds | [2. refunds] |
tolerance | 100 |
Returns: payout_minor, expected_minor, gap_minor, gap_display, payout_display, needs_review.
4. Action: Log the payout
App: Google Sheets · Event: Create Spreadsheet Row · Tasks: 1
One row per payout with the expected amount and the gap, matched or not.
| Field | Value |
|---|---|
| Drive | My Google Drive |
| Spreadsheet | Stripe reconciliation |
| Worksheet | Payouts |
| Columns › payout_id | [1. id] |
| Columns › arrival_date | [1. arrival_date] |
| Columns › payout | [3. payout_display] |
| Columns › expected_minor | [3. expected_minor] |
| Columns › gap | [3. gap_display] |
| Columns › needs_review | [3. needs_review] |
| Columns › period_found | [2. _zap_search_was_found_status] |
| Columns › logged_at | [Zap meta › human_now] |
Later steps can map: id, row_number.
5. Filter: Only payouts with a gap over tolerance
App: Filter by Zapier · Event: Only continue if... · Tasks: 0
Most payouts match within a dollar and stop here.
Only continue if: [3. needs_review] (Boolean) Is true.
Most runs stop here, which is the point: the steps below are the exception path.
6. Action: Flag the gap in #finance
App: Slack · Event: Send Channel Message · Tasks: 1
States the payout, the expected amount, and the difference, so the reviewer starts in the Stripe balance report for that date.
| Field | Value |
|---|---|
| Channel | #finance |
| Message Text | :mag: Stripe payout [1. id] ([1. arrival_date]) was [3. payout_display], gap [3. gap_display] against the sheet. Check disputes, adjustments, and refunds for that period. Row [4. row_number]. |
| Send as a bot? | Yes |
| Bot Name | Zap alerts |
| Include a link to this Zap? | No |
Later steps can map: ts, permalink.
Test it
Use sample-trigger.json as the test record. For an instant or webhook trigger, send it to the trigger once; for a polling trigger, create a matching record in the app and click Test trigger. Then test each step in order and read its output before you turn the Zap on.
{
"id": "po_1QEXAMPLE7ab3",
"type": "payout.paid",
"amount": 418025,
"currency": "usd",
"arrival_date": "2026-11-24",
"status": "paid",
"balance_transaction": "txn_1QEXAMPLE99cd"
}
Plan and task usage
| Step | App | Tasks |
|---|---|---|
| 1. Stripe payout.paid webhook | Webhooks by Zapier | 0 |
| 2. Find the totals for this payout's period | Google Sheets | 1 |
| 3. Compare in cents | Code by Zapier | 1 |
| 4. Log the payout | Google Sheets | 1 |
| 5. Only payouts with a gap over tolerance | Filter by Zapier | 0 |
| 6. Flag the gap in #finance | Slack | 1 |
A typical run uses 3 tasks; the upper bound is 4, when every filter passes and the costliest paths run. Zapier does not charge tasks for triggers, Filter, Paths, Formatter, Delay, Looping, Digest, Storage, or Zapier Tables steps. AI by Zapier is counted here as 1 task; Zapier prices it by model tier, so a larger model can cost more.
Minimum plan: Professional, because of: multi-step Zap: 5 steps after the trigger; Filter by Zapier; premium app: Webhooks by Zapier. The Free plan only runs two-step Zaps (a trigger and one action) and leaves out Filters, Paths, Formatter, webhooks, AI by Zapier, and premium apps.
Customize
- Raise
tolerance(in cents) if you accept small rounding differences, or set it to 0 for exact matching. - Add a column for the payout's
balance_transactionid so the reviewer can open it in Stripe directly.
Limits
- Stripe groups transactions into payouts by its own schedule. The sheet's period rows must use the same grouping, or every payout shows a gap.
- The webhook payload is the payout only. Disputes and adjustments are not itemised; that is what the review is for.
Time saved
About 15 minutes per payout at month end, and gaps are found within a day instead of a month.
Files
| File | What it is |
|---|---|
zap.json | The Zap, step by step, in schema 1.0.0. |
zap.yaml | The same document in YAML. |
sample-trigger.json | Fictional trigger record for the first test. |
diagram.png | The step list, drawn like the Zapier editor. |
code/payout-cents.js | Paste-ready Code by Zapier step. |