All URIs are relative to http://t213.vg/rest/default
Method | HTTP request | Description |
---|---|---|
giftMessageGuestItemRepositoryV1GetGet | GET /V1/guest-carts/{cartId}/gift-message/{itemId} | |
giftMessageGuestItemRepositoryV1SavePost | POST /V1/guest-carts/{cartId}/gift-message/{itemId} |
\Swagger\Client\Model\GiftMessageDataMessageInterface giftMessageGuestItemRepositoryV1GetGet($cart_id, $item_id)
Return the gift message for a specified item in a specified shopping cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\GiftMessageGuestItemRepositoryV1Api();
$cart_id = "cart_id_example"; // string | The shopping cart ID.
$item_id = 56; // int | The item ID.
try {
$result = $api_instance->giftMessageGuestItemRepositoryV1GetGet($cart_id, $item_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftMessageGuestItemRepositoryV1Api->giftMessageGuestItemRepositoryV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | string | The shopping cart ID. | |
item_id | int | The item ID. |
\Swagger\Client\Model\GiftMessageDataMessageInterface
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool giftMessageGuestItemRepositoryV1SavePost($cart_id, $item_id, $body)
Set the gift message for a specified item in a specified shopping cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\GiftMessageGuestItemRepositoryV1Api();
$cart_id = "cart_id_example"; // string | The cart ID.
$item_id = 56; // int | The item ID.
$body = new \Swagger\Client\Model\Body128(); // \Swagger\Client\Model\Body128 |
try {
$result = $api_instance->giftMessageGuestItemRepositoryV1SavePost($cart_id, $item_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftMessageGuestItemRepositoryV1Api->giftMessageGuestItemRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cart_id | string | The cart ID. | |
item_id | int | The item ID. | |
body | \Swagger\Client\Model\Body128 | [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]