LogoLogo
Contact API support
  • Build apps
  • Site Templates
  • REST API Reference
  • Storefronts (JS API)
  • Webhook automations
  • Discounts
  • Guides
  • Changelog
  • Ecwid API Changelog
  • June 2025
    • June 13
  • May 2025
    • May 16
  • April 2025
    • April 25
    • April 11
  • March 2025
    • March 28
    • March 25
    • March 20
    • March 17

Lightspeed® 2025

On this page

Was this helpful?

  1. March 2025
  2. March 17

New and updated values for discount bases in orders and carts

Last updated 3 months ago

Was this helpful?

What's new

The discountInfo -> base field in the Order and Cart API objects now supports a different set of values. The field defines a basis from which a discount (promotion) is calculated.

List of affected endpoints in REST API:

Other affected API calls:

Changes in API

The discountInfo -> base field now works with another set of values.

Supported values before the change: ON_TOTAL, ON_MEMBERSHIP , ON_TOTAL_AND_MEMBERSHIP .

Supported values after the change: SUBTOTAL , ITEM , SHIPPING , ON_MEMBERSHIP , ON_TOTAL_AND_MEMBERSHIP , CUSTOM .

Why the changes are breaking

The old value ON_TOTAL was replaced with the new SUBTOTAL . It still means that the discount is only applied to the order subtotal cost (without shipping costs) with no additional conditions like the customer's membership.

How to update the app

  1. Check if your app works with one of the listed requests.

  2. Check the code that parses order details coming from Ecwid – specifically if it checks for the discountInfo value.

  3. Make sure to add SUBTOTAL to the list of expected values. If your app doesn't work with orders older than March 1, 2025, remove the ON_TOTAL from the list of expected values.

Breaking changes! Сhanges listed below may break some apps' logic.

Search orders
Get order
Get last order
Update order
Search abandoned cartsFind all incomplete orders in the store.
Get abandoned cartFind all incomplete orders in the store.