Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 2 KB

GetStoreStatusApi.md

File metadata and controls

64 lines (43 loc) · 2 KB

Grab\GrabfoodApiSdk\GetStoreStatusApi

All URIs are relative to https://partner-api.grab.com/grabfood-sandbox, except if the operation defines another base path.

Method HTTP request Description
getStoreStatus() GET /partner/v1/merchants/{merchantID}/store/status Get Store Status

getStoreStatus()

getStoreStatus($authorization, $merchant_id): \Grab\GrabfoodApiSdk\Model\StoreStatusResponse

Get Store Status

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Grab\GrabfoodApiSdk\Api\GetStoreStatusApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$authorization = Bearer <ACCESS_TOKEN_HERE>; // string | Specify the generated authorization token of the bearer type.
$merchant_id = 1-CYNGRUNGSBCCC; // string | The merchant's ID that is in GrabFood's database.

try {
    $result = $apiInstance->getStoreStatus($authorization, $merchant_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GetStoreStatusApi->getStoreStatus: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
authorization string Specify the generated authorization token of the bearer type.
merchant_id string The merchant's ID that is in GrabFood's database.

Return type

\Grab\GrabfoodApiSdk\Model\StoreStatusResponse

Authorization

No authorization required

HTTP request headers

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

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