Edit in GitHubLog an issue
Adobe Commerce only. Learn more

shareGiftRegistry mutation

The shareGiftRegistry mutation sends an invitation to a list email addresses to shop from the customer's gift registry.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
shareGiftRegistry(
giftRegistryUid: ID!
sender: ShareGiftRegistrySenderInput!
invitees: [ShareGiftRegistryInviteeInput!]!
) {
ShareGiftRegistryOutput
}
}

Reference

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

Example usage

The following example creates a gift registry.

Request:

Copied to your clipboard
mutation{
shareGiftRegistry(
giftRegistryUid: "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",
sender: {
name: "Roni Costello"
message: "Help us celebrate Theo's 45th Birthday"
}
invitees: [
{
name: "Brenda Vazquez"
email: "brenda@example.com"
}
{
name: "Alex Brunner"
email: "alex1@example.com"
}
]){
is_shared
}
}

Response:

Copied to your clipboard
{
"data": {
"shareGiftRegistry": {
"is_shared": true
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.