Adobe Commerce only. Learn more
Gift card product data types
The GiftCardProduct
data type defines properties of a gift card, including the minimum and maximum values and an array that contains the current and past values on the specific gift card
It implements the following interfaces:
Sample query
The following query returns information about gift card product GiftCard25
. (It is not defined in the sample data.)
Request:
Copied to your clipboard{products(filter: { sku: { eq: "GiftCard25" } }) {items {uid__typenamenamesku... on GiftCardProduct {allow_messagemessage_max_lengthallow_open_amountopen_amount_minopen_amount_maxis_returnableis_redeemablegiftcard_typegiftcard_amounts {uidwebsite_idvalueattribute_idwebsite_value}}}}}
Response:
Copied to your clipboard{"data": {"products": {"items": [{"uid": "MjA0OQ==","__typename": "GiftCardProduct","name": "GiftCard25","sku": "GiftCard25","allow_message": true,"message_max_length": 255,"allow_open_amount": false,"open_amount_min": null,"open_amount_max": null,"is_returnable": "2","is_redeemable": true,"giftcard_type": "VIRTUAL","giftcard_amounts": [{"value_id": "Mg==","website_id": 0,"value": 25,"attribute_id": 129,"website_value": 25}]}]}}}
Related topics
- applyGiftCardToCart mutation
- redeemGiftCardBalanceAsStoreCredit mutation
- removeGiftCardFromCart mutation