---
title: "Create discount"
method: POST
path: "/marketing/create-discount"
tags: ["Marketing"]
---

# Create discount

`POST /marketing/create-discount`

Use this BillingServ API endpoint to create discount. Review the response for the operation result or validation errors.

## Request body

- object
  - `minimum_value` number, required
  - `discount_value` number, required
  - `start` string, date, required
  - `end` string, date
  - `type` integer, required — 0 = percentage, 1 = fixed/code
  - `recurring` 0 | 1, required
  - `uses` string, required
  - `selected_packages` string

## Response `200`

OK

- ApiResponse
  - `success` boolean

## Other responses

- `401` — Missing or invalid API key
- `403` — Authenticated key does not have permission for this endpoint
- `422` — Validation error
- `500` — The server could not complete the request.

---

[API](https://skmtc.net/b-cdn/apis/billingserv-api-v2.md) · [All operations](https://skmtc.net/b-cdn/apis/billingserv-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/b-cdn/billingserv-api-v2/revisions/76cfbed5eb40/schema)
