See all services → Shopify Plus Partner
Action Required Developer

Audit POS Discount Logic After Percentage Amount Fix

Shopify POS 11.15 returns the rate, not the money, for percentage discounts in POS UI extensions. The change applies to every API version, so any extension doing arithmetic on Discount.amount needs a type check.

Executive summary

What changed

Percentage discounts now return a rate where they previously returned money. POS 11.14 and earlier reported the monetary allocation, so a 25 percent discount on a 200 dollar line item came back as 50. From 11.15 the same discount comes back as 25, which matches what the Cart API has always documented.

The change covers cart-level and line-item percentage discounts, whether manual, app-applied, or automatic, wherever the discount is exposed with type Percentage. It reaches the Cart API's current state and its subscriptions, lineItems discounts, cartDiscount, cartDiscounts, and the cartLineItem contextual API. Fixed-amount and code discounts are untouched, and that includes percentage-based discount codes, which continue to surface with type Code.

The operational detail that matters most: this is a POS application release, not an API version. There is no api_version you can hold to preserve the old numbers. The only variable is which devices in your fleet have updated.

Why it matters

Any extension that does arithmetic on Discount.amount without first checking Discount.type now produces wrong figures. Nothing throws and nothing logs. The numbers simply drift, understated on low-value carts and overstated on high-value ones, which is exactly the pattern that survives a quick test and fails in production. The exposure sits wherever that value leaves the extension: savings messaging on screen, loyalty accrual, receipt detail, and any order payload pushed into an ERP or OMS.

For multi-location retailers the rollout is staggered by device, so for a period the same extension returns different units at different stores. Merchants who treat their POS configuration as part of the commerce stack rather than a store-level detail will find this a short audit. Everyone else should start by locating the code.

Role-specific impact

Use-case example

Real-world scenario

A 12-store specialty retailer runs a custom extension that awards loyalty points on net spend after discounts, subtracting Discount.amount from line totals. After 11.15, a 20 percent discount on a 300 dollar item reports 20 instead of 60, so net spend is overstated by 40 dollars on that line and points accrue roughly 15 percent high on discounted baskets. At about 2,000 discounted transactions a month, the points liability drifts far enough to matter within a quarter, and the drift would surface in a loyalty reconciliation rather than an error log. A type check ahead of the subtraction removes the whole problem in a few lines.

Implementation checklist

  1. Search your extension code for every read of Discount.amount, including cartDiscount, cartDiscounts, lineItems discounts, and cartLineItem.
  2. Add a Discount.type check at each site and treat Percentage as a rate, never as currency.
  3. Recompute the monetary allocation from line item price and quantity wherever you need a money value.
  4. Re-test any bulkCartUpdate flow that round-trips cart state, since that path previously compounded the misreading.
  5. Keep a compatibility branch for POS 11.14 and earlier until every device is upgraded.
  6. Verify downstream consumers: loyalty accrual, receipt detail, analytics, and ERP or OMS order payloads.
  7. Test cart-level, line-item, and automatic percentage discounts on POS 11.15 or later before you close the ticket.

FAQ

Q: Can we pin an older API version to defer this?

A: No. The correction ships in Shopify POS 11.15 and applies across all POS UI extensions API versions. Holding an older api_version changes nothing here, which makes this different from most breaking changes on the developer changelog.

Q: Do percentage-based discount codes behave the same way?

A: No. Codes are exposed with type Code and are unchanged, so a percentage-based code reports exactly what it reported before. Read the type from the API rather than inferring it from how the discount was configured in the admin.

Resources

POS UI extensions Cart API reference

Need guidance? Talk to Makro.