---
title: "Create a discount"
method: POST
path: "/discounts"
tags: ["Discounts"]
---

# Create a discount

`POST /discounts`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/discounts`
- Auth: API key in header `X-API-Key`

Creates a discount with the specified details. On success, the ID of the new discount is returned.

## Request body

- DiscountJson
  - `name` string
  - `percent` number
  - `discountAmount` number
  - `status` 'ACTIVE' | 'DEPRECATED'
  - `discountedPrice` number

## Response `200`

successful operation

- string

---

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