Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 2.21 KB

UpdateMenuItem.md

File metadata and controls

41 lines (25 loc) · 2.21 KB

UpdateMenuItem

Information about the GrabFood client updating their food menu.

Properties

Name Type Description Notes
merchantID String The merchant's ID that is in GrabFood's database.
field FieldEnum The record type that you want to update.
id String The record's ID on the partner system. For example, the item id in case type is ITEM.
price Long The record's price in minor unit format. [optional]
availableStatus AvailableStatusEnum The record's availableStatus. Note: In order to set an item as "UNAVAILABLE", it is required to update both the `availableStatus` and `maxStock` fields, whereby the `maxStock` value should be set to 0. [optional]
maxStock Long 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]
advancedPricings List<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 List<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]

Enum: FieldEnum

Name Value
ITEM "ITEM"
UNKNOWN_DEFAULT_OPEN_API "unknown_default_open_api"

Enum: AvailableStatusEnum

Name Value
AVAILABLE "AVAILABLE"
UNAVAILABLE "UNAVAILABLE"
UNAVAILABLETODAY "UNAVAILABLETODAY"
UNKNOWN_DEFAULT_OPEN_API "unknown_default_open_api"