Coupon validation and redemption (free-signature / discount codes).
Validate a coupon
Previews a coupon without consuming it. Reports whether the coupon can be redeemed by the current tenant.
Behavior
- For
free_signaturecoupons,signatures_countindicates how many free signatures would be granted. - For
discountcoupons,discount_will_applyistrue— the discount is applied directly at signature checkout (NOT via/coupons/redeem). is_validistrueonly if the coupon is active, not expired, not saturated, and not already redeemed by this tenant.
Usage Example
Code
Response:
Code
Validate a coupon › Request Body
codeCoupon code to validate (case as provided by the user).
Validate a coupon › Responses
Coupon preview.
codeCoupon code.
kindType of coupon.
discount: a Stripe discount applied directly at signature checkout (NOT redeemable viaPOST /coupons/redeem).free_signature: grants a number of free signatures, converted into credits when redeemed.
discount_will_applytrue when kind is discount, meaning a Stripe discount will be
applied automatically at signature checkout.
already_redeemedWhether the current tenant has already redeemed this coupon.
is_validtrue if the coupon is active, not expired, not saturated
(max redemptions not reached) and not already redeemed by this tenant.
descriptionOptional human-readable description of the coupon.
signatures_countNumber of free signatures granted by the coupon.
Only present when kind is free_signature (omitted otherwise).
Redeem a coupon
Redeems a free_signature coupon, converting the granted signatures into
credits added to the tenant's balance.
Important
- Only
free_signaturecoupons can be redeemed here.discountcoupons must be applied directly at signature checkout and are rejected with400. - Redemption is idempotent: a tenant can redeem a given coupon only
once (unique constraint on coupon + tenant). A repeat attempt returns
409.
Usage Example
Code
Response:
Code
Redeem a coupon › Request Body
codeCoupon code to redeem.
Redeem a coupon › Responses
Coupon redeemed; credits added to the balance.
codeCoupon code.
kindAlways free_signature for a redeemable coupon.
signatures_countNumber of free signatures granted by this redemption.
new_balance_centsNew credit balance in euro cents after the redemption.
messageUser-friendly confirmation message.