---
title: "Create a new coupon code"
method: POST
path: "/coupon-codes"
tags: ["Coupon Codes"]
---

# Create a new coupon code

`POST /coupon-codes`

## Request body

- object
  - `name` string, required — The code string that customers enter to redeem the coupon.
  - `active` boolean, required — Whether this coupon code is currently enabled for use.
  - `couponId` string, required — Identifier of the coupon to which this code belongs.
  - `teamId` string, required — Team that created this coupon code.

## Response `200`

OK

- object
  - `couponCode` CouponCode, required — coupon-code
    - `id` string, required — A unique identifier for this coupon code.
    - `createdAt` string, date-time, required — Timestamp in ISO 8601 format when this coupon code was created.
    - `updatedAt` string, date-time, required — Timestamp in ISO 8601 format when this coupon code was last updated.
    - `name` string, required — The code string that customers enter to redeem the coupon.
    - `active` boolean, required — Whether this coupon code is currently enabled for use.
    - `couponId` string, required — Identifier of the coupon to which this code belongs.
    - `teamId` string, required — Team that created this coupon code.
    - `uses` integer — Number of times this specific coupon code has been used in successful orders.

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403
- `404` — 404
- `409` — 409
- `412` — 412
- `422` — 422
- `429` — 429
- `500` — 500
- `501` — 501
- `503` — 503

---

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