Merit OMS, Payment Service, E-Commerce, legacy team

Partial refunds: we stop needing them

The final plan for refunding one failed item in a multi-item order, without asking any payment rail to refund part of a payment.

RightorSpacenext Leftback Escoverview Ffullscreen Nspeaker notes Tlight or dark
27 Oct 2026. Ticket MSP-579. Source: partial refunds call, 26 Oct.

No payment rail can refund part of a payment

Loyalty partners

Full reversal only. WalaOne, STC Qitaf, Al Rajhi Mokafaa, ANB and BSF cannot reverse part of a points payment.

Moyasar (card)

One refund per payment, partial or full, inside 30 days.

Payment Service

The Refund API refunds a full order only.

Tickets MSP-192 and MSP-195 already create a partial refund record, but nothing pays it out.

Each item owns its payments, so a failed item reverses in full

Item A, SAR 200 CardSAR 120 Miles burnSAR 80 Stays paid Item B, SAR 200 CardSAR 120 Miles burnSAR 80 Stays paid Item C, SAR 100: fails CardSAR 60 Miles burnSAR 40 Both reverse in full One cart, one order, 60% card and 40% Miles Only item C's two payments move.

Split only where the rail cannot refund part of a payment

Order typeHow it is paidA cancelled item gets
Gift card (Al Fursan) card leg depends on Q1One Miles burn per item. One card charge per item, if Moyasar allows it (Q1)Full reversal of its card charge and Miles burn, at once
Physical (Al Fursan)One Miles burn per item, one card payment per orderFull reversal of its Miles burn. The card share is paid once per order, after the order is final
Any order, DPR tenantOne item per order (tenant setting)Full reversal of the order

Rules for every type: refund what the customer paid for the item, including its share of any order promo. Return the original currency. Seller cancellations before delivery only.

Gift cards: a failed item gets card and Miles back within an hour

Checkout
A1 OMSOne order, N items, one item payment each
A2 Miles wrapperN authenticated burns, one per item
A3 Payment ServiceN Moyasar charges, one 3DS depends on Q1
A4 OMSStore leg amounts per item. Points round down
When something fails
A5 Fails at checkoutReverse every leg taken for that item. Paid items stay
A6 Item cancelledFull refund on its card payment id. Full reversal on its Miles id
A7 Past 30 daysNo Moyasar call. Ops queue: CARD_WINDOW_EXPIRED

Physical orders: Miles return at once, the card share waits for the final order

1. Item C cancelled
2. Every item final
3. Card share paid
Miles (per item)
Reverse at onceC's Miles burn, in full
Nothing to do
Nothing to do
Card (per order)
HoldC's share of the one card payment
Order is finalHold cap 7 days, then ops queue
One partial refundOn the order's card payment, within 2 working days

Moyasar takes one refund per payment, so the card share is refunded once, never twice. Until the Refund API takes an amount, OMS gives ops a task with the exact amount.

DPR tenants: one item per order, because every burn needs an OTP

DPR tenants

ANB, BSF, STC Qitaf, Al Rajhi Mokafaa.
Burn happens outside the issuer's storefront, so the customer enters an OTP on every burn. Three items would mean three OTPs and no way to split the payment.

Rule: tenant setting itemsPerOrder = ONE. A cart of three checks out as three orders in one flow, one OTP each.

Why Al Fursan is different

The burn runs with the user's token, from inside the issuer's own storefront.
No OTP, so N burns in one checkout is fine.

Later: the one-item rule lifts per tenant once Merit has authenticated burn endpoints for that tenant's storefront.

No live tenant contract conflicts with one item per order (Brian, 27 Oct). Source: 26 Oct call.

The issuer logic sits in one wrapper now and moves to the Exchange Service later

TODAY OMS E-Commerce wrapperAl Fursan Miles Comarch LATER OMS Exchange ServiceIssuer hub All issuersAl Fursan, ANB, BSF,STC Qitaf, Al Rajhi Mokafaa The wrapper hides burn, reverse, OTP type and refund window behind one interface, so OMS does not change.

Five teams build in parallel; OMS starts next sprint

TeamPersonBuildSize guess
OMSZarar TahirItem payments, refund ledger per leg, tenant settingTwo sprints
Payment ServiceHamd Zulfiqar, Tamer LabnaN charges, full refund per payment, amount on Refund API1 to 2 sprints
E-CommerceAhmad Wshah's teamMiles wrapper: per-item burn and reversalOne sprint
Legacy teamAkshay ChennupatiComarch spec for token burn and reversalKT session
StorefrontMuneeb MeerN-charge checkout copy, ONE tenant flowUnder one sprint
Exchange ServiceHabib and FaizIssuer rules, laterNot in this release
OpsOps lead, KSAWorks the refund queueProcess only
Size guesses are product estimates. Each team confirms its own number.

Six questions are answered, three are open, and only Q1 can change the plan

Q1 open
Moyasar: N charges from one 3DS? If no, A8: one card charge per order (B rules), Miles per item, tenant setting cardChargePerItem.
Q2 answered
Tenant contracts block one item per order? No.
Q3 open
Legal, MLSP-1467. SLA ends 28 Oct. Gates only the wallet phase.
Q4 answered
Partners reverse part of points? No, full only.
Q5 answered
Al Fursan needs OTP per burn? No.
Q6 answered
DPR partners need OTP per burn? Yes.
Q7 answered
Refunds per Moyasar payment? One, within 30 days.
Q8 answered
Burn logic lives in an E-Commerce wrapper, then the Exchange Service.
Q9 open
Who works the ops queue? Ops lead, KSA, names a person before launch.

Start OMS next sprint, and each team confirms its size

Risks

Tintash handover ends 30 Nov. OMS and Payment Service builders sit in that team. Ahmad Wshah names the post-handover owner.
More card charges, more fees. Q1 asks the fee per charge.
DPR tenants lose multi-item carts. Lifts per tenant later.

Next steps

1. Knowledge transfer with the legacy team for the Comarch spec.
2. OMS work starts next sprint.
3. Moyasar answers Q1.
4. Ops lead names the queue owner.
Esc overview, N notes, F fullscreen, T theme