Merchant order overviewEdit on GitHub
In the marketplace, when a buyer goes through checkout, the Marketplace order is created. Such an order can contain offers and products from different merchants. The part of the order that belongs to a certain merchant is called merchant order. The merchant order created in the system after the Marketplace order is has been placed. Thus, each merchant order contains at least one item from the Marketplace order.
Merchant order calculation
The merchant order consists of the merchant order items, which are the items (products) purchased by the customer. All the calculations for the merchant order items are performed using the product offer, merchant products price, and merchant order totals. These are the initial totals that are calculated according to the product offer purchased:
|Canceled total||Amount to be returned in case the order was canceled.
|Discount total||Total discount amount.|
|Merchant Order grand total||Total amount the customer needs to pay after the discounts have been applied.|
|Merchant Order expense total||Total expenses amount (e.g., shipping).|
|Merchant Order refund total||Total refundable amount.|
|Merchant Order subtotal||Total amount before taxes and discounts.|
|Merchant Order tax total||Total tax amount from the grand total.|
|Marketplace Operator fees total||Total amount of fees paid to the Marketplace administrator.|
Rounding logic for the calculations is the same as the one used for the Marketplace order. See Rounding in the Marketplace Order feature overview for details.