AlmondTill/G3N API

OrderDiscount

object type

One pre-tax discount — amount XOR percent per kind; the audit reason is required. Engine emissions carry their ref and an engine-stamped reason; they are absolute amount entries computed to replay verbatim in the pipeline.

Fields

FieldTypeNotes
kindSaleDiscountKind SaleDiscountKind!One of the values of [SaleDiscountKind](/types/SaleDiscountKind/).
sourceSaleDiscountSource SaleDiscountSource!One of the values of [SaleDiscountSource](/types/SaleDiscountSource/).
amountMinorIntThe absolute reduction in minor units (present ⟺ kind amount).
percentPpmIntThe percentage in integer ppm (present ⟺ kind percent).
reasonString String!
promotionIdIDThe emitting Promotion — present ⟺ source promo.
couponIdIDThe carrying Coupon — present ⟺ source coupon (engine-stamped; never caller input).
loyaltyMemberIdIDThe redeeming LoyaltyMember — present ⟺ source loyalty.
employeeUserIdIDThe verified employee User — present ⟺ source employee.