AlmondTill/G3N API

Warranty

object type

A Warranty — THE WARRANTY INSTANCE: one sold order line under one WarrantyTerms template. Born by the ENGINE when the sale completes (paid AND delivered) for every variant line whose product carries an active product-attached template or whose variant names a manufacturer carrying an active manufacturer-attached template (one warranty per matching template); never created on the wire. The policy is SNAPSHOTTED at birth (provider · durationDays → expiresAt = startsAt + durationDays), so later template edits never rewrite an issued warranty. active → expired is the scheduler’s over expiresAt; active → claimed is fileClaimWarranty (a warranty_claim CsCase linked both ways). The serial number is optional and stamped through updateWarranty. Listings keep expired warranties as coverage history (the settled-payment class — a status filter narrows to active); every warranty stays reachable by id from the order line’s warrantyIds.

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 group-scoped human-facing system id (WR-…).
typeString String!The kind of record — always Warranty here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: active | claimed | expired.
parentIdID ID!The sold Order; rootId = the org group; parentId!== rootId always.
rootIdID ID!The org-group family root.
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 OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
organizationIdID ID!The selling Organization (copied from the Order at birth).
orderLineNoInt Int!The sold line — the Order’s 1-based lineNo (frozen at placed; the cross-document addressing key).
variantIdID ID!The sold Variant (the line’s variantId).
productIdID ID!The Variant’s Product (resolved at birth).
warrantyTermsIdID ID!The WarrantyTerms template the warranty was issued under (a pointer — the policy is snapshotted on the record).
providerWarrantyProvider WarrantyProvider!WHO honors the warranty — snapshotted from the terms at birth (the claim’s routing).
durationDaysInt Int!The coverage duration in days — snapshotted from the terms at birth.
quantityString String!The covered units — the line’s quantity at birth (the inventory decimal-string quantity shape).
startsAtString String!The coverage start — the sale’s completion instant (UTC ISO-8601).
expiresAtString String!The coverage end = startsAt + durationDays days (UTC ISO-8601); the scheduler sweeps active → expired on it.
consumerIdIDThe registered Consumer the order was for (from the Order’s customer capture, when present) — the customer-scoped listing axis.
serialNumberStringThe unit’s serial number — optional; stamped through updateWarranty (at most 128 characters).
caseIdIDThe warranty_claim CsCase the claim linked (stamped by fileClaimWarranty; present from claimed onward).

Used by