insonl
← journal

Route Payment Reconciliation Exceptions Using Provider Events

date
26 November 2026
by
Insonl
read
7 min read

An invoice stays open after Stripe records a successful payment. The first question for a finance systems lead is where the evidence stops. Stripe may have generated an event that never reached your event store. The integration may have accepted the event and stalled before posting a receipt. A receipt may already exist in the accounting system and still need to be applied to the invoice. Each condition belongs in a different queue.

Start with customer receipts against accounts receivable. Record webhook receipt, accounting posting and invoice application as separate steps. Bank deposits and payout reconciliation have their own records and controls. Closing a customer invoice and confirming cash in the bank are separate outcomes.

Record a verified event before acknowledging delivery

For a Stripe snapshot webhook, verify the raw request body and the Stripe-Signature header with the endpoint’s signing secret. Reject requests that fail verification and log the failure without the payload. Stripe recommends returning a successful HTTP response quickly and handling complex work asynchronously. Persist the verified event record before acknowledging it, and make that same write create a durable unit of work, or have a worker pick up the saved record directly. That protects the handoff if the process stops between saving the event and starting the accounting job. Stripe webhooks

Keep the Stripe account, live or test mode, event ID, type, object ID, creation time and local receipt time. For snapshot events, retain the API version with the record so the integration can interpret historical payloads. Retain a minimal field set and restrict access to any supporting evidence. Stripe can deliver the same event more than once and makes no delivery-order guarantee. Use the event ID within the account and mode to deduplicate intake. Use timestamps to measure delay and trace incidents. Stripe webhooks · Stripe Event object

Accounting needs its own duplicate control. Separate events can refer to the same underlying object, so make the accounting operation repeatable under a stable reference. For a flow that creates one receipt per successful PaymentIntent, the reference can identify the account, mode, PaymentIntent and receipt operation. An invoice application needs its own stable reference for the approved allocation. If an ERP write times out, look up that operation’s reference before retrying. Where the ERP cannot enforce a unique reference or confirm the result independently, send uncertain writes to review before attempting another one. Stripe webhooks · Write Error Responses an AI Workflow Can Route Safely

Join event, payment, receipt and application

In a snapshot payment_intent.succeeded event, the outer event ID identifies the event and data.object.id identifies the PaymentIntent. Join the event to an internal payment mapping using the account, mode and PaymentIntent ID. In a checkout you control, create that mapping when you associate the PaymentIntent with the internal payment request. Keep the accounting legal entity and intended invoice or approved allocation there. Put the provider payment reference on the accounting receipt or in an integration table that points to the posted receipt. Preserve the event ID on the processing record so a reviewer can trace the receipt back to the evidence used to post it. Stripe webhooks · Stripe Event object

Check the mapped customer and legal entity before applying the receipt. Compare Stripe’s amount_received and currency with the accounting receipt on the same unit basis. Check that the total applied across invoices plus the unapplied balance equals the receipt amount. Where policy permits a partial payment, keep the remaining invoice balance open. Where a receipt can cover several invoices, keep each applied amount and invoice ID. If the provider reference is absent or the mapping conflicts, date, amount and customer may help staff search. Require a verified link before applying the receipt. Stripe PaymentIntent object

Route the gap using both systems’ evidence

Reconcile in both directions. Check which provider payments lack the expected accounting result, then check which accounting receipts carry a provider reference the event store cannot substantiate. Give normal delivery and posting delays a defined allowance. Record the last completed check so the next reviewer can see whether a case is late, blocked or still within the ordinary processing window.

What the records show Route and first check
The expected Stripe event exists in provider history and has no local event record. Payments integration checks the destination’s delivery history, subscription and intake logs.
The event is in the local store and the accounting receipt is absent. The posting integration checks the worker result and ERP rejection details. If the write outcome is unknown, search for the operation reference first.
The receipt is posted and some or all of it remains unapplied. Accounts receivable checks the approved invoice mapping, open balances and any existing partial applications.
A receipt or application exists and the entity, currency or amount conflicts. Finance review gets both records and the failed check. Follow the accounting system’s correction and approval process.
A provider payment is visible but the expected event has yet to be located. Payments integration checks account, mode, event type and history coverage before assigning a cause.

For a gap in snapshot delivery, Stripe’s List Events API can supply event IDs for the affected account, time window and event types. Follow all pages and compare those IDs with local receipts. Stripe limits this history to 30 days. Its delivery filter can include problems at other endpoints, so inspect the specific destination before assigning the cause. Record authenticated API retrieval and signature-verified delivery as separate evidence on the same event record. Make both paths use the same intake key so either can arrive first without creating a second accounting job. Keep the original delivery gap visible even after a backfill supplies the event. If an event is outside the provider’s history window, keep the gap unresolved until retained evidence supports a conclusion. Stripe List Events · Stripe guidance for undelivered events

Give AI the case after the rules have run

Build a versioned case from the completed checks. Include the exception reason, links or identifiers for the available evidence, provider and accounting timestamps, the receipt and application states, and the rule that selected the queue. Show a missing record as missing. Keep the case usable with a fixed template that any reviewer can read.

If reviewers still spend time assembling that evidence, give a model selected fields from the case and ask it to summarize what was confirmed, what remains open and which record the reviewer should inspect. Provide an allowlist of readable reference IDs and omit raw webhook payloads, payment credentials and unnecessary customer data. Keep routing, totals and permissions in the workflow. Reject a summary with references that fail validation. Display the fixed template whenever the summary is missing or belongs to an older case version. A reviewer works from the underlying records and uses the existing accounting approvals to make a correction. Put a Human Approval Step on Refund Exceptions

Replay a duplicate delivery, an event recovered while a retry is in flight, an ERP timeout after a successful write, and a receipt posted without an application. Confirm that duplicates produce a single accounting effect and that each open case reaches the team that can act. Track event receipt lag, posting lag and time spent unapplied using the corresponding stage timestamps. Compare the model summary with the fixed template on reviewer handling time and factual errors, including whether it correctly reports missing evidence. Use the results to decide whether the summary earns a place in the queue.

Audit one payment exception workflow

Bring a redacted Stripe event, the related accounting receipt or posting error, and the rules your finance team uses to apply receipts. Insonl can trace where evidence stops and which checks can run before a reviewer opens the case. The audit is free. Insonl charges for follow-on work you commission. Request a free AI workflow audit

Sources

  • Stripe’s guidance on checking signatures, acknowledging delivery, and handling retries, duplicates and out-of-order events. Stripe webhooks
  • Stripe’s reference for event identity, account, mode, creation time, API version and event data. Stripe Event object
  • Stripe’s reference for PaymentIntent identity, amount received and currency. Stripe PaymentIntent object
  • Stripe’s reference for event history, account scope, filtering and pagination. Stripe List Events
  • Stripe’s guidance on recovering undelivered events and interpreting the delivery filter. Stripe guidance for undelivered events