Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.92 KB

File metadata and controls

20 lines (12 loc) · 1.92 KB

OrderItem

Properties

Name Type Description Notes
id String The item's externalID in the partner system.
grabItemID String The item's ID in Grab system. Partner can use this field in the `EditOrder` endpoint. Note: The index number (after `#`) is different for the same item with different modifiers. This helps identify items when editing complex orders. This is currently controlled by feature flag until full rollout, for non whitelisted partners, the '#' and index number will not be included.
quantity Integer The number of the item ordered.
price Long The price for a single item along with its associated modifiers in minor unit and tax-inclusive. ``` price = Item price(tax inclusive) + Modifier price(tax inclusive) (22411.06)+(1651.06)=2550
tax Long Tax in minor format for a single item total items along with its associated modifiers (multiply by quantity) . `0` if tax configuration is absent. Refer to FAQs for more details about tax. Note: Currently in Staging environment, the tax is calculated based on the single item. In Production environment, the tax is calculated based on the total items (multiply by quantity). There will be a change in the future to match the logic in Staging environment. ``` tax = Item tax + Modifier tax (22410.06)+(1650.06) * 1 =144
specifications String An extra note for the merchant. Empty if no note from consumer. [optional]
outOfStockInstruction OutOfStockInstruction [optional]
modifiers List<OrderItemModifier> An array of JSON objects modifiers. [optional]