Skip to content

Files

Latest commit

cb63d9f · Feb 24, 2025

History

History
77 lines (50 loc) · 2.59 KB

PauseStoreApi.md

File metadata and controls

77 lines (50 loc) · 2.59 KB

grabfood.PauseStoreApi

All URIs are relative to https://partner-api.grab.com/grabfood-sandbox

Method HTTP request Description
pause_store PUT /partner/v1/merchant/pause Pause store

pause_store

pause_store(content_type, authorization, pause_store_request)

Pause store

Example

import grabfood
from grabfood.models.pause_store_request import PauseStoreRequest
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.PauseStoreApi(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.
    pause_store_request = grabfood.PauseStoreRequest() # PauseStoreRequest | 

    try:
        # Pause store
        api_instance.pause_store(content_type, authorization, pause_store_request)
    except Exception as e:
        print("Exception when calling PauseStoreApi->pause_store: %s\n" % e)

Parameters

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.
pause_store_request PauseStoreRequest

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 Successful. No content returned. -

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