All URIs are relative to http://ce22.vg/index.php/rest/default
Method | HTTP request | Description |
---|---|---|
negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPost | POST /V1/negotiable-carts/{cartId}/estimate-shipping-methods |
\Krak\MagentoApiClient\Model\QuoteDataShippingMethodInterface[] negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPost($cartId, $negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPostBody)
Estimate shipping by address and return list of available shipping methods
<?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\NegotiableQuoteShipmentEstimationV1Api(
// 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 |
$negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPostBody = new \Krak\MagentoApiClient\Model\NegotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPostBody(); // \Krak\MagentoApiClient\Model\NegotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPostBody |
try {
$result = $apiInstance->negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPost($cartId, $negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NegotiableQuoteShipmentEstimationV1Api->negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cartId | string | ||
negotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPostBody | \Krak\MagentoApiClient\Model\NegotiableQuoteShipmentEstimationV1EstimateByExtendedAddressPostBody | [optional] |
\Krak\MagentoApiClient\Model\QuoteDataShippingMethodInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]