SpringImport\Swagger\Magento2\Client\QuoteShippingMethodManagementV1Api
May 18, 2017 ยท View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| quoteShippingMethodManagementV1EstimateByAddressIdPost | POST /V1/carts/{cartId}/estimate-shipping-methods-by-address-id | |
| quoteShippingMethodManagementV1EstimateByAddressIdPost_0 | POST /V1/carts/mine/estimate-shipping-methods-by-address-id | |
| quoteShippingMethodManagementV1GetListGet | GET /V1/carts/{cartId}/shipping-methods | |
| quoteShippingMethodManagementV1GetListGet_0 | GET /V1/carts/mine/shipping-methods |
quoteShippingMethodManagementV1EstimateByAddressIdPost
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[] quoteShippingMethodManagementV1EstimateByAddressIdPost(body)
Estimate shipping
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteShippingMethodManagementV1Api();
$cartId = 56; // int | The shopping cart ID.
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body52(); // \SpringImport\Swagger\Magento2\Client\Model\Body52 |
try {
$result = $api_instance->quoteShippingMethodManagementV1EstimateByAddressIdPost($cartId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteShippingMethodManagementV1Api->quoteShippingMethodManagementV1EstimateByAddressIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | The shopping cart ID. | |
| body | \SpringImport\Swagger\Magento2\Client\Model\Body52 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
quoteShippingMethodManagementV1EstimateByAddressIdPost_0
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[] quoteShippingMethodManagementV1EstimateByAddressIdPost_0($body)
Estimate shipping
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteShippingMethodManagementV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body53(); // \SpringImport\Swagger\Magento2\Client\Model\Body53 |
try {
$result = $api_instance->quoteShippingMethodManagementV1EstimateByAddressIdPost_0($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteShippingMethodManagementV1Api->quoteShippingMethodManagementV1EstimateByAddressIdPost_0: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | \SpringImport\Swagger\Magento2\Client\Model\Body53 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
quoteShippingMethodManagementV1GetListGet
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[] quoteShippingMethodManagementV1GetListGet($cartId)
Lists applicable shipping methods for a specified quote.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteShippingMethodManagementV1Api();
$cartId = 56; // int | The shopping cart ID.
try {
$result = $api_instance->quoteShippingMethodManagementV1GetListGet($cartId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteShippingMethodManagementV1Api->quoteShippingMethodManagementV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | The shopping cart ID. |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
quoteShippingMethodManagementV1GetListGet_0
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[] quoteShippingMethodManagementV1GetListGet_0()
Lists applicable shipping methods for a specified quote.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteShippingMethodManagementV1Api();
try {
$result = $api_instance->quoteShippingMethodManagementV1GetListGet_0();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteShippingMethodManagementV1Api->quoteShippingMethodManagementV1GetListGet_0: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
This endpoint does not need any parameter.
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataShippingMethodInterface[]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]