All URIs are relative to https://partner-api.grab.com/grabfood-sandbox, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
updateStoreDeliveryHour() | PUT /partner/v1/merchants/{merchantID}/store/opening-hours | Update Store Delivery Hours |
updateStoreDeliveryHour($content_type, $authorization, $merchant_id, $update_delivery_hour_request): \Grab\GrabfoodApiSdk\Model\UpdateDeliveryHourResponse
Update Store Delivery Hours
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Grab\GrabfoodApiSdk\Api\UpdateStoreDeliveryHourApi(
// 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()
);
$content_type = application/json; // string | 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>; // 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.
$update_delivery_hour_request = new \Grab\GrabfoodApiSdk\Model\UpdateDeliveryHourRequest(); // \Grab\GrabfoodApiSdk\Model\UpdateDeliveryHourRequest
try {
$result = $apiInstance->updateStoreDeliveryHour($content_type, $authorization, $merchant_id, $update_delivery_hour_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UpdateStoreDeliveryHourApi->updateStoreDeliveryHour: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | 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 | string | Specify the generated authorization token of the bearer type. | |
merchant_id | string | The merchant's ID that is in GrabFood's database. | |
update_delivery_hour_request | \Grab\GrabfoodApiSdk\Model\UpdateDeliveryHourRequest |
\Grab\GrabfoodApiSdk\Model\UpdateDeliveryHourResponse
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]