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)

  1. Go to Coupons in your Inflow Dashboard.
  2. Click Create Coupon.
  3. 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
  4. Click Create.

Managing Coupons (Dashboard Only)

From the Coupons section, you can:

ActionDescription
ListView all coupons with their codes, discounts, and usage stats
EditUpdate a coupon's details
DeleteRemove a coupon permanently

How Coupons Work at Checkout

When a customer enters a coupon code during checkout:

  1. Validation — The code is checked for validity (exists, not expired, usage limit not reached).
  2. Application — The discount is applied to the payment amount.
  3. 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.