Migrate to Order Total v2
Move from deprecated orderTotal to orderTotalV2 for clearer financial breakdown on orders.
Overview
OrderTotal is being replaced by OrderTotalV2, which separates customer totals, payments, service provider charges, and payout with composable breakdown lines.
Before you begin
- You currently send
orderTotalon order create or update - Ability to validate payloads with a test store
Guidelines
- Send at least one of
orderTotalororderTotalV2. Both are accepted during migration; when both are present,orderTotalV2takes precedence. Prefer V2 alone for new work. - Prefer separate
VALUEandTAXlines instead ofVALUE_WITH_TAXwhen you know the split. UseVALUE_WITH_TAXonly when the breakdown is unknown. - Do not send duplicate values. Customer total is the sum of
customerTotalfields except those marked asVAT.
orderTotalV2 structure (summary)
customerTotal— food sales, fees, tips, etc., with optional nested breakdown (e.g.foodSales.breakdownwithsubTypeVALUE/VAT).customerPayment— payment and prepayment detail.serviceProviderCharge— provider charge breakdown.payout— payout breakdown.
Full field definitions: API reference.
Steps
- Map existing
orderTotalfields toorderTotalV2breakdown lines. - Send test orders with
orderTotalV2only. - Validate totals match your legacy payloads.
- Roll out per your release process.
Verify
Compare order financials in Otter with your source system for several order types (tax-inclusive, discounts, adjustments).