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($authorization, $merchant_id): \Grab\GrabfoodApiSdk\Model\StoreStatusResponse
Get Store Status
<?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;
}
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. |
\Grab\GrabfoodApiSdk\Model\StoreStatusResponse
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]