Edit in GitHubLog an issue
Adobe Commerce only. Learn more

giftRegistry query

The giftRegistry query retrieves details about the specified gift registry. Use the customer query to return a list of valid uid values.

This query requires a valid customer authentication token.

Syntax

Copied to your clipboard
giftRegistry(uid: ID!): GiftRegistry

Reference

The giftRegistry reference provides detailed information about the types and fields defined in this query.

Example usage

The following example returns information about the gift registry with the ID of 1.

Request:

Copied to your clipboard
query{
giftRegistry(giftRegistryUid: "W9YcRai9JmzGglqP3p0USodTTM3BmjjY"){
uid
type {
uid
label
}
event_name
owner_name
status
privacy_settings
registrants {
uid
firstname
lastname
}
shipping_address {
street
city
region {
region
}
postcode
country_code
}
dynamic_attributes {
code
group
label
value
}
event_name
items {
uid
quantity
quantity_fulfilled
product {
uid
name
sku
}
}
message
}
}

Response:

Copied to your clipboard
{
"data": {
"giftRegistry": {
"uid": "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",
"type": {
"uid": "MQ==",
"label": "Birthday"
},
"event_name": "Theo's 45th Birthday",
"owner_name": "Veronica Costello",
"status": "ACTIVE",
"privacy_settings": "PUBLIC",
"registrants": [
{
"uid": "Mg==",
"firstname": "Stacey",
"lastname": "Gaines"
}
],
"shipping_address": {
"street": [
"6146 Honey Bluff Parkway"
],
"city": "Calder",
"region": {
"region": "Michigan"
},
"postcode": "49628-7978",
"country_code": "US"
},
"dynamic_attributes": [
{
"code": "event_country",
"group": "EVENT_INFORMATION",
"label": "Country",
"value": "US"
},
{
"code": "event_date",
"group": "EVENT_INFORMATION",
"label": "Event Date",
"value": "2021-01-28"
}
],
"items": [
{
"uid": "MQ==",
"quantity": 1,
"quantity_fulfilled": 0,
"product": {
"uid": "Nw==",
"name": "Impulse Duffle",
"sku": "24-UB02"
}
},
{
"uid": "Mg==",
"quantity": 1,
"quantity_fulfilled": 0,
"product": {
"uid": "Mg==",
"name": "Strive Shoulder Pack",
"sku": "24-MB04"
}
},
{
"uid": "Mw==",
"quantity": 1,
"quantity_fulfilled": 0,
"product": {
"uid": "Nzg0",
"name": "Supernova Sport Pant",
"sku": "MP04"
}
},
{
"uid": "NA==",
"quantity": 1,
"quantity_fulfilled": 0,
"product": {
"uid": "OTcx",
"name": "Rapha Sports Short",
"sku": "MSH07"
}
},
{
"uid": "NQ==",
"quantity": 1,
"quantity_fulfilled": 0,
"product": {
"uid": "OTQ1",
"name": "Hawkeye Yoga Short",
"sku": "MSH05"
}
},
{
"uid": "Ng==",
"quantity": 1,
"quantity_fulfilled": 0,
"product": {
"uid": "NDk=",
"name": "Yoga Adventure",
"sku": "240-LV06"
}
},
{
"uid": "Nw==",
"quantity": 1,
"quantity_fulfilled": 0,
"product": {
"uid": "MTk=",
"name": "Go-Get'r Pushup Grips",
"sku": "24-UG05"
}
}
],
"message": "Theo's 45th Birthday"
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.