---
title: "Promo Codes Create"
method: POST
path: "/admin/promo/codes"
---

# Promo Codes Create

`POST /admin/promo/codes`

## Request

- Base URL: `https://api.nullprint.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nullprint.ai/admin/promo/codes`
- Auth: none declared

BD 自己加一个渠道码:备注必填;码选填(3–16 位字母 / 数字 / 横线,留空随机 6 位),全局不重复。

## Request body

- ChannelBody
  - `note` string, required
  - `code` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nullprint/apis/nullprint-backend.md) · [All operations](https://skmtc.dev/nullprint/apis/nullprint-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/nullprint/apis/nullprint-backend/revisions/51dfcef9dce2?raw)
