Merit · Rewards Portal payouts · proposal · v2.1, 26 Nov 2026
Where FX, hold and settlement live for Rewards Portal payouts
One rate source in the end, one service that moves money, and a payout that holds the funds first and captures only when the money arrives. Until the Exchange Hub is live, payouts take the rate from Fixer.
The FX source is decided: Fixer direct now, an Exchange Hub quote later. Hold, capture and the result route are proposals.
The ask
Payouts are the top priority for the Rewards Portal. A payout goes through OMS, and it can need a currency conversion. The team building OMS needs one process so that it can build the payout flow and call FX correctly.
The open ticket is W1-1718: who owns FX, the Rewards Portal or the Wallet team. Its parent is W1-1602, the Payout API integration through OMS.
Money path of one payout
Price, hold, payout, capture or release, receipt, and the Finance report.
- systems
- Portal, OMS, Payment, Exchange Hub, Wallet, Ledger, Fulfillment
Not in this proposal
Which rails go live first, payout fees, recipient data retention, bulk upload.
- where
- W1-1602, W1-1717, Habeeb's scope
One sentence
Every team knows which service converts the currency, which service moves the money, and what OMS sends to it.
- evidence
- Result written on W1-1718
The instance we follow
This is the example from W1-1718. The wallet currency and the payout currency are different, so somebody must convert. The rest of this page follows this one payout.
The legacy Payout Service sent about 2.2 million payouts this year. Payouts are the next product the new Rewards Portal must carry. A wrong FX design now becomes the pattern for every product after it.
02 · why the obvious answer fails
FX has no single home today
An AED wallet can pay a 100 EUR PayPal payout. Today the conversion has no single home.
| Product | Where FX happens today |
|---|---|
| Rewards Portal gift cards | The portal calls Fixer. OMS gets an optional rate field and does not use it |
| Rewards Portal wallet top-up | The portal calls the Wallet directly, not Payment |
| Travel Shop | Calls fixer.io directly |
| Points Exchange | Built on the Exchange Hub design |
| Ecommerce markets and multi-currency | Built on Exchange Hub quotes. Cannot go to staging until the Exchange Hub does |
| Payoutsnew | Interim: Fixer direct from the portal. Target: Exchange Hub quote |
Each direct Fixer call takes the rate at a different time, so rates can differ on the same day. Products on Fixer direct also have no rate hold.
Problem 1. A payout is not instant
A gift card is delivered in seconds. A payout is not. The legacy Payout API is polling only, and a recipient with no account goes to pending_claim. The payout can stay open for days and then end as expired. If the rate is taken again when the payout ends, the amount the tenant confirmed and the amount Merit settles are different.
Move the inputs. The drift per day is your assumption, not a forecast.
Problem 2. Taking the money first makes failure expensive
The simple design debits the wallet when the order is created and refunds it if the payout fails. Every failed, declined, canceled or expired payout then needs a refund, in a second transaction, at a later rate. Pick an outcome and compare.
03 · the choice
Four places FX could live
B is the interim. D is the target.
| Option | Rate sources | Who moves money | Works for the next product | Set aside because |
|---|---|---|---|---|
| A. FX in OMS | New one in OMS | OMS and Wallet | Copy per product | OMS becomes a pricing engine. Rejected |
| B. FX in the Rewards Portal, Fixer directinterim | Fixer, again | Payment (charges the amount it receives) | Every channel repeats it | Not set aside for now. Ships now, keeps a second rate source |
| C. FX in the Wallet | New one in Wallet | Wallet | Yes | The Wallet is a balance store |
| D. Quote from the Exchange Hub, Payment chargestarget | Exchange Hub only | Payment only | Yes, same call | Not set aside. Waits for the Exchange Hub in production |
A. FX in OMS
Rejected. OMS reads a rate, converts and debits the wallet. OMS would become a pricing engine and hold a second copy of the rate.
B. FX in the Rewards Portal, Fixer direct
The interim. The portal calls Fixer when the user starts payment, as gift cards do. It is the quickest path to a first payout. It keeps a second rate source and has no rate hold.
C. FX in the Wallet
Rejected. The Wallet keeps balances. FX in the Wallet makes it a pricing service and makes the Exchange Hub pointless.
D. Quote from the Exchange Hub, Payment charges
The target. The Rewards Portal gets a quote from the Exchange Hub: spot plus markup, a 5-minute expiry and a group id. OMS stores the quote id. Payment charges the amount it receives and does not convert.
What D costs
- OMS, Payment and Wallet must agree one contract.
- The hold is not built. Mohammad Shatnawi owns it.
- The Exchange Hub is on develop only, with no QA. No deployment before about 1 Jan. Production date: about 7 to 8 Jan 2027.
- The Ledger is a database table today. A Finance report on top of it needs work.
- The Exchange Hub may apply the markup as a discount. The profit credit to Merit has no design and no owner.
- Gift cards, wallet top-up and interim payouts must move to the quote later, or two rate sources stay.
D is the only option where the next product needs no new FX code. B gets the first payout out sooner.
04 · the parts
Eight parts, and what each one does not do
Three pieces are missing: the hold, a real Ledger and the Exchange Hub in production. Click a part.
Select a part to see its role, what it does not do, its owner and its state.
Who talks to whom
The contract OMS needs from Payment
OMS sends every command. The Payment team confirms the contract.
| Operation | Type | OMS sends | Payment returns |
|---|---|---|---|
| Hold | Sync | Order line id, wallet id, amount, currency, rate or quote id | Hold id, held amount, status |
| Capture | Async | Hold id, idempotency key | Captured event with ledger entry id |
| Release | Async | Hold id, idempotency key, reason | Released event with ledger entry id |
| Deduct | Sync | Order line id, wallet id, amount, currency, rate or quote id | Transaction id, debited amount |
| Receipt | Sync | Hold id or transaction id | Both amounts, rate, timestamps |
Payment rejects a second capture on the same hold and a capture after a release.
Fulfillment Service to OMS
The Fulfillment Service sends order line id, status (sent, paid, failed, unclaimed), provider reference and time. OMS dedupes by order line id. It never calls Payment or the Wallet.
FX rules
- The request amount is in the payout currency. Proposed.
- The portal takes the rate when the user starts payment, not at add-to-cart. Decided.
- Merit's price is spot plus a markup on top, standard 3%. Decided.
- OMS stores the rate used or the quote id, never a rate table. Decided.
- Hold and capture use the rate the tenant confirmed. Proposed.
- The Ledger keeps the executed rate on each entry. Decided.
- Wallet payments carry no gateway fee. Gateway fees apply to card payments only. Decided.
- An Exchange Hub quote expires after 5 minutes. An expired quote needs a new quote.
What exists today
| Part | State |
|---|---|
| Wallet Service | Live. The debit API checks balance, frozen status and currency |
| Payment Service | Live |
| Exchange Hub | Develop only, no QA. No deployment before about 1 Jan |
| Exchange Hub markup | Possibly applied as a discount. Under check |
| Markup profit credited to Merit | Not designed, not built |
| Ledger | A database table only |
| Hold funds | Not built. Mohammad Shatnawi owns it |
| Capture on event | Not built |
| Legacy Payout API | Live, polling only |
Ownership
| Area | Owner |
|---|---|
| Order, rate or quote id, both statuses | OMS: Brian, Ahmad Wshah |
| Interim payout FX on Fixer | Ahmad Wshah |
| Hold, capture, release, deduct | Payment: Tamer Labna, Mohammad Shatnawi, Maram Mustafa |
| Rate source, quote, markup | Exchange Hub: Hamd Zulfiqar, then Fayez Abu Helow |
| Balances and currency checks | Wallet: Marthino Yuda, Mohammad Shatnawi |
| Payout execution and result event | Fulfillment Service |
| Ledger, finance settlement, markup profit | Open |
05 · show it moving
One payout, end to end
The 100 EUR PayPal payout from an AED wallet. This is the target flow. In the interim the portal takes the rate from Fixer. Press play, or step with the arrows.
Full text description of every step
When something breaks
Eight faults, one per class, including two services that the OMS team does not own. Pick one. The same diagram replays with that part broken.
The same flow as a swimlane
Each lane is one owner. Read it top to bottom. It shows the target. In the interim, step 2 is the portal calling Fixer.
Sequence diagram with the failure path
Life of a hold
A hold with no final status after a set time goes to Ops review. A timer alone never captures or releases it, because pending_claim can last days. The time is not set yet.
Order of work
Two dates exist: the interim build sits in the payouts plan, and the Exchange Hub production date is about 7 to 8 Jan 2027. The hold has no estimate.
-
Phase 0 · Rate source decided
one callThu 26 NovdecidedInterim: Fixer direct. Target: Exchange Hub quote. Result goes on W1-1718.
-
Phase 1 · Payout FX on Fixer direct
in the payouts planAhmad WshahThe portal calls Fixer, adds the markup and shows the wallet amount. OMS stores the rate used. Owners: Rewards Portal and OMS.
-
Phase 2 · Hold, capture and release
not estimatedopenPayment and Wallet build hold, capture and release. OMS sends the capture and release commands once it has the fulfilment result. Owner: Shatnawi.
-
Phase 3 · Payouts live, PayPal first
not estimatedafter Phase 2the ticket ships hereW1-1602: Portal, OMS, Fulfillment and the Payout API on the new money path, with the Fixer rate. Owners: OMS team, Portal team.
-
Phase 4 · Exchange Hub in production
Fayezabout 7 to 8 Jan 2027The portal moves from Fixer to the Exchange Hub quote and passes the quote id to OMS. Open: whether Payment validates the quote id, and the markup check.
-
Phase 5 · One path for everything
not estimatedlaterLedger report for Finance. Gift cards and wallet top-up move to the same quote. Owners: open.
Fallback for Phase 3: deduct at order and refund on failure, both through the Payment Service. It ships sooner and it costs a refund per failed payout. This is the other side of decision 1.
Decisions
Decided: rate source (Fixer direct now, Exchange Hub quote later), wallet selection at checkout, markup on top at 3%, rate at payment start, no gateway fee on wallet payments.
Open:
| # | Decision | Current position | Who decides |
|---|---|---|---|
| 1 | Hold, then capture or release for payouts. Deduct for instant products | Proposed | Tamer, Shatnawi |
| 2 | Does Payment validate the quote id? | Hamd: yes. Tamer: Payment only charges | Tamer, Hamd, Fayez |
| 3 | Fulfilment result to OMS only, then OMS sends capture or release | To confirm with Tamer and Shatnawi | Tamer, Shatnawi, Brian |
| 4 | When does PayPal take Merit's money, at send or at claim? | Decides capture on sent or paid | Habeeb |
| 5 | Unclaimed PayPal payout after 30 days: refund or breakage | Today's client portal keeps it | Habeeb |
| 6 | Currency of the request amount | Proposed: the payout currency | Habeeb, Ahmad Wshah |
| 7 | Owner of the Ledger, finance settlement and markup profit | No owner | Brian, Marthino, Finance |
| 8 | Bring the Exchange Hub deployment forward | Blocks Ecommerce and the payouts target | Habeeb, Fayez |
Next steps
| # | Step | Owner | Date |
|---|---|---|---|
| 1 | Create the Slack channel and invite the meeting | Tamer Labna | Thu 26 Nov |
| 2 | Post this proposal and the MoM in the channel | Brian | When the channel exists |
| 3 | Check the markup direction in the Exchange Hub | Hamd Zulfiqar | Before Mon 30 Nov |
| 4 | Ask Habeeb about the Exchange Hub priority | Fayez Abu Helow | Not stated |
| 5 | Ask Habeeb about unclaimed PayPal payouts | Tamer Labna | Not stated |
| 6 | Ask Habeeb when PayPal takes Merit's money | Brian | In the Slack channel |
| 7 | Confirm the fulfilment result route (decision 3) | Tamer Labna, Mohammad Shatnawi | In the Slack channel |
| 8 | Build payout FX on Fixer direct | Ahmad Wshah | In the payouts plan |
| 9 | Write the result on W1-1718 and update the dated plan | Brian, Ahmad Wshah | 26 Nov |
| 10 | Share the Exchange Hub first production date | Fayez Abu Helow | About 7 to 8 Jan 2027 |
Sources: calls of 23 Nov 2026 and 26 Nov 2026, Fathom recordings (Merit access); W1-1718, W1-1716, W1-1602; Payout API documentation. Proposal in Google Docs.