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
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like SF-… — stable for the record’s life. |
type | String String! | The kind of record — always Storefront here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of draft, published, unpublished or doomed. |
parentId | ID ID! | The parent Organization; rootId = the org group; parentId!== rootId always. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID 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. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
logicalFacilityId | ID 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). |
theme | String String! | The canned theme key (cannedStorefrontThemes lists the roster: almond-light · almond-dark · gallery · catalog-classic) — merchants pick, never author; edit-locked while published. |
customDomain | String | The 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). |
collectionIds | ID [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. |
categoryId | ID | |
divisionId | ID | The channel-type Division framing this site; null = unframed. |