All URIs are relative to http://ce22.vg/index.php/rest/default
Method | HTTP request | Description |
---|---|---|
quoteCartItemRepositoryV1DeleteByIdDelete | DELETE /V1/carts/{cartId}/items/{itemId} | |
quoteCartItemRepositoryV1DeleteByIdDelete_0 | DELETE /V1/carts/mine/items/{itemId} | |
quoteCartItemRepositoryV1GetListGet | GET /V1/carts/{cartId}/items | |
quoteCartItemRepositoryV1GetListGet_0 | GET /V1/carts/mine/items | |
quoteCartItemRepositoryV1SavePost | POST /V1/carts/{quoteId}/items | |
quoteCartItemRepositoryV1SavePost_0 | POST /V1/carts/mine/items | |
quoteCartItemRepositoryV1SavePut | PUT /V1/carts/{cartId}/items/{itemId} | |
quoteCartItemRepositoryV1SavePut_0 | PUT /V1/carts/mine/items/{itemId} |
bool quoteCartItemRepositoryV1DeleteByIdDelete($cartId, $itemId)
Removes the specified item from the specified cart.
<?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\QuoteCartItemRepositoryV1Api(
// 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 = 56; // int | The cart ID.
$itemId = 56; // int | The item ID of the item to be removed.
try {
$result = $apiInstance->quoteCartItemRepositoryV1DeleteByIdDelete($cartId, $itemId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1DeleteByIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cartId | int | The cart ID. | |
itemId | int | The item ID of the item to be removed. |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool quoteCartItemRepositoryV1DeleteByIdDelete_0($itemId)
Removes the specified item from the specified cart.
<?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\QuoteCartItemRepositoryV1Api(
// 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
);
$itemId = 56; // int | The item ID of the item to be removed.
try {
$result = $apiInstance->quoteCartItemRepositoryV1DeleteByIdDelete_0($itemId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1DeleteByIdDelete_0: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
itemId | int | The item ID of the item to be removed. |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface[] quoteCartItemRepositoryV1GetListGet($cartId)
Lists items that are assigned to a specified cart.
<?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\QuoteCartItemRepositoryV1Api(
// 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 = 56; // int | The cart ID.
try {
$result = $apiInstance->quoteCartItemRepositoryV1GetListGet($cartId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cartId | int | The cart ID. |
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface[] quoteCartItemRepositoryV1GetListGet_0()
Lists items that are assigned to a specified cart.
<?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\QuoteCartItemRepositoryV1Api(
// 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
);
try {
$result = $apiInstance->quoteCartItemRepositoryV1GetListGet_0();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1GetListGet_0: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePost($quoteId, $quoteCartItemRepositoryV1SavePostBody)
Add/update the specified cart item.
<?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\QuoteCartItemRepositoryV1Api(
// 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
);
$quoteId = "quoteId_example"; // string |
$quoteCartItemRepositoryV1SavePostBody = new \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePostBody(); // \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePostBody |
try {
$result = $apiInstance->quoteCartItemRepositoryV1SavePost($quoteId, $quoteCartItemRepositoryV1SavePostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
quoteId | string | ||
quoteCartItemRepositoryV1SavePostBody | \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePostBody | [optional] |
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePost_0($quoteCartItemRepositoryV1SavePostBody)
Add/update the specified cart item.
<?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\QuoteCartItemRepositoryV1Api(
// 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
);
$quoteCartItemRepositoryV1SavePostBody = new \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePostBody1(); // \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePostBody1 |
try {
$result = $apiInstance->quoteCartItemRepositoryV1SavePost_0($quoteCartItemRepositoryV1SavePostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePost_0: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
quoteCartItemRepositoryV1SavePostBody | \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePostBody1 | [optional] |
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePut($cartId, $itemId, $quoteCartItemRepositoryV1SavePutBody)
Add/update the specified cart item.
<?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\QuoteCartItemRepositoryV1Api(
// 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 |
$itemId = "itemId_example"; // string |
$quoteCartItemRepositoryV1SavePutBody = new \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePutBody(); // \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePutBody |
try {
$result = $apiInstance->quoteCartItemRepositoryV1SavePut($cartId, $itemId, $quoteCartItemRepositoryV1SavePutBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cartId | string | ||
itemId | string | ||
quoteCartItemRepositoryV1SavePutBody | \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePutBody | [optional] |
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePut_0($itemId, $quoteCartItemRepositoryV1SavePutBody)
Add/update the specified cart item.
<?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\QuoteCartItemRepositoryV1Api(
// 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
);
$itemId = "itemId_example"; // string |
$quoteCartItemRepositoryV1SavePutBody = new \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePutBody1(); // \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePutBody1 |
try {
$result = $apiInstance->quoteCartItemRepositoryV1SavePut_0($itemId, $quoteCartItemRepositoryV1SavePutBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePut_0: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
itemId | string | ||
quoteCartItemRepositoryV1SavePutBody | \Krak\MagentoApiClient\Model\QuoteCartItemRepositoryV1SavePutBody1 | [optional] |
\Krak\MagentoApiClient\Model\QuoteDataCartItemInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]