B7RDevelopers
ConceptsMoney and VAT
Concepts / Money and VAT

Money and VAT

View .md

How amounts are written

  • Every amount is a string with two decimals, such as "45.00", in Saudi riyals: currency is always SAR. Parse it as a decimal, never as a floating point number.
  • A B7R charge (a cost, a carrier fee, an order total) comes as net, vat and gross. What you pay is gross.
  • Your selling price and the minimum selling price come as one amount: they are your prices, not B7R charges.
A B7R charge
{
  "net": "45.00",
  "vat": "0.00",
  "gross": "45.00",
  "currency": "SAR"
}

VAT

B7R amounts are VAT-inclusive: gross is what you pay, and vat is the VAT inside it, so net is gross minus vat. While vat is "0.00", net equals gross. When B7R charges VAT, vat shows it with no change to the API. Total gross, show vat as it comes, and never compute VAT yourself.

  • An order keeps the amounts of the moment it was placed: later cost or VAT changes never touch it.
  • The wallet balance is a prepayment, not a charge, so it carries no VAT.
  • B7R invoices your account for each order; your shopper's invoice is yours to issue.

The minimum selling price

Every product has a minimum selling price per piece: its cost plus a markup B7R sets and can change. A product priced below it is refused; the selling_price of an order line is your record and is not checked. Read it from the catalog (options[].minimum_selling_price) or a fresh quote, and never store it as a constant. Prices you already set keep working when it changes.

What B7R charges for an order

The cost per piece of each line (base product, technique and zones; colour and size do not change it) times its quantity, plus the fee of the order's carrier. Your profit is your selling price minus those. POST /v1/quote answers the same numbers before any order.

Titles and headings of every page. llms-full.txt holds the full text.