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 clipboardmutation {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 clipboardmutation {addGiftRegistryRegistrants (giftRegistryUid: "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",registrants: {firstname: "Monica"lastname: "Resendez"email: "monica@example.com"}){gift_registry {uidevent_nameregistrants {uidfirstnamelastname}}}}
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"}]}}}}