Skip to content

Latest commit

 

History

History
118 lines (80 loc) · 5.19 KB

QuoteShipmentEstimationV1Api.md

File metadata and controls

118 lines (80 loc) · 5.19 KB

Krak\MagentoApiClient\QuoteShipmentEstimationV1Api

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

Method HTTP request Description
quoteShipmentEstimationV1EstimateByExtendedAddressPost POST /V1/carts/{cartId}/estimate-shipping-methods
quoteShipmentEstimationV1EstimateByExtendedAddressPost_0 POST /V1/carts/mine/estimate-shipping-methods

quoteShipmentEstimationV1EstimateByExtendedAddressPost

\Krak\MagentoApiClient\Model\QuoteDataShippingMethodInterface[] quoteShipmentEstimationV1EstimateByExtendedAddressPost($cartId, $quoteShipmentEstimationV1EstimateByExtendedAddressPostBody)

Estimate shipping by address and return list of available shipping methods

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\QuoteShipmentEstimationV1Api(
    // 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 | 
$quoteShipmentEstimationV1EstimateByExtendedAddressPostBody = new \Krak\MagentoApiClient\Model\QuoteShipmentEstimationV1EstimateByExtendedAddressPostBody(); // \Krak\MagentoApiClient\Model\QuoteShipmentEstimationV1EstimateByExtendedAddressPostBody | 

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

Parameters

Name Type Description Notes
cartId string
quoteShipmentEstimationV1EstimateByExtendedAddressPostBody \Krak\MagentoApiClient\Model\QuoteShipmentEstimationV1EstimateByExtendedAddressPostBody [optional]

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]

quoteShipmentEstimationV1EstimateByExtendedAddressPost_0

\Krak\MagentoApiClient\Model\QuoteDataShippingMethodInterface[] quoteShipmentEstimationV1EstimateByExtendedAddressPost_0($quoteShipmentEstimationV1EstimateByExtendedAddressPostBody)

Estimate shipping by address and return list of available shipping methods

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\QuoteShipmentEstimationV1Api(
    // 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
);
$quoteShipmentEstimationV1EstimateByExtendedAddressPostBody = new \Krak\MagentoApiClient\Model\QuoteShipmentEstimationV1EstimateByExtendedAddressPostBody1(); // \Krak\MagentoApiClient\Model\QuoteShipmentEstimationV1EstimateByExtendedAddressPostBody1 | 

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

Parameters

Name Type Description Notes
quoteShipmentEstimationV1EstimateByExtendedAddressPostBody \Krak\MagentoApiClient\Model\QuoteShipmentEstimationV1EstimateByExtendedAddressPostBody1 [optional]

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]