AlmondTill/G3N API

OrderDiscount

object type

One pre-tax discount — amount XOR percent per kind; the audit reason is REQUIRED. Engine emissions (source coupon/promo) carry their ref and an engine-stamped reason; they are ABSOLUTE amount entries computed to replay verbatim in the pipeline.

Fields

FieldTypeNotes
kindSaleDiscountKind SaleDiscountKind!No further notes.
sourceSaleDiscountSource SaleDiscountSource!No further notes.
amountMinorIntThe absolute reduction in minor units (present ⟺ kind amount).
percentPpmIntThe percentage in integer ppm (present ⟺ kind percent).
reasonString String!No further notes.
promotionIdIDThe emitting Promotion — present ⟺ source promo (engine-stamped, NEVER caller input).
couponIdIDThe carrying Coupon — present ⟺ source coupon (engine-stamped; NEVER caller input).
loyaltyMemberIdIDThe redeeming LoyaltyMember — present ⟺ source loyalty (engine-stamped, NEVER caller input).
employeeUserIdIDThe verified employee User — present ⟺ source employee (engine-stamped, NEVER caller input).