AlmondTill/G3N API

registryFulfillments

query · in the family Reading your records

What it does

Who bought what against one registry — the fulfilment audit.

ONE registry's fulfillment facts, oldest-first + born-paginated: with the item rows this IS the purchased/remaining story (purchased = Σ qty; remaining floors 0). registryId is the required anchor. Requires authentication.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

What happens

Reads only.

Arguments

NameTypeRequiredNotes
registryIdID ID!yes
limitIntnoHow many records to answer at most; a page may hold fewer.
nextTokenStringnoThe cursor from the previous page, passed back exactly as received.

Returns

RegistryFulfillmentPage RegistryFulfillmentPage! — One page of a registry's fulfillment facts.

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

graphql
query ExampleRegistryFulfillments($registryId: ID!, $limit: Int) {
  registryFulfillments(registryId: $registryId, limit: $limit) {
    items {
      id
      type
      caption
      status
      parentId
      rootId
      createdAt
      updatedAt
      revisionNum
      revision
      registryItemId
      orderId
      orderLineNo
      qty
      purchaserConsumerId
    }
    nextToken
  }
}

Variables:

json
{
  "registryId": "01900000-0000-7000-8000-3255b1ae0000",
  "limit": 1
}

Example response

json
{
  "data": {
    "registryFulfillments": {
      "items": [
        {
          "id": "01900000-0000-7000-8000-37386ae00000",
          "type": "<type>",
          "caption": "Blue jeans",
          "status": "<status>",
          "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
          "rootId": "01900000-0000-7000-8000-a1295a650000",
          "createdAt": "2027-01-31T00:00:00.000Z",
          "updatedAt": "2027-01-31T00:00:00.000Z",
          "revisionNum": 1,
          "revision": "01900000-0000-7000-8000-53c6eea90000",
          "registryItemId": "01900000-0000-7000-8000-21c97c6d0000",
          "orderId": "01900000-0000-7000-8000-18e782370000",
          "orderLineNo": 1,
          "qty": 1,
          "purchaserConsumerId": "01900000-0000-7000-8000-168ef9fc0000"
        }
      ],
      "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