11.5
Minor rounding change for custom line item discounts in POS 11.5
Starting with POS version 11.5, we are updating the internal calculation method for custom fixed-amount line item discounts. These discounts will now be applied on a per-unit basis rather than across the entire line. Note that this change only affects fixed-amount discounts; percentage discounts remain unchanged.
If your app uses setLineItemDiscount or bulkSetLineItemDiscounts from the Cart API with a FixedAmount discount type, you can continue to pass the total discount amount for the line item as you currently do. The POS system will automatically handle the conversion.
In most cases, the total discount will remain the same. However, for amounts that don't divide evenly by quantity, there might be a rounding difference of up to one cent, the smallest denomination in the local currency. For example, a $5.00 discount applied to 3 items becomes $1.67 per unit, totaling $5.01 instead of $5.00.
No action is required for extensions using API version 2026-04 or earlier. In a future API version, extensions will need to pass per-unit discount amounts directly. We will provide more details as the release approaches.
For more information, refer to the Cart API reference.
Fetched May 26, 2026
