Skip to main content
← Docs

Documentation

Coupons, gift cards and creator codes

Collect promotion input safely and let Tebex validate every code and calculate the resulting basket total.

Updated: 24 September 2026

Tebex validates the promotion

Sprytto sends a bounded code through the server-side basket route. Tebex decides whether it is valid, what it applies to and how totals change. Browser text is never treated as a discount calculation.

  • Coupons, gift cards and creator codes use their distinct provider operations.
  • The current basket capability stays in an HttpOnly same-site cookie.
  • Public errors stay stable and do not reveal provider internals or whether another customer used a code.

Storefront setup

  1. Enable the reviewed cart or promotion component on the intended page.
  2. Localize its label, help text, success and failure messages.
  3. Test a valid, invalid, expired and ineligible code in Tebex sandbox or the approved test store.
  4. Verify the displayed total is the value returned by Tebex.

Operational safety

Create and retire promotion rules in Tebex. Do not publish live codes in templates, logs, analytics dimensions or support screenshots.