Edit in GitHubLog an issue
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 clipboard
mutation {
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 clipboard
mutation{
removeGiftRegistryItems(
giftRegistryUid: "iSJHFdAtF8YBM5ALgNyNIgQmnbOW9t69",
itemsUid: ["MTM="]
){
gift_registry {
uid
event_name
items {
uid
product {
sku
}
quantity
quantity_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
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.