All entries

    Reconcile Payments When a Webhook Arrives Late

    Reconciliation compares provider records with your internal ledger when webhook delivery is delayed or incomplete.

    A reconciliation clerk compares a ledger with payment records
    Conceptual pixel-art illustration.

    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.

    FURTHER READING

    Sources

    Technical references checked .

    END OF ENTRY / 60
    Eeshan Singh with Big Ben in London
    BEHIND THE JOURNAL

    Eeshan Singh

    I’m Eeshan Singh Pokharia, an AI Full Stack Developer and CoFounder of UltraFit360. I work across AI features, full-stack product development, and web and mobile experiences—from Figma and frontend interactions to the systems behind them.

    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.

    Meet the author
    THE CONVERSATION

    Your side of the story.