Creating & Managing Coupons
Overview
Coupons let you create discount codes that customers can apply during checkout. Coupons are created and managed from the Dashboard — there are no API endpoints for coupon CRUD operations.
However, coupon validation and application at checkout uses dedicated API endpoints, so the checkout flow can automatically apply discounts.
Creating a Coupon (Dashboard Only)
- Go to Coupons in your Inflow Dashboard.
- Click Create Coupon.
- Fill in the coupon details:
- Code — The discount code customers will enter (e.g.,
SUMMER20) - Discount Type — Percentage or fixed amount
- Discount Value — The discount amount (e.g., 20% or €5.00)
- Usage Limits — Maximum number of times the coupon can be used
- Expiration — Optional expiration date
- Code — The discount code customers will enter (e.g.,
- Click Create.
Managing Coupons (Dashboard Only)
From the Coupons section, you can:
| Action | Description |
|---|---|
| List | View all coupons with their codes, discounts, and usage stats |
| Edit | Update a coupon's details |
| Delete | Remove a coupon permanently |
How Coupons Work at Checkout
When a customer enters a coupon code during checkout:
- Validation — The code is checked for validity (exists, not expired, usage limit not reached).
- Application — The discount is applied to the payment amount.
- Payment — The customer is charged the discounted amount.
The checkout flow handles this automatically for hosted checkout pages and payment/subscription links.
Coupon API (Checkout Flow)
While coupon creation is dashboard-only, the checkout process uses these API endpoints:
Validate a Coupon
POST /checkout/validate-coupon/{paymentId}
Checks if a coupon code is valid for a specific payment.
Apply a Coupon
POST /checkout/apply-coupon/{paymentId}
Applies the coupon discount to the payment amount.
These endpoints are used internally by the Inflow checkout page. If you're building a custom checkout integration, contact support for guidance.
Important Notes
- Coupon management (create, list, edit, delete) is dashboard-only.
- Coupons can be used with both one-time payments and subscriptions.
- The discount is applied at checkout time — the payment amount reflects the discounted price.
- Coupon usage is tracked automatically.
Updated 1 day ago