Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 2.14 KB

QuoteGuestShippingMethodManagementV1Api.md

File metadata and controls

62 lines (41 loc) · 2.14 KB

Krak\MagentoApiClient\QuoteGuestShippingMethodManagementV1Api

All URIs are relative to http://ce22.vg/index.php/rest/default

Method HTTP request Description
quoteGuestShippingMethodManagementV1GetListGet GET /V1/guest-carts/{cartId}/shipping-methods

quoteGuestShippingMethodManagementV1GetListGet

\Krak\MagentoApiClient\Model\QuoteDataShippingMethodInterface[] quoteGuestShippingMethodManagementV1GetListGet($cartId)

List applicable shipping methods for a specified quote.

Example

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

// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Krak\MagentoApiClient\Api\QuoteGuestShippingMethodManagementV1Api(
    // 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(),
    $config
);
$cartId = "cartId_example"; // string | The shopping cart ID.

try {
    $result = $apiInstance->quoteGuestShippingMethodManagementV1GetListGet($cartId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteGuestShippingMethodManagementV1Api->quoteGuestShippingMethodManagementV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
cartId string The shopping cart ID.

Return type

\Krak\MagentoApiClient\Model\QuoteDataShippingMethodInterface[]

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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