OrderCalculateCalculations
- amountType: integer
_for _payment Order amount for payment
- calculationType: string
_method Whether the tax is included in the product prices ("inclusive") or taxes are not included in product prices and need to be calculated on top ("exclusive")
- customerType: string
_account _id - deliveryType: integer
_fee delivery fee from venue to customer address
- discountType: integer
Order total discount
- externalType: integerFormat: int32
_payment _amount min:0amount of processed external payment
- minimumType: integer
_surcharge if subtotal is less than minimal_order_ammount then minimun_surcharge is added to total
- subsidyType: integer
Order subsidy
- subtotalType: integer
Order subtotal (lowest unit), excluding discounts, taxes and fees
- taxType: integer
Total tax amount (lowest unit) of the order - depending on calculation_method is included in subtotal or not
- taxType: integer
_exemption Order tax exemption
- taxType: object
_rates Properties: 1Tax amount (lowest unit) by tax percentage - depending on your region / country, a tax breakdown may be required to be shown to your customer
- tipType: integer
Order tip amount
- tipType: numberFormat: float
_rate - totalType: integer
All-in payable total (lowest unit) of the order, including discounts, taxes and fees
{
"calculation_method": "inclusive",
"subtotal": 17692,
"discount": 0,
"subsidy": 0,
"external_payment_amount": 300,
"delivery_fee": 0,
"minimum_surcharge": 0,
"tip": 0,
"tip_rate": 0,
"total": 17692,
"amount_for_payment": 17692,
"tax": 842,
"tax_exemption": 0,
"tax_rates": {
"10": 880
},
"customer_account_id": "6735e303-50a1-4887-9b11-915a6919cc66"
}
