AlmondTill/G3N API

EditProductInput

input type

Edit-input for a Product. Every field optional, at least ONE required; supplied fields REPLACE, omitted fields are preserved. The parent-style ref is NOT editable (the header — recreate instead). A supplied segment replaces WHOLESALE and may not orphan: every existing non-doomed variant coordinate must remain inside the new segment (CONFLICT/REFERENCED naming the variants). A supplied rrp replaces WHOLESALE but must keep at least 1 entry and — under live OrgStyle selections — must still cover every selecting org defaultCurrency (CONFLICT/CURRENCY_FLOOR, site 2); msrp/tagIds replace wholesale (empty releases — the MF-d precedent).

Fields

FieldTypeRequiredNotes
captionStringnoNo further notes.
codeStringnoNo further notes.
segmentProductSegmentEntryInput [ProductSegmentEntryInput!]noThe replacement segment (wholesale) — no-orphan-gated against existing variants.
rrpMoneyEntryInput [MoneyEntryInput!]noThe replacement RRP map (wholesale; at least 1 entry; floor-gated).
msrpMoneyEntryInput [MoneyEntryInput!]noThe replacement MSRP map (wholesale; empty releases).
tagIdsID [ID!]noThe replacement tag set (wholesale; empty releases).

Used by