AlmondTill/G3N API

EditPromotionInput

input type

Edit-input for a Promotion. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved.

Fields

FieldTypeRequiredNotes
captionStringno
codeStringno
effectPromotionEffectInputnoWholesale replacement — the deferred kinds refuse the same named gate.
scopePromotionScopeInputnoThe scope input — ≥1 axis with unique members; omit the field for unrestricted.
productScopePromotionProductScopeInputnoThe product-scope input — ≥1 member (sane predicate, unique ids, included∩excluded refused); omit the field to match ALL product lines.
cartConditionsPromotionCartConditionsInputnoThe cart-conditions input — ≥1 member with unique ids.
startAtStringno
endAtStringno
priorityIntno
exclusiveBooleanno
combinableGroupStringno
maxDiscountPerLineMinorIntno
maxDiscountPerOrderMinorIntno
totalRedemptionsCapIntno
couponGatedBooleanno

Used by