Skip to content

PriceAmountMode

How a Price's amount reads. Mirrors DiscountCodeType, which has answered the same question for discount codes for far longer.

Values

  • fixed

    amount is the price, in cents.

  • amountOff

    amount is subtracted, in cents. Clamped at zero.

  • percentOff

    amount is a whole percentage (1–100) taken off.

Used in