carts/mine/gift-message/{itemId}

carts/mine/gift-message/{itemId}

get/V1/carts/mine/gift-message/{itemId}

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

Request
path Parameters
itemId
required
integer

The item ID.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

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

carts/mine/gift-message/{itemId}

post/V1/carts/mine/gift-message/{itemId}

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

Request
path Parameters
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

401

401 Unauthorized

default

Unexpected error

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