Reconciliation compares provider records with your internal ledger when webhook delivery is delayed or incomplete.
Build the example
Create a fictional order with a known ID, expected amount and currency. If it is pending past your operational threshold, query the provider by its known identifier and compare the authoritative fields. Route disagreements to review. Feed matching confirmed results through the same idempotent transition used for webhooks.
Separate the comparison result from the mechanism that discovered it. A matching verified payment can update the order whether found by webhook or reconciliation. Record which observation supplied the evidence and when. If the provider reports a state you do not understand, retain the order for review instead of mapping it to a generic failure.
Watch the failure boundary
Run reconciliation in bounded batches and store enough progress to resume a partial run. Avoid reading the full provider history every time. Track the age of unresolved orders and the kinds of mismatches found, with sandbox identifiers in examples. An apparently completed job is still unresolved if it never verifies the expected amount or currency.
Verify the behavior
Simulate a reconciliation run that confirms an order just before its webhook arrives. The second result should acknowledge the existing state without duplicating receipts. Add an API timeout and a wrong-currency response. A timeout leaves the order unresolved, while a mismatch needs investigation.
Sources
Technical references checked .



