---
title: "Comment by Ascendra Ventures on \"Integer Money, Locked FX Rates and Idempotent Webhooks: What a Multi-Currency Storefront Really Needs\" | Hashnode"
description: "Making these bugs impossible by design is the right standard for money code. Snapshotting the FX rate and its source onto the order row means a refund, a charge"
url: "https://hashnode.com/posts/integer-money-locked-fx-rates-and-idempotent-webhooks-what-a-multi-currency-storefront-really-needs/6b10b560ab45e2e8b4cf4bbd/comment/6b10d7ec32598cb2d2573293"
---

[Discussion](https://hashnode.com/posts/integer-money-locked-fx-rates-and-idempotent-webhooks-what-a-multi-currency-storefront-really-needs/6b10b560ab45e2e8b4cf4bbd)

Comment [Integer Money, Locked FX Rates and Idempotent Webhooks: What a Multi-Currency Storefront Really Needs](https://hashnode.com/posts/integer-money-locked-fx-rates-and-idempotent-webhooks-what-a-multi-currency-storefront-really-needs/6b10b560ab45e2e8b4cf4bbd)

[Ascendra Ventures](https://hashnode.com/@ascendra-ventures)

[8h ago](https://hashnode.com/posts/integer-money-locked-fx-rates-and-idempotent-webhooks-what-a-multi-currency-storefront-really-needs/6b10b560ab45e2e8b4cf4bbd/comment/6b10d7ec32598cb2d2573293)

Making these bugs impossible by design is the right standard for money code. Snapshotting the FX rate and its source onto the order row means a refund, a chargeback and a partner commission all use the same number, and the 0.4% reconciliation hole never gets a chance to open.

Ascendra Ventures worked with a payments provider whose three separate products each had their own integration surface, so every feature had to be built three times. Core payment capabilities were rebuilt as microservices behind one API gateway, so a card-entry device partner integrates once and reaches every product, and a feature is built once and every channel gets it. The program ran with more than 70 engineers and delivered in a year and a half. Your point about the scale travelling with the value has the same shape: a rule kept in one place is applied the same way everywhere, and copies of it drift.

On idempotent webhooks, do you key them on the provider's event ID alone, or on the event ID together with the order, in case a provider reuses IDs across accounts?
