DiscountValue

The value type of the discount, either a percentage based or absolute monetary value.

It is required that only one of the following is set:

  • absolute
  • percentage.

Fields

  • absoluteinteger
    format: int64minimum: 0

    The absolute value in minor units of the currency according to the Sale.currency.scale. Example: 10000 = 10.00

    Example: 100

  • percentageinteger
    format: int64minimum: 0

    The percentage in minor units (1/100000).

    Examples:

    • 10% -> 0.10 (decimal) = 10000 (minor units)
    • 15.5% -> 0.155 (decimal) = 15500 (minor units)
    • 0.001% -> 0.00001 (decimal) = 1 (minor units)

    Example: 10000

Type to search…