Skip to main content

API mid May 2026 improvements (1.6.5)

Sam Critchley
Co-Founder

Additional API features, improvements and fixes that shipped to production in mid May 2026, on top of the earlier early May 2026 release.

  • Added basket-level discount calculation and percentage-based basket voucher support for composable campaigns, extending composable campaigns to handle basket-discount reward flows.
  • Added win_chance configuration to composable campaign reward methods, enabling probabilistic reward issuance so that only a configured percentage of interactions trigger a reward (for example a 5% chance per basket).
  • Changed get-user-vouchers to return voucher campaign details in a nested campaign object for API version 1.6.5 and above, including bounded campaign assignment rows with assigned business details, assignment_count, assignment_count_by_type, and assignment_types_excluded fields. Older versions keep the legacy flat campaign_* fields.
  • Improved API response times for basket endpoints (get-basket-price and add-basket) through caching improvements.
  • Improved create-voucher with concurrency protection to prevent duplicate voucher creation from simultaneous requests.
  • Improved robustness of API requests involving segment lookup through improved retry logic.
  • Fixed campaign segment-restriction handling so that campaigns with segment restrictions correctly fail closed.
  • Fixed get-tags, get-assigned-groups, and get-reward-methods endpoints returning server errors instead of proper API error responses when the chain_id parameter is missing.