---
title: "Create coupon"
method: POST
path: "/coupons"
tags: ["Coupons"]
---

# Create coupon

`POST /coupons`

Use when creating a discount (e.g. promo code or referral). Ideal for percent or fixed value, with optional validity and usage limits.

## Request body

- CreateCouponRequest
  - `amount_off` string
  - `cadence` 'once' | 'repeated' | 'forever', required
  - `coupon_code` string
  - `currency` string
  - `duration_in_periods` integer
  - `max_redemptions` integer
  - `metadata` object
  - `name` string, required
  - `percentage_off` string
  - `redeem_after` string
  - `redeem_before` string
  - `rules` object
  - `type` 'fixed' | 'percentage', required

## Response `201`

Created

- CouponResponse
  - `amount_off` string
  - `cadence` 'once' | 'repeated' | 'forever'
  - `coupon_code` string
  - `created_at` string, date-time
  - `created_by` string
  - `currency` string
  - `duration_in_periods` integer
  - `environment_id` string
  - `id` string
  - `max_redemptions` integer
  - `metadata` object
  - `name` string
  - `percentage_off` string
  - `redeem_after` string
  - `redeem_before` string
  - `rules` object
  - `status` 'published' | 'deleted' | 'archived'
  - `tenant_id` string
  - `total_redemptions` integer
  - `type` 'fixed' | 'percentage'
  - `updated_at` string, date-time
  - `updated_by` string

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource not found
- `500` — Server error

---

[API](https://skmtc.net/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.net/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/f0601ed97bd3/schema)
