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
Price stored without tax. VAT added once from the client country rate. Delivery taxed as its own line. Customer sees the VAT-inclusive total.
| # | Principle |
|---|---|
| P1 | Every stored price is without tax |
| P2 | VAT is computed once, by the Platform Tax Service, at checkout |
| P3 | Two VAT streams that never merge: seller_vat on the goods, merit_vat on Merit's charges |
| P4 | Everything is frozen on the order line at confirmation |
| P5 | The market decides the display: KSA shows prices including VAT |
| P6 | Sellers state unit price and VAT separately |
| P7 | Every product has a tax class, backfilled to standard |
| P8 | OMS holds the complete record; the ERP reads it directly |
| Setting | Lives in |
|---|---|
| Country, currency, display mode, delivery fee | Market construct (Ecommerce Core) |
| VAT rate per country and tax class, with dates | Platform Tax Service tax_rules |
| Tax class per product | PIM |
| Seller VAT status and TRN | Seller registration on the super platform |
| Take rate, markup or subsidy, transaction fee | LiveOps pricing |
| Discount and who funds it | Promo Engine |
| Frozen price and tax per order line | OMS |
| Stage | Amount |
|---|---|
| Seller unit price, excl. VAT | 200.00 |
| Seller VAT 15% | 30.00 |
| Commission 10% (from the seller) | 20.00 |
| Markup 5% | 10.00 |
| Consumer price, excl. VAT | 210.00 |
| Delivery 25.00 incl. VAT, excl. part | 21.74 |
| Transaction fee | 2.00 |
| Total excl. VAT | 233.74 |
| seller_vat | 30.00 |
| merit_vat (1.50 + 3.26 + 0.30) | 5.06 |
| Customer pays | 268.80 |
| Line | Shown |
|---|---|
| Product | 241.50 |
| Delivery | 25.00 |
| Transaction fee | 2.30 |
| Total | 268.80 |
| includes VAT 35.06 |
| Line | Shown |
|---|---|
| Product | 210.00 |
| Delivery | 21.74 |
| Transaction fee | 2.00 |
| VAT | 35.06 |
| Total | 268.80 |
Same order, same total. Only the presentation changes.
Seller 210.00. Merit keeps 58.80, remits 7.67 VAT, nets 51.13. Merit bears the VAT on its commission (DEC-0489).
| Funded by | seller_vat | merit_vat | Total VAT | Customer pays |
|---|---|---|---|---|
| Merit | 150.00 | 3.00 | 153.00 | 1,173.00 |
| Tenant or client (Al Fursan) | 150.00 | 18.00 | 168.00 | 1,188.00 |
| Merchant | 135.00 | 18.00 | 153.00 | 1,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.
| Team | Change | IDs |
|---|---|---|
| Seller Portal | Supplier API writes price without VAT. Field reads "Unit price (excl. VAT)" and shows seller VAT | TP-01, TP-04 |
| Ecommerce Core | Webhook writes base without tax, DECIMAL 2. Market carries display mode | TP-02, TP-03, TP-10 |
| Super platform | Seller VAT status, TRN and certificate at registration | TP-05 |
| PIM and LiveOps | Tax class per product, backfill to standard | TP-06, TP-07 |
| Platform Tax Service | Rules by country and tax class; quote returns two streams | TP-08, TP-09 |
| Storefront and B2C | Render the market display mode | TP-11 |
| OMS | Freeze pricing ledger and tax blocks; API for the ERP; refunds per stream | TP-12 to TP-14 |
Full PRD: https://docs.google.com/document/d/1MtQ2-YLJ_-LD5jyOt5yUCkG_cdcqHBfItUczGbKwjQg/edit