AlmondTill/G3N API

Storefront

object type

A Storefront — the ecom DTC publish-config document: which selling facility the site sells from, which canned theme renders it, which collections it merchandises, which browse tree and channel division frame it, and (optionally) the custom domain it claims. The lifecycle: born draft (claiming nothing) → publish (THE INVALID_CONFIG gate re-validates every ref record-aware + the global domain marker claims in the same transaction — CONFLICT/IDENTITY_TAKEN if another published site holds the name) → unpublish (the marker releases) → republish (the same gate + re-claim). published never dooms — unpublish first. The serving estate is deliberately absent v1: publish flips state, claims the domain, validates config — it provisions nothing; this record is the control plane the DTC workstream will consume. SEO copy rides the Decoration attachment, never fields here.

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like SF-… — stable for the record’s life.
typeString String!The kind of record — always Storefront here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of draft, published, unpublished or doomed.
parentIdID ID!The parent Organization; rootId = the org group; parentId!== rootId always.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
logicalFacilityIdID ID!The designated selling facility — the LF whose stock/pricing context the site sells from; in-tenant + active at set AND at publish; edit-locked while published (unpublish → edit → republish).
themeString String!The canned theme key (cannedStorefrontThemes lists the roster: almond-light · almond-dark · gallery · catalog-classic) — merchants pick, never author; edit-locked while published.
customDomainStringThe claimed custom domain (a bare lowercase hostname, at most 253 characters — no scheme/path/port/IP/localhost): the global uniqueness marker holds it only while published (claim at publish, release at unpublish); edit-locked while published; null = no custom domain (the default host is the serving workstream's business).
collectionIdsID [ID!]!The merchandised Collections (0..24, distinct; each in-tenant + active) — edits replace the set wholesale; a NON-doomed storefront blocks a referenced collection's doom.
categoryIdID
divisionIdIDThe channel-type Division framing this site; null = unframed.

Used by