Order Creation Flow - Migration to Order Total V2
OrderTotal object containing financial payload for Order is being discontinued, and a new object OrderTotalV2 is taking its place. This new object provides better breakdown of financial values.
OrderTotalV2 properties
- customerTotal Customer total breakdown: food sales, service fee, tip for restaurant/driver, etc.. Allows ingestion of composite values. Example:
"foodSales": {
"breakdown": [
{
"subType": "VALUE",
"name": "Hamburger",
"value": 3.40
},
{
"subType": "VAT",
"name": "food sales VAT",
"value": 0.6
}
]
}
customerPaymentCustomer payment details (payment, prepayment, amount to return, etc..)serviceProviderChargeBreakdown of service provider charges. Allows ingestion of composite valuespayoutBreakdown of the payout.
Guidelines
- one of
orderTotalororderTotalV2must be set inOrderobject - Instead of sending
VALUE_WITH_TAXsend two separate lines forVALUEandTAXaccordingly. Only useVALUE_WITH_TAXwhen breakdown is unknown. - Do not send duplicate values, customer total calculated as a sum of all fields of
customerTotalexcept those marked asVAT