Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 2.37 KB

UpdateMenuRequest.md

File metadata and controls

18 lines (15 loc) · 2.37 KB

# UpdateMenuRequest

Properties

Name Type Description Notes
merchant_id string The merchant's ID that is in GrabFood's database.
field string The record type that you want to update.
id string The record's ID on the partner system. For example, the modifier id in case type is MODIFIER.
price int The record's price in minor unit format. [optional]
available_status string The record's availableStatus. [optional]
max_stock int Available stocks under inventory for this item. Auto reduce when there is order placed for this item. Note: It is necessary to set `maxStock` to 0 if the `availableStatus` of the item is "UNAVAILABLE". Item will be set to "AVAILABLE" if `maxStock` > 0. [optional]
advanced_pricings \Grab\GrabfoodApiSdk\Model\UpdateAdvancedPricing[] Price configuration (in minor unit) for different service, order type and channel combination. If a service type does not have a specified price, it will utilize the default price of the item. [optional]
purchasabilities \Grab\GrabfoodApiSdk\Model\UpdatePurchasability[] Purchasability is set to true by default for all service type, unless it is explicitly set to false. Modifier will reuse it’s item’s purchasability. [optional]
name string Only required when updating modifiers. The record's name. Used as identifier to locate the correct record.
is_free bool Allows the modifier's price to be explicitly set as zero. Possible values are as follows: * `isFree` && `price == 0` sets the modifier's price to zero. * `isFree` && `price > 0` returns an error message that "price cannot be set to > 0, if modifier is free”. * `!isFree` && `price > 0` sets the modifier's price to the defined price. * `!isFree` && `price == 0` does not update the modifier's price and reuses the existing price. [optional]

[Back to Model list] [Back to API list] [Back to README]