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.

status

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.

in scope

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
out of scope

Not in this proposal

Which rails go live first, payout fees, recipient data retention, bulk upload.

where
W1-1602, W1-1717, Habeeb's scope
done when

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

tenant wallet
AED
→
payout
100 EUR
→
rail
PayPal

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.

why it matters

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.

ProductWhere FX happens today
Rewards Portal gift cardsThe portal calls Fixer. OMS gets an optional rate field and does not use it
Rewards Portal wallet top-upThe portal calls the Wallet directly, not Payment
Travel ShopCalls fixer.io directly
Points ExchangeBuilt on the Exchange Hub design
Ecommerce markets and multi-currencyBuilt on Exchange Hub quotes. Cannot go to staging until the Exchange Hub does
PayoutsnewInterim: 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.

rate taken twice: at order and at settle
EUR 0.90
worst-case gap on one payout
EUR 1,800
worst-case gap per month, nobody owns it
rate taken once, when the user starts payment
EUR 0.00
gap between the price shown and the amount settled
Spot plus markup
markup on top, usually 3%, rate used visible in the Ledger

Simple worst case: amount × daily move × days. It assumes the rate moves the same way every day.

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.

debit at order, refund on failure
    hold at order, capture or release

      03 · the choice

      Four places FX could live

      B is the interim. D is the target.

      OptionRate sourcesWho moves moneyWorks for the next productSet aside because
      A. FX in OMSNew one in OMSOMS and WalletCopy per productOMS becomes a pricing engine. Rejected
      B. FX in the Rewards Portal, Fixer directinterimFixer, againPayment (charges the amount it receives)Every channel repeats itNot set aside for now. Ships now, keeps a second rate source
      C. FX in the WalletNew one in WalletWalletYesThe Wallet is a balance store
      D. Quote from the Exchange Hub, Payment chargestargetExchange Hub onlyPayment onlyYes, same callNot 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

      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

      order forward POST payout hold, capture, releasehold id, events result quote: rate,quote id validate quote id?open hold, capture, release record removed:Fulfillment to Wallet Rewards Portalgets quote, price OMSorder, hold id, status Fulfillmentsend, poll, report Payout APIold world Rail Payment Servicecharges, no FX Exchange Hubrate + markup Walletbalances, no FX Ledgerentry + rate FinanceOdoo

      The contract OMS needs from Payment

      OMS sends every command. The Payment team confirms the contract.

      OperationTypeOMS sendsPayment returns
      HoldSyncOrder line id, wallet id, amount, currency, rate or quote idHold id, held amount, status
      CaptureAsyncHold id, idempotency keyCaptured event with ledger entry id
      ReleaseAsyncHold id, idempotency key, reasonReleased event with ledger entry id
      DeductSyncOrder line id, wallet id, amount, currency, rate or quote idTransaction id, debited amount
      ReceiptSyncHold id or transaction idBoth 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

      1. The request amount is in the payout currency. Proposed.
      2. The portal takes the rate when the user starts payment, not at add-to-cart. Decided.
      3. Merit's price is spot plus a markup on top, standard 3%. Decided.
      4. OMS stores the rate used or the quote id, never a rate table. Decided.
      5. Hold and capture use the rate the tenant confirmed. Proposed.
      6. The Ledger keeps the executed rate on each entry. Decided.
      7. Wallet payments carry no gateway fee. Gateway fees apply to card payments only. Decided.
      8. An Exchange Hub quote expires after 5 minutes. An expired quote needs a new quote.

      What exists today

      PartState
      Wallet ServiceLive. The debit API checks balance, frozen status and currency
      Payment ServiceLive
      Exchange HubDevelop only, no QA. No deployment before about 1 Jan
      Exchange Hub markupPossibly applied as a discount. Under check
      Markup profit credited to MeritNot designed, not built
      LedgerA database table only
      Hold fundsNot built. Mohammad Shatnawi owns it
      Capture on eventNot built
      Legacy Payout APILive, polling only

      Ownership

      AreaOwner
      Order, rate or quote id, both statusesOMS: Brian, Ahmad Wshah
      Interim payout FX on FixerAhmad Wshah
      Hold, capture, release, deductPayment: Tamer Labna, Mohammad Shatnawi, Maram Mustafa
      Rate source, quote, markupExchange Hub: Hamd Zulfiqar, then Fayez Abu Helow
      Balances and currency checksWallet: Marthino Yuda, Mohammad Shatnawi
      Payout execution and result eventFulfillment Service
      Ledger, finance settlement, markup profitOpen

      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.

      step 1 / 1

       

       

      1/1
      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.

      1. Enter rail, amount,recipient. Select the wallet3. Show the wallet amount.The user confirms the price13. Show final statusand receipt2. Quote: rate plus tenant markup,quote id, 5 minute expiry(interim: Fixer rate in the portal)4. Create order. Store quote id(or the rate used).Request hold6. Store hold id.Forward order10. Record the fulfilment status.Send Capture (paid) or Release(failed, unclaimed) with hold id,key and, for release, a reason12. Record the payment status(separate from fulfilment status)5. Charge the amount received.Hold funds in tenant wallet.No conversion. Record in Ledger.Return hold idPaid?yesno11a. Capture the hold.Record capture in Ledger at thesame rate. Emit Captured11b. Release the hold.Record release in Ledger.Emit Released7. Send payoutthrough Payout API8. Poll untilfinal status9. Publish the result to OMS only:order line id, status, provider ref,timestamp. No call to Payment14. Period report from Ledger.Reconciliation andinvoice in OdooTenant user andRewards PortalExchange HubOMSPayment Service(with Wallet,Ledger)Fulfillment Service(with Payout API,old world)Finance
      Sequence diagram with the failure path
      Payout API, old worldFulfillment ServiceLedgerWallet ServicePayment ServiceOMSExchange HubRewards PortalPayout API, old worldFulfillment ServiceLedgerWallet ServicePayment ServiceOMSExchange HubRewards PortalInterim: the portal takes the rate from Fixer insteadOpen: does Payment validate the quote id?loop[Until final status]Proposed answer, open decision 7: result goes to OMS onlyalt[Payout paid][Failed or unclaimed]Payment rejects a second capture and any capture after a releaseUser selects the wallet at checkout1Quote request, 100 EUR to AED2Rate plus markup, quote group id, 5 min expiry3Show wallet amount, user confirms4Create order, quote id, wallet id5Hold, order line id, wallet amount, quote id6Hold amount in AED, check balance, frozen, currency7Record hold with rate8Hold id9Forward order with hold id10POST payout, 100 EUR11GET payout status12Result: order line id, status, provider ref, timestamp13Record fulfilment status14Capture, hold id, key = order line id + capture15Capture the hold16Record capture, same rate17Captured event18Release, hold id, key = order line id + release, reason19Release the hold20Record release21Released event22Record payment status, separate field23Final status and receipt24
      Life of a hold

      quote taken by the calling service

      hold accepted

      quote not used in 5 minutes

      OMS sends Capture (paid)

      OMS sends Release (failed, unclaimed)

      no final status in time

      Ops confirms paid, OMS sends Capture

      Ops confirms not paid, OMS sends Release

      Quoted

      Held

      Expired

      Captured

      Released

      Review

      A late paid goes to Ops review through OMS

      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.

      1. Phase 0 · Rate source decided

        one callThu 26 Novdecided

        Interim: Fixer direct. Target: Exchange Hub quote. Result goes on W1-1718.

      2. Phase 1 · Payout FX on Fixer direct

        in the payouts planAhmad Wshah

        The portal calls Fixer, adds the markup and shows the wallet amount. OMS stores the rate used. Owners: Rewards Portal and OMS.

      3. Phase 2 · Hold, capture and release

        not estimatedopen

        Payment and Wallet build hold, capture and release. OMS sends the capture and release commands once it has the fulfilment result. Owner: Shatnawi.

      4. Phase 3 · Payouts live, PayPal first

        not estimatedafter Phase 2the ticket ships here

        W1-1602: Portal, OMS, Fulfillment and the Payout API on the new money path, with the Fixer rate. Owners: OMS team, Portal team.

      5. Phase 4 · Exchange Hub in production

        Fayezabout 7 to 8 Jan 2027

        The 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.

      6. Phase 5 · One path for everything

        not estimatedlater

        Ledger report for Finance. Gift cards and wallet top-up move to the same quote. Owners: open.

      if hold is late

      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:

      #DecisionCurrent positionWho decides
      1Hold, then capture or release for payouts. Deduct for instant productsProposedTamer, Shatnawi
      2Does Payment validate the quote id?Hamd: yes. Tamer: Payment only chargesTamer, Hamd, Fayez
      3Fulfilment result to OMS only, then OMS sends capture or releaseTo confirm with Tamer and ShatnawiTamer, Shatnawi, Brian
      4When does PayPal take Merit's money, at send or at claim?Decides capture on sent or paidHabeeb
      5Unclaimed PayPal payout after 30 days: refund or breakageToday's client portal keeps itHabeeb
      6Currency of the request amountProposed: the payout currencyHabeeb, Ahmad Wshah
      7Owner of the Ledger, finance settlement and markup profitNo ownerBrian, Marthino, Finance
      8Bring the Exchange Hub deployment forwardBlocks Ecommerce and the payouts targetHabeeb, Fayez

      Next steps

      #StepOwnerDate
      1Create the Slack channel and invite the meetingTamer LabnaThu 26 Nov
      2Post this proposal and the MoM in the channelBrianWhen the channel exists
      3Check the markup direction in the Exchange HubHamd ZulfiqarBefore Mon 30 Nov
      4Ask Habeeb about the Exchange Hub priorityFayez Abu HelowNot stated
      5Ask Habeeb about unclaimed PayPal payoutsTamer LabnaNot stated
      6Ask Habeeb when PayPal takes Merit's moneyBrianIn the Slack channel
      7Confirm the fulfilment result route (decision 3)Tamer Labna, Mohammad ShatnawiIn the Slack channel
      8Build payout FX on Fixer directAhmad WshahIn the payouts plan
      9Write the result on W1-1718 and update the dated planBrian, Ahmad Wshah26 Nov
      10Share the Exchange Hub first production dateFayez Abu HelowAbout 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.