Adjustment Amount

Adjustment Amount is a dynamic entity that defines adjustments to a specific price. Consists of these two parts

  1. Adjustment Mode: either fixed or percentage

  2. Amount: which is a number. Can be negative or positive.

Based on the context of where it is applied:

  1. The percentage of what actually varies. For example in an order we might apply it on the total amount.

  2. The fixed amount currency also varies. For example on customer wallet deals, if we say we have a fixed adjustment with amount +2, it means if the user has EUR wallet, we add 2 EUR to their order.

Examples

{
    "amount": -2,
    "adjustmentMode": "percentage"
}
{
    "amount": 1.5,
    "adjustmentMode": "fixed"
}

Last updated