> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Promo Code

> 프로모션 코드(Promo code)는 체크아웃 시 플랜에 할인을 적용합니다. 프로모션 코드는 비율 기반 또는 정액일 수 있으며, 사용 한도와 만료일을 가질 수 있습니다.

> [!NOTE]
>
> 이 리소스에는 새 통합의 기반이 되어야 하는 버전 관리형 API인 [Whop API](https://docs.whop.com/ko/api-reference/legacy/promo-codes/list-promo-codes.md)의 후속 리소스가 있습니다. 이 페이지는 계속 완전히 지원됩니다.

```json Example theme={null}
{
	"amount_off": 6.9,
	"churned_users_only": true,
	"code": "<string>",
	"company": {
		"id": "biz_xxxxxxxxxxxxxx",
		"title": "<string>"
	},
	"created_at": "2023-12-01T05:00:00.401Z",
	"currency": "usd",
	"duration": "forever",
	"existing_memberships_only": true,
	"expires_at": "2023-12-01T05:00:00.401Z",
	"id": "promo_xxxxxxxxxxxx",
	"new_users_only": true,
	"one_per_customer": true,
	"product": {
		"id": "prod_xxxxxxxxxxxxx",
		"title": "Pickaxe Analytics"
	},
	"promo_duration_months": 42,
	"promo_type": "percentage",
	"status": "active",
	"stock": 42,
	"unlimited_stock": true,
	"uses": 42
}
```

**amount\_off** `number` *required*

할인 금액입니다. 해석은 promo\_type에 따라 달라집니다: 'percentage'인 경우 백분율(예: 20은 20% 할인)이고, 'flat\_amount'인 경우 할인되는 달러 금액(예: 10.00은 \$10.00 할인)입니다.

예시: `6.9`

**churned\_users\_only** `boolean` *required*

이전에 회사에서 이탈한 사용자만 프로모션을 사용할 수 있도록 제한합니다.

**code** `string | null` *required*

체크아웃 시 프로모션을 적용하는 데 사용된 특정 코드입니다.

**company** `object` *required*

프로모션 코드의 회사입니다.

**하위 속성**

**id** `string` *required*

회사의 고유 식별자입니다.

예시: `biz_xxxxxxxxxxxxxx`

**title** `string` *required*

회사의 표기 이름입니다.

**created\_at** `string\<date-time\>` *required*

프로모션 코드가 생성된 일시입니다.

예시: `2023-12-01T05:00:00.401Z`

**currency** `Currencies` *required*

프로모션 코드의 통화입니다.

사용 가능한 옵션: `usd`, `sgd`, `inr`, `aud`, `brl`, `cad`, `dkk`, `eur`, `nok`, `gbp`, `sek`, `chf`, `hkd`, `huf`, `jpy`, `mxn`, `myr`, `pln`, `czk`, `nzd`, `aed`, `eth`, `ape`, `cop`, `ron`, `thb`, `bgn`, `idr`, `dop`, `php`, `try`, `krw`, `twd`, `vnd`, `pkr`, `clp`, `uyu`, `ars`, `zar`, `dzd`, `tnd`, `mad`, `kes`, `kwd`, `jod`, `all`, `xcd`, `amd`, `bsd`, `bhd`, `bob`, `bam`, `khr`, `crc`, `xof`, `egp`, `etb`, `gmd`, `ghs`, `gtq`, `gyd`, `ils`, `jmd`, `mop`, `mga`, `mur`, `mdl`, `mnt`, `nad`, `ngn`, `mkd`, `omr`, `pyg`, `pen`, `qar`, `rwf`, `sar`, `rsd`, `lkr`, `tzs`, `ttd`, `uzs`, `rub`, `btc`, `cny`, `usdt`, `kzt`, `awg`, `whop_usd`, `xau`, `hnl`

**duration** `PromoDurations | null` *required*

프로모션의 기간입니다.

사용 가능한 옵션: `forever`, `once`, `repeating`

**existing\_memberships\_only** `boolean` *required*

이미 구매한 멤버십에만 프로모션을 적용할 수 있도록 제한합니다.

**expires\_at** `string\<date-time\> | null` *required*

프로모션이 만료되는 날짜/시간입니다.

예시: `2023-12-01T05:00:00.401Z`

**id** `string` *required*

프로모션 코드의 고유 식별자입니다.

예시: `promo_xxxxxxxxxxxx`

**new\_users\_only** `boolean` *required*

이전에 회사에서 구매한 적이 없는 사용자만 프로모션을 사용할 수 있도록 제한합니다.

**one\_per\_customer** `boolean` *required*

고객당 한 번만 프로모션을 적용할 수 있도록 제한합니다.

**product** `object | null` *required*

이 프로모션 코드가 적용되는 상품입니다

**하위 속성**

**id** `string` *required*

상품의 고유 식별자입니다.

예시: `prod_xxxxxxxxxxxxx`

**title** `string` *required*

상품 페이지와 검색 결과에서 고객에게 표시되는 상품의 표시 이름입니다.

예시: `Pickaxe Analytics`

**promo\_duration\_months** `integer | null` *required*

프로모션이 적용되는 개월 수입니다.

예시: `42`

**promo\_type** `PromoTypes` *required*

프로모션의 유형(% 또는 정액)입니다.

사용 가능한 옵션: `percentage`, `flat_amount`

**status** `PromoCodeStatus` *required*

프로모션 코드가 활성 상태인지 비활성 상태인지 나타냅니다.

사용 가능한 옵션: `active`, `inactive`, `archived`

**stock** `integer` *required*

사용 횟수의 수량 한도입니다.

예시: `42`

**unlimited\_stock** `boolean` *required*

프로모션 코드의 재고가 무제한인지 여부입니다.

**uses** `integer` *required*

프로모션 코드가 사용된 횟수입니다.

예시: `42`


## Related topics

- [Whop CLI 명령](https://docs.whop.com/ko/cli/commands.md)
- [Promo Codes API](https://docs.whop.com/ko/api-reference/promo-codes/promo-code.md)
- [Delete Promo Code](https://docs.whop.com/ko/api-reference/promo-codes/delete-promo-code.md)
