Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 2.17 KB

CheckOrderCancelableApi.md

File metadata and controls

66 lines (45 loc) · 2.17 KB

Grab\GrabfoodApiSdk\CheckOrderCancelableApi

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

Method HTTP request Description
checkOrderCancelable() GET /partner/v1/order/cancelable Check order cancelable

checkOrderCancelable()

checkOrderCancelable($authorization, $order_id, $merchant_id): \Grab\GrabfoodApiSdk\Model\CheckOrderCancelableResponse

Check order cancelable

Example

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



$apiInstance = new Grab\GrabfoodApiSdk\Api\CheckOrderCancelableApi(
    // 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.
$order_id = 'order_id_example'; // string
$merchant_id = 1-CYNGRUNGSBCCC; // string | The merchant's ID that is in GrabFood's database.

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

Parameters

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

Return type

\Grab\GrabfoodApiSdk\Model\CheckOrderCancelableResponse

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]