AlmondTill/G3N API

orgStyle

query · in the family Org style

What it does

Look up one record — your organization’s enablement of a shared style — selling it locally.

One OrgStyle by id. The record must belong to your organization group; an id from another group reads as not found.

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 — changes nothing.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

OrgStyle — An OrgStyle selection — the per-org enablement of a group Style: selection strictly required before the org ranges/sells it. Parent = the organization (not the family root). NO domain payload (per-org assortment/pricing enrichments arrive additively at their own slices). Freely deactivatable/doomable; a NON-doomed selection blocks the master Style doom only. Creating one is floor-gated: the org must have a defaultCurrency and every non-doomed Product of the style must price it.

Example request

graphql
query ExampleOrgStyle($id: ID!) {
  orgStyle(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    styleId
    code
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-7793e9ca0000"
}

Example response

json
{
  "data": {
    "orgStyle": {
      "id": "01900000-0000-7000-8000-7793e9ca0000",
      "sysId": "EY-EXMP-0000-000F",
      "type": "OrgStyle",
      "caption": "Blue jeans",
      "status": "active",
      "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",
      "styleId": "01900000-0000-7000-8000-5467ec760000",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer