Discounts & couponsUpdated 2026-06-01

Coupon validation

How Saleporia validates codes and computes discounts at checkout.

When a shopper enters a coupon code at checkout, Saleporia validates it server-side and computes the exact discount for their cart.

What's checked

  • The code exists and belongs to the shop
  • The coupon is Active and within its validity window
  • The cart subtotal meets the minimum purchase requirement
  • Usage limits (total and per-customer) haven't been exceeded

Computing the discount

Validation returns the computed discount amount for the given subtotal. The storefront applies this to the order total. The same validation endpoint is available via the public Store API for headless checkouts.

POST/coupon/validate
Validate a code against a subtotal and compute the discount amount.
Public