Skip to content

Latest commit

 

History

History
322 lines (209 loc) · 9.57 KB

QuoteCartManagementV1Api.md

File metadata and controls

322 lines (209 loc) · 9.57 KB

SpringImport\Swagger\Magento2\Client\QuoteCartManagementV1Api

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

quoteCartManagementV1AssignCustomerPut

bool quoteCartManagementV1AssignCustomerPut($cartId, $body)

Assigns a specified customer to a specified shopping cart.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
cartId int The cart ID.
body \SpringImport\Swagger\Magento2\Client\Model\Body46 [optional]

Return type

bool

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]

quoteCartManagementV1CreateEmptyCartForCustomerPost

int quoteCartManagementV1CreateEmptyCartForCustomerPost()

Creates an empty cart and quote for a specified customer.

Example

<?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;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

int

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]

quoteCartManagementV1CreateEmptyCartForCustomerPost_0

int quoteCartManagementV1CreateEmptyCartForCustomerPost_0($customerId)

Creates an empty cart and quote for a specified customer.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
customerId int The customer ID.

Return type

int

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]

quoteCartManagementV1CreateEmptyCartPost

int quoteCartManagementV1CreateEmptyCartPost()

Creates an empty cart and quote for a guest.

Example

<?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;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

int

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]

quoteCartManagementV1GetCartForCustomerGet

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartInterface quoteCartManagementV1GetCartForCustomerGet()

Returns information for the cart for a specified customer.

Example

<?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;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartInterface

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]

quoteCartManagementV1PlaceOrderPut

int quoteCartManagementV1PlaceOrderPut($body)

Places an order for a specified cart.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body \SpringImport\Swagger\Magento2\Client\Model\Body48 [optional]

Return type

int

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]

quoteCartManagementV1PlaceOrderPut_0

int quoteCartManagementV1PlaceOrderPut_0($cartId, $body)

Places an order for a specified cart.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
cartId int The cart ID.
body \SpringImport\Swagger\Magento2\Client\Model\Body49 [optional]

Return type

int

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]