AlmondTill/G3N API

variantIdentifiers

query · in the family Reading your records

What it does

The identifiers (barcodes/SKUs) assigned to one variant.

A variant's identifier ledger: current + superseded entries, voided excluded, most-recent-first; kind/organizationId filters compose.

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
variantIdID ID!yes
kindStringno
organizationIdIDno

Returns

IdentifierEntry [IdentifierEntry!]! — ONE ledgered identifier assignment: a kind + value borne by a Variant over an assignment window.

Example request

graphql
query ExampleVariantIdentifiers($variantId: ID!, $kind: String) {
  variantIdentifiers(variantId: $variantId, kind: $kind) {
    id
    type
    caption
    status
    parentId
    rootId
    kind
    value
    organizationId
    assignedAt
    supersededAt
    createdAt
    updatedAt
    revision
    revisionNum
  }
}

Variables:

json
{
  "variantId": "01900000-0000-7000-8000-8433b0260000",
  "kind": "<kind>"
}

Example response

json
{
  "data": {
    "variantIdentifiers": [
      {
        "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",
        "kind": "<kind>",
        "value": "<value>",
        "organizationId": "01900000-0000-7000-8000-1971e30a0000",
        "assignedAt": "2027-01-31T00:00:00.000Z",
        "supersededAt": "2027-01-31T00:00:00.000Z",
        "createdAt": "2027-01-31T00:00:00.000Z",
        "updatedAt": "2027-01-31T00:00:00.000Z",
        "revision": "01900000-0000-7000-8000-53c6eea90000",
        "revisionNum": 1
      }
    ]
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer