All URIs are relative to https://partner-api.grab.com/grabfood-sandbox
Method | HTTP request | Description |
---|---|---|
mark_order_ready | POST /partner/v1/orders/mark | Mark order as ready |
mark_order_ready(content_type, authorization, mark_order_request)
Mark order as ready
import grabfood
from grabfood.models.mark_order_request import MarkOrderRequest
from grabfood.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://partner-api.grab.com/grabfood-sandbox
# See configuration.py for a list of all supported configuration parameters.
configuration = grabfood.Configuration(
host = "https://partner-api.grab.com/grabfood-sandbox"
)
# Enter a context with an instance of the API client
with grabfood.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = grabfood.MarkOrderReadyApi(api_client)
content_type = 'application/json' # str | The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.
authorization = 'Bearer <ACCESS_TOKEN_HERE>' # str | Specify the generated authorization token of the bearer type.
mark_order_request = grabfood.MarkOrderRequest() # MarkOrderRequest |
try:
# Mark order as ready
api_instance.mark_order_ready(content_type, authorization, mark_order_request)
except Exception as e:
print("Exception when calling MarkOrderReadyApi->mark_order_ready: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
content_type | str | The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats. | |
authorization | str | Specify the generated authorization token of the bearer type. | |
mark_order_request | MarkOrderRequest |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Successful. No content returned. | - |
400 | invalid_argument | Code |
[Back to top] [Back to API list] [Back to Model list] [Back to README]