> ## 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.

# Promosyon Kodu

> Promosyon kodu, ödeme sırasında bir plana indirim uygular. Promosyon kodları yüzde tabanlı veya sabit tutarlı olabilir; kullanım sınırları ve son kullanma tarihleri olabilir.

> [!NOTE]
>
> Bu kaynağın, yeni entegrasyonların üzerine inşa edilmesi gereken sürümlü API olan [Whop API](https://docs.whop.com/tr/api-reference/legacy/promo-codes/list-promo-codes.md) içinde bir halefi vardır. Bu sayfa tam olarak desteklenmeye devam eder.

```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*

İndirim tutarı. Yorumu promo\_type değerine bağlıdır: 'percentage' ise bu yüzdedir (ör. 20, %20 indirim anlamına gelir); 'flat\_amount' ise bu dolar cinsinden indirimdir (ör. 10.00, 10,00 \$ indirim anlamına gelir).

Örnek: `6.9`

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

Promosyon kullanımını yalnızca daha önce şirketten ayrılmış kullanıcılarla sınırlar.

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

Ödeme sırasında promosyonu uygulamak için kullanılan belirli kod.

**company** `object` *required*

Promosyon kodunun ait olduğu şirket.

**alt öznitelikler**

**id** `string` *required*

Şirketin benzersiz tanımlayıcısı.

Örnek: `biz_xxxxxxxxxxxxxx`

**title** `string` *required*

Şirketin yazılı adı.

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

Promosyon kodunun oluşturulduğu tarih ve saat.

Örnek: `2023-12-01T05:00:00.401Z`

**currency** `Currencies` *required*

Promosyon kodunun para birimi.

Kullanılabilir seçenekler: `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*

Promosyonun süresi.

Kullanılabilir seçenekler: `forever`, `once`, `repeating`

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

Promosyon kullanımını yalnızca önceden satın alınmış üyeliklere uygulanacak şekilde sınırlar.

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

Promosyonun sona erdiği tarih/saat.

Örnek: `2023-12-01T05:00:00.401Z`

**id** `string` *required*

Promosyon kodunun benzersiz tanımlayıcısı.

Örnek: `promo_xxxxxxxxxxxx`

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

Promosyon kullanımını yalnızca şirketten daha önce hiç satın alım yapmamış kullanıcılarla sınırlar.

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

Promosyon kullanımını müşteri başına yalnızca bir kez uygulanacak şekilde sınırlar.

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

Bu promosyon kodunun uygulandığı ürün

**alt öznitelikler**

**id** `string` *required*

Ürünün benzersiz tanımlayıcısı.

Örnek: `prod_xxxxxxxxxxxxx`

**title** `string` *required*

Ürün sayfasında ve arama sonuçlarında müşterilere gösterilen ürün adı.

Örnek: `Pickaxe Analytics`

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

Promosyonun uygulandığı ay sayısı.

Örnek: `42`

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

Promosyonun türü (% veya sabit tutar).

Kullanılabilir seçenekler: `percentage`, `flat_amount`

**status** `PromoCodeStatus` *required*

Promosyon kodunun etkin mi yoksa devre dışı mı olduğunu belirtir.

Kullanılabilir seçenekler: `active`, `inactive`, `archived`

**stock** `integer` *required*

Kullanım sayısına ilişkin miktar sınırı.

Örnek: `42`

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

Promosyon kodunun sınırsız stoğa sahip olup olmadığı.

**uses** `integer` *required*

Promosyon kodunun kullanılma sayısı.

Örnek: `42`


## Related topics

- [Promosyon Kodları API'si](https://docs.whop.com/tr/api-reference/promo-codes/promo-code.md)
- [Whop CLI Komutları](https://docs.whop.com/tr/cli/commands.md)
- [API sürümleri](https://docs.whop.com/tr/developer/api/versioning.md)
