Return the gift message for a specified order.
GET
/V1/guest-carts/{cartId}/gift-message
curl \
--request GET 'https://magento2.winkelstraat.mac/rest/all/V1/guest-carts/{cartId}/gift-message'
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 (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<gift-message-id type="integer">42</gift-message-id>
<customer-id type="integer">42</customer-id>
<sender>string</sender>
<recipient>string</recipient>
<message>string</message>
<extension-attributes>
<entity-id>string</entity-id>
<entity-type>string</entity-type>
<wrapping-id type="integer">42</wrapping-id>
<wrapping-allow-gift-receipt type="boolean">true</wrapping-allow-gift-receipt>
<wrapping-add-printed-card type="boolean">true</wrapping-add-printed-card>
</extension-attributes>
</root>
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"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>