Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 2.04 KB

File metadata and controls

37 lines (28 loc) · 2.04 KB

OrderStateRequest

This request pushes the state of an order on GrabFood.

Properties

Name Type Description Notes
merchant_id str The merchant's ID that is in GrabFood's database.
partner_merchant_id str The merchant's ID that is on the partner's database. [optional]
order_id str The order's ID that is returned from GrabFood. Refer to FAQs for more details about orderID and shortOrderNumber.
state str The current order state. For takeaway orders, only `DELIVERED` and `CANCELLED` states are pushed.
driver_eta int The driver's estimated of arrival (ETA) in seconds when the state is `DRIVER_ALLOCATED`. [optional]
code str The current order's sub-state. This is in free text so you should only use for reference. Grab may use this for troubleshooting. If you want some analysis, kindly use `state` instead. [optional]
message str Additional information to explain the current order state. May be system status or human entered message. [optional]
order Order [optional]

Example

from grabfood.models.order_state_request import OrderStateRequest

# TODO update the JSON string below
json = "{}"
# create an instance of OrderStateRequest from a JSON string
order_state_request_instance = OrderStateRequest.from_json(json)
# print the JSON string representation of the object
print(OrderStateRequest.to_json())

# convert the object into a dict
order_state_request_dict = order_state_request_instance.to_dict()
# create an instance of OrderStateRequest from a dict
order_state_request_from_dict = OrderStateRequest.from_dict(order_state_request_dict)

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