API mid June 2026 improvements (1.6.6)
Additional API features, improvements and fixes that shipped to production in mid June 2026, on top of the earlier early June 2026 release.
- Added
max_basket_discount_amountcampaign field, allowing a per-voucher cap on the discount value of percentage basket vouchers at redemption time. The cap is enforced per voucher duringget-basket-priceandadd-basket. - Added new admin permission fields
permission_analytics,permission_export, andpermission_segment_queryonadd-user,alter-user, and permission-related endpoints, enabling more granular access control for admin accounts. - Added
created_dateandlast_modified_dateas sort parameters for the Business and AllowedIpRange resources in the Resources API. - Changed percentage basket voucher application on chains that allow double discounting:
get-basket-priceandadd-basketnow apply all eligible campaign-level standalone percentage basket vouchers by threshold allocation — sorted by campaignreward_priority, then cap-aware delivered discount for same-priority vouchers, thencreated_date— instead of keeping only the single best percentage voucher. Themax_basket_discount_amountcap applies per voucher. - Changed voiding/cancelling a transaction via an empty
get-basket-price(no items andbasket_total_value0) to also unlock the shopper's standalone vouchers: any claimed, non-expired voucher locked to the sameretailer_basket_code/voucher_locking_codenow has its lock cleared, not only on-the-fly basket campaign vouchers. - Improved event handling so that deferred events (such as OTP SMS notifications) are no longer triggered when the API request that staged them fails.
- Improved
get-basket-priceto no longer return misleading warnings for auto-loaded vouchers that do not match campaign spend-assignment parameters. - Fixed an issue where voucher key generation under high concurrency could produce duplicate keys.
- Fixed a
get-basket-priceerror that occurred when the basket had no items and the user held vouchers from inactive campaigns.