This request cancels an order on GrabFood.
Name | Type | Description | Notes |
---|---|---|---|
order_id | str | The order's ID that is returned from GrabFood. Refer to FAQs for more details about orderID and shortOrderNumber. | |
merchant_id | str | The merchant's ID that is in GrabFood's database. | |
cancel_code | CancelCode |
from grabfood.models.cancel_order_request import CancelOrderRequest
# TODO update the JSON string below
json = "{}"
# create an instance of CancelOrderRequest from a JSON string
cancel_order_request_instance = CancelOrderRequest.from_json(json)
# print the JSON string representation of the object
print(CancelOrderRequest.to_json())
# convert the object into a dict
cancel_order_request_dict = cancel_order_request_instance.to_dict()
# create an instance of CancelOrderRequest from a dict
cancel_order_request_from_dict = CancelOrderRequest.from_dict(cancel_order_request_dict)