Edit in GitHubLog an issue
Adobe Commerce only. Learn more

addGiftRegistryRegistrants mutation

The addGiftRegistryRegistrants mutation adds a registrant to the specified gift registry.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
addGiftRegistryRegistrants(
giftRegistryUid: ID!,
registrants: [AddGiftRegistryRegistrantInput!]!
) {
AddGiftRegistryRegistrantsOutput
}
}

Reference

The addGiftRegistryRegistrants reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example adds a registrant to the specified gift registry.

Request:

Copied to your clipboard
mutation {
addGiftRegistryRegistrants (
giftRegistryUid: "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",
registrants: {
firstname: "Monica"
lastname: "Resendez"
email: "monica@example.com"
}
){
gift_registry {
uid
event_name
registrants {
uid
firstname
lastname
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"addGiftRegistryRegistrants": {
"gift_registry": {
"uid": "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",
"event_name": "Theo's 45th Birthday",
"registrants": [
{
"uid": "Mg==",
"firstname": "Stacey",
"lastname": "Gaines"
},
{
"uid": "OA==",
"firstname": "Monica",
"lastname": "Resendez"
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.