One pricing and tax model for the E-commerce Solution

From the seller's price to the customer's payment, the invoice and the ERP

Brian Arfi Faridhi, Product Director. 9 Oct 2026. PRD: Pricing and Tax Model v0.2

Keys: right arrow or space = next, left arrow = back, Esc = overview, F = fullscreen, N = notes, T = theme

Today one price field holds two different meanings

The legacy Online Catalogue already does this right

Legacy VAT flow

Price stored without tax. VAT added once from the client country rate. Delivery taxed as its own line. Customer sees the VAT-inclusive total.

Eight principles

#Principle
P1Every stored price is without tax
P2VAT is computed once, by the Platform Tax Service, at checkout
P3Two VAT streams that never merge: seller_vat on the goods, merit_vat on Merit's charges
P4Everything is frozen on the order line at confirmation
P5The market decides the display: KSA shows prices including VAT
P6Sellers state unit price and VAT separately
P7Every product has a tax class, backfilled to standard
P8OMS holds the complete record; the ERP reads it directly

Each setting has exactly one home

SettingLives in
Country, currency, display mode, delivery feeMarket construct (Ecommerce Core)
VAT rate per country and tax class, with datesPlatform Tax Service tax_rules
Tax class per productPIM
Seller VAT status and TRNSeller registration on the super platform
Take rate, markup or subsidy, transaction feeLiveOps pricing
Discount and who funds itPromo Engine
Frozen price and tax per order lineOMS

How the parts talk to each other

Topography

Example A: how 200.00 becomes 268.80

StageAmount
Seller unit price, excl. VAT200.00
Seller VAT 15%30.00
Commission 10% (from the seller)20.00
Markup 5%10.00
Consumer price, excl. VAT210.00
Delivery 25.00 incl. VAT, excl. part21.74
Transaction fee2.00
Total excl. VAT233.74
seller_vat30.00
merit_vat (1.50 + 3.26 + 0.30)5.06
Customer pays268.80

What the customer sees depends on the market

KSA: display includes VAT

LineShown
Product241.50
Delivery25.00
Transaction fee2.30
Total268.80
includes VAT 35.06

Exclusive market

LineShown
Product210.00
Delivery21.74
Transaction fee2.00
VAT35.06
Total268.80

Same order, same total. Only the presentation changes.

Who receives what

Money split

Seller 210.00. Merit keeps 58.80, remits 7.67 VAT, nets 51.13. Merit bears the VAT on its commission (DEC-0489).

Discounts: who funds it changes the VAT

Funded byseller_vatmerit_vatTotal VATCustomer pays
Merit150.003.00153.001,173.00
Tenant or client (Al Fursan)150.0018.00168.001,188.00
Merchant135.0018.00153.001,173.00

Goods 1,000.00, markup 100.00, fee 20.00, discount 100.00, KSA 15%. Gift cards: VAT on Merit's margin only, never on face value.

What each team changes

TeamChangeIDs
Seller PortalSupplier API writes price without VAT. Field reads "Unit price (excl. VAT)" and shows seller VATTP-01, TP-04
Ecommerce CoreWebhook writes base without tax, DECIMAL 2. Market carries display modeTP-02, TP-03, TP-10
Super platformSeller VAT status, TRN and certificate at registrationTP-05
PIM and LiveOpsTax class per product, backfill to standardTP-06, TP-07
Platform Tax ServiceRules by country and tax class; quote returns two streamsTP-08, TP-09
Storefront and B2CRender the market display modeTP-11
OMSFreeze pricing ledger and tax blocks; API for the ERP; refunds per streamTP-12 to TP-14

Order of delivery and what is still open

Rollout

  1. Fix the two price paths, before more sellers onboard
  2. Tax class and backfill
  3. Seller VAT status and the two-stream quote
  4. Display mode, before Al Fursan cutover
  5. Frozen record, refunds, settlement, invoice, before the first settlement run

Open

  1. VAT base on a Merit-funded discount (Finance)
  2. Al Fursan invoice issuer, Saudia or Merit today (Finance)
  3. Does checkout add VAT on offers.price today (Zarar)

Full PRD: https://docs.google.com/document/d/1MtQ2-YLJ_-LD5jyOt5yUCkG_cdcqHBfItUczGbKwjQg/edit