All URIs are relative to http://t213.vg/rest/default
Method | HTTP request | Description |
---|---|---|
quoteCartManagementV1AssignCustomerPut | PUT /V1/carts/{cartId} | |
quoteCartManagementV1CreateEmptyCartForCustomerPost | POST /V1/carts/mine | |
quoteCartManagementV1CreateEmptyCartForCustomerPost_0 | POST /V1/customers/{customerId}/carts | |
quoteCartManagementV1CreateEmptyCartPost | POST /V1/carts/ | |
quoteCartManagementV1GetCartForCustomerGet | GET /V1/carts/mine | |
quoteCartManagementV1PlaceOrderPut | PUT /V1/carts/mine/order | |
quoteCartManagementV1PlaceOrderPut_0 | PUT /V1/carts/{cartId}/order |
bool quoteCartManagementV1AssignCustomerPut($cartId, $body)
Assigns a specified customer to a specified shopping cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartManagementV1Api();
$cartId = 56; // int | The cart ID.
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body46(); // \SpringImport\Swagger\Magento2\Client\Model\Body46 |
try {
$result = $api_instance->quoteCartManagementV1AssignCustomerPut($cartId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartManagementV1Api->quoteCartManagementV1AssignCustomerPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cartId | int | The cart ID. | |
body | \SpringImport\Swagger\Magento2\Client\Model\Body46 | [optional] |
bool
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int quoteCartManagementV1CreateEmptyCartForCustomerPost()
Creates an empty cart and quote for a specified customer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartManagementV1Api();
try {
$result = $api_instance->quoteCartManagementV1CreateEmptyCartForCustomerPost();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartManagementV1Api->quoteCartManagementV1CreateEmptyCartForCustomerPost: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int quoteCartManagementV1CreateEmptyCartForCustomerPost_0($customerId)
Creates an empty cart and quote for a specified customer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartManagementV1Api();
$customerId = 56; // int | The customer ID.
try {
$result = $api_instance->quoteCartManagementV1CreateEmptyCartForCustomerPost_0($customerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartManagementV1Api->quoteCartManagementV1CreateEmptyCartForCustomerPost_0: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customerId | int | The customer ID. |
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int quoteCartManagementV1CreateEmptyCartPost()
Creates an empty cart and quote for a guest.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartManagementV1Api();
try {
$result = $api_instance->quoteCartManagementV1CreateEmptyCartPost();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartManagementV1Api->quoteCartManagementV1CreateEmptyCartPost: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartInterface quoteCartManagementV1GetCartForCustomerGet()
Returns information for the cart for a specified customer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartManagementV1Api();
try {
$result = $api_instance->quoteCartManagementV1GetCartForCustomerGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartManagementV1Api->quoteCartManagementV1GetCartForCustomerGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartInterface
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int quoteCartManagementV1PlaceOrderPut($body)
Places an order for a specified cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartManagementV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body48(); // \SpringImport\Swagger\Magento2\Client\Model\Body48 |
try {
$result = $api_instance->quoteCartManagementV1PlaceOrderPut($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartManagementV1Api->quoteCartManagementV1PlaceOrderPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \SpringImport\Swagger\Magento2\Client\Model\Body48 | [optional] |
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int quoteCartManagementV1PlaceOrderPut_0($cartId, $body)
Places an order for a specified cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartManagementV1Api();
$cartId = 56; // int | The cart ID.
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body49(); // \SpringImport\Swagger\Magento2\Client\Model\Body49 |
try {
$result = $api_instance->quoteCartManagementV1PlaceOrderPut_0($cartId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartManagementV1Api->quoteCartManagementV1PlaceOrderPut_0: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cartId | int | The cart ID. | |
body | \SpringImport\Swagger\Magento2\Client\Model\Body49 | [optional] |
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]