On this page
registriesByConsumer
query · in the family Reading your records
What it does
All of one customer’s registries.
ONE consumer's registries, NEWEST-FIRST + born-paginated. consumerId is the REQUIRED anchor (tenant-scoped). Doomed drops per page; closed/expired history stays. Requires authentication.
What happens
Reads only.
Who may call it
Capability area: Reading your records — Looking up and listing the records of your organization.
- Owner
- System Administrator
- Manager
- Associate Manager
- Sales Associate
- An API key whose scope allows
api:registriesByConsumer
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
consumerId | ID ID! | yes | No further notes. |
limit | Int | no | How many records to answer at most; a page may hold fewer. |
nextToken | String | no | The cursor from the previous page, passed back exactly as received. |
Returns
GiftRegistryPage GiftRegistryPage! — One page of the giftRegistries listing — the records + the opaque resume cursor.
This is a page: items holds the records and nextToken the cursor for the next page — pass it back verbatim until it is null. See paging.
Example request
query ExampleRegistriesByConsumer($consumerId: ID!, $limit: Int) {
registriesByConsumer(consumerId: $consumerId, limit: $limit) {
items {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
ownerConsumerId
registryType
privacy
eventDate
}
nextToken
}
}
Variables:
{
"consumerId": "01900000-0000-7000-8000-6e8c92ec0000",
"limit": 1
}
Example response
{
"data": {
"registriesByConsumer": {
"items": [
{
"id": "01900000-0000-7000-8000-37386ae00000",
"sysId": "GR-EXMP-0000-000F",
"type": "GiftRegistry",
"caption": "Blue jeans",
"status": "active",
"parentId": "01900000-0000-7000-8000-065235280000",
"rootId": "01900000-0000-7000-8000-a093dd800000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-b7960e180000",
"ownerConsumerId": "01900000-0000-7000-8000-44c7fc050000",
"registryType": "<registry type>",
"privacy": "<privacy>",
"eventDate": "2027-01-31"
}
],
"nextToken": "<the cursor from the previous page>"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}
Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. (NOT_FOUND)