SpringImport\Swagger\Magento2\Client\GiftMessageGuestCartRepositoryV1Api

May 18, 2017 ยท View on GitHub

All URIs are relative to http://t213.vg/rest/default

MethodHTTP requestDescription
giftMessageGuestCartRepositoryV1GetGetGET /V1/guest-carts/{cartId}/gift-message
giftMessageGuestCartRepositoryV1SavePostPOST /V1/guest-carts/{cartId}/gift-message

giftMessageGuestCartRepositoryV1GetGet

\SpringImport\Swagger\Magento2\Client\Model\GiftMessageDataMessageInterface giftMessageGuestCartRepositoryV1GetGet($cartId)

Return the gift message for a specified order.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftMessageGuestCartRepositoryV1Api();
$cartId = "cartId_example"; // string | The shopping cart ID.

try {
    $result = $api_instance->giftMessageGuestCartRepositoryV1GetGet($cartId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftMessageGuestCartRepositoryV1Api->giftMessageGuestCartRepositoryV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
cartIdstringThe shopping cart ID.

Return type

\SpringImport\Swagger\Magento2\Client\Model\GiftMessageDataMessageInterface

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]

giftMessageGuestCartRepositoryV1SavePost

bool giftMessageGuestCartRepositoryV1SavePost(cartId,cartId, body)

Set the gift message for an entire order.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftMessageGuestCartRepositoryV1Api();
$cartId = "cartId_example"; // string | The cart ID.
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body127(); // \SpringImport\Swagger\Magento2\Client\Model\Body127 | 

try {
    $result = $api_instance->giftMessageGuestCartRepositoryV1SavePost($cartId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftMessageGuestCartRepositoryV1Api->giftMessageGuestCartRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
cartIdstringThe cart ID.
body\SpringImport\Swagger\Magento2\Client\Model\Body127[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]