See llms.txt for all machine-readable content.
Reconciles what Shopify says you sold against what Stripe actually paid out, gives every difference a named cause, and reports the share of volume it could not explain.
Intake. A webhook (/recon-run) or a daily schedule starts the run. Orders and settlements are normalised to integer cents, given a stable key, and de-duplicated, so re-running a period cannot count anything twice. Demo mode reads a built-in fixture; live mode calls Shopify Admin GraphQL and the Stripe API through credentials.
Matching. Three rounds, strongest signal first: the order reference recovered from the settlement metadata, then the exact amount, then the platform object id embedded in free text such as SHOPIFY PAYMENT 1101. Each round only receives the orders the previous round could not place, so a weak signal never overrides a strong one. One settlement belongs to one order — the first claim wins — because a shared amount credited to two orders inflates GMV by exactly the duplicated value. Rows nobody claims become MISSING_IN_SETTLEMENT or ORPHAN_SETTLEMENT instead of being dropped.
Attribution. Every row gets one of fifteen named verdicts, and the variance is split on two independent axes: gross_delta (money that arrived short, converted at the order-date exchange rate) and fee_delta (fee kept above a fitted baseline). variance = gross_delta - fee_delta therefore holds by construction, which is what lets a row say which of the two happened instead of only how large the gap was.
The fee baseline is a least-squares fit of fee = rate × gross + fixed over the period's own charges, with a second pass that drops outliers — without it, two duplicated charges and two deliberately wrong rates pull the slope from 2.9% to 4.2%, after which every honest order reads as a fee mismatch. Dispersion uses 1.4826 × MAD, so a single odd historical order cannot set the anomaly threshold.
Exchange rates come from the ECB on the order date, not the period end: converting at period end attributes a month of rate movement to the platform, which is the most common way a reconciliation invents losses that never happened. Weekends bridge to the previous business day and the rate date is printed in the row, so each figure is auditable.
Output. A ledger where every row carries the verdict, a recoverable flag, and the numbers behind it, plus residual_pct_of_gmv — the share of volume the ladder could not explain. Under 0.1% the fifteen codes cover your business; over 0.5% the taxonomy has a gap and health says so.
Two verdicts are deliberately not counted as losses: TIMING_LAG (settled after the period closed) and RESERVE_HELD (a rolling reserve the platform returns later). The money exists; it simply is not in this period. Both are reported with their own variance so they stay visible without polluting the loss figure.
The residual counts only rows the ladder could not name. A $120 duplicate charge and a $10 amount mismatch are explained findings — large, but named — and folding them into the residual would report a correctly diagnosed ledger as a broken one.
The demo needs nothing: POST /webhook/recon-run with {} returns a full report from a fixture containing one example of every variance class, so the output can be read before connecting anything. On the bundled demo the residual is 0.032% across 16 rows and 11 distinct verdicts.
For live data, create two credentials in n8n and select them on the two HTTP nodes, which are pre-wired for those types:
X-Shopify-Access-Token set to your admin tokenThen set shopify_shop in 00 - Run Config (for example my-store.myshopify.com). Exchange rates need no key. Nothing is hard-coded in the workflow: the test suite scans the exported JSON for keys, tokens and private hosts.
Run it twice over the same period: the second run must return the same ledger with no duplicated rows.
00 - Run Config holds the period, the amount tolerance, the residual band, the anomaly threshold and the output format. That is the only node most people ever edit.{"output_format":"csv"} returns a long-format ledger — one row per reconciliation line — which is the shape accounting tools import.42 - Classify Variance; it appears in the summary, the ledger and the CSV without touching another node.The download includes an offline regression suite: node test.js runs 29 assertions with no network, no n8n and no credentials. It reads the classification code out of the same file the workflow builder embeds, and one assertion compares the embedded node body against that file byte for byte — so a green run cannot be green against a drifted copy.
Covered: every verdict the workflow can emit, the variance = gross_delta - fee_delta identity on every row, one settlement never credited to two orders, FX converted at the order date rather than the period end, refunds never netted into their sale, empty input producing no rows and no exception, a missing fee history degrading instead of throwing, and a scan of the shipped JSON for credentials.
Limitations worth knowing before you buy: it produces structured data, not journal entries, so it is not accounting-grade. Settlement data is T+1 to T+7 upstream, so real-time reconciliation is neither offered nor meaningful. Live exchange rates use the rate published for the period; the demo carries a per-day table to show the order-date behaviour, and for production-grade daily rates point the FX node at a historical-rates endpoint.