---
title: "Create coupon attached to an affiliate"
method: POST
path: "/coupons"
tags: ["Coupons"]
---

# Create coupon attached to an affiliate

`POST /coupons`

## Request

- Base URL: `https://refgrow.com/api/v1`
- URL: `https://refgrow.com/api/v1/coupons`
- Auth: HTTP bearer

## Request body

- object
  - `affiliate_id` integer, required
  - `code` string, required
  - `status` 'active' | 'inactive'

## Response `201`

Coupon created

---

[API](https://skmtc.dev/refgrow/apis/refgrow-api.md) - [All operations](https://skmtc.dev/refgrow/apis/refgrow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/refgrow/apis/refgrow-api/revisions/68cce63d08d2?raw)
