guest-carts/{cartId}/gift-message/{itemId}

guest-carts/{cartId}/gift-message/{itemId}

get/V1/guest-carts/{cartId}/gift-message/{itemId}

Return the gift message for a specified item in a specified shopping cart.

Request
path Parameters
cartId
required
string

The shopping cart ID.

itemId
required
integer

The item ID.

Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

Response samples
{
  • "gift_message_id": 0,
  • "customer_id": 0,
  • "sender": "string",
  • "recipient": "string",
  • "message": "string",
  • "extension_attributes": {
    }
}

guest-carts/{cartId}/gift-message/{itemId}

post/V1/guest-carts/{cartId}/gift-message/{itemId}

Set the gift message for a specified item in a specified shopping cart.

Request
path Parameters
cartId
required
string

The cart ID.

itemId
required
integer

The item ID.

Request Body schema:
required
object (gift-message-data-message-interface)

Interface MessageInterface

Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

Request samples
{
  • "giftMessage": {
    }
}
Response samples
true