MageSmith
GETGiftMessage · Magento 2.4.9 Admin · Magento_Sales::create

GET /V1/carts/:cartId/gift-message/:itemId

GET /V1/carts/:cartId/gift-message/:itemId is a Magento 2 REST endpoint in the GiftMessage module. Return the gift message for a specified item in a specified shopping cart. Requires an admin Bearer token with ACL Magento_Sales::create.

Last verified: against Magento 2.4.9.

Returns

Magento\GiftMessage\Api\Data\MessageInterface

Gift message.

Service contract

Magento\GiftMessage\Api\ItemRepositoryInterface::get

Authorization

Admin Bearer token with ACL:

  • Magento_Sales::create

Path parameters

cartId int Required

The shopping cart ID.

itemId int Required

The item ID.

Example request

Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.

Headers

Accept
application/json
Authorization
Bearer <ACCESS_TOKEN> admin token with ACL: Magento_Sales::create

Path

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

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.