Adobe Commerce only. Learn more
removeGiftRegistryItems mutation
The removeGiftRegistryItems
mutation removes one or more items from the specified gift registry.
This mutation requires a valid customer authentication token.
Syntax
Copied to your clipboardmutation {removeGiftRegistryItems(giftRegistryUid: ID!,itemsUid: [ID!]!) {RemoveGiftRegistryItemsOutput}}
Reference
The removeGiftRegistryItems
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example removes an item from the specified gift registry.
Request:
Copied to your clipboardmutation{removeGiftRegistryItems(giftRegistryUid: "iSJHFdAtF8YBM5ALgNyNIgQmnbOW9t69",itemsUid: ["MTM="]){gift_registry {uidevent_nameitems {uidproduct {sku}quantityquantity_fulfilled}}}}
Response:
Copied to your clipboard{"data": {"removeGiftRegistryItems": {"gift_registry": {"uid": "iSJHFdAtF8YBM5ALgNyNIgQmnbOW9t69","event_name": "Bill and Julie's wedding","items": [{"uid": "OQ==","product": {"sku": "24-WB03"},"quantity": 3,"quantity_fulfilled": 0}]}}}}