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

GET /V1/carts/{cartId}/gift-message/{itemId}

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

Path parameters

  • cartId integer Required

    The shopping cart ID.

  • itemId integer Required

    The item ID.

Responses

GET /V1/carts/{cartId}/gift-message/{itemId}
curl \
 -X GET https://magento2.winkelstraat.mac/rest/all/V1/carts/{cartId}/gift-message/{itemId}
Response examples (200)
{
  "gift_message_id": 42,
  "customer_id": 42,
  "sender": "string",
  "recipient": "string",
  "message": "string",
  "extension_attributes": {
    "entity_id": "string",
    "entity_type": "string",
    "wrapping_id": 42,
    "wrapping_allow_gift_receipt": true,
    "wrapping_add_printed_card": true
  }
}
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (400)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}