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

# Promotiecode

> Een promotiecode past tijdens de checkout een korting toe op een plan. Promotiecodes kunnen op een percentage of een vast bedrag gebaseerd zijn en kunnen gebruikslimieten en vervaldatums hebben.

> [!NOTE]
>
> Deze resource heeft een opvolger in de [Whop API](https://docs.whop.com/nl/api-reference/legacy/promo-codes/list-promo-codes.md), de API met versies waarop nieuwe integraties moeten bouwen. Deze pagina blijft volledig ondersteund.

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

Het kortingsbedrag. De interpretatie hangt af van promo\_type: bij 'percentage' is dit het percentage (bijv. 20 betekent 20% korting); bij 'flat\_amount' is dit het aantal dollars korting (bijv. 10.00 betekent \$10.00 korting).

Voorbeeld: `6.9`

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

Beperkt het gebruik van de promotie tot gebruikers die eerder bij het bedrijf zijn afgehaakt.

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

De specifieke code waarmee de promotie bij de checkout wordt toegepast.

**company** `object` *required*

Het bedrijf voor de promotiecode.

**onderliggende attributen**

**id** `string` *required*

De unieke identificatie van het bedrijf.

Voorbeeld: `biz_xxxxxxxxxxxxxx`

**title** `string` *required*

De geschreven naam van het bedrijf.

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

De datum en tijd waarop de promotiecode is aangemaakt.

Voorbeeld: `2023-12-01T05:00:00.401Z`

**currency** `Currencies` *required*

De valuta van de promotiecode.

Beschikbare opties: `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*

De duur van de promotie.

Beschikbare opties: `forever`, `once`, `repeating`

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

Beperkt het gebruik van de promotie tot reeds aangeschafte lidmaatschappen.

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

De datum/tijd waarop de promotie verloopt.

Voorbeeld: `2023-12-01T05:00:00.401Z`

**id** `string` *required*

De unieke identificatie van de promotiecode.

Voorbeeld: `promo_xxxxxxxxxxxx`

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

Beperkt het gebruik van de promotie tot gebruikers die nog nooit eerder bij het bedrijf hebben gekocht.

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

Beperkt het gebruik van de promotie tot één keer per klant.

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

Het product waarop deze promotiecode van toepassing is

**onderliggende attributen**

**id** `string` *required*

De unieke identificatie van het product.

Voorbeeld: `prod_xxxxxxxxxxxxx`

**title** `string` *required*

De weergavenaam van het product die aan klanten wordt getoond op de productpagina en in zoekresultaten.

Voorbeeld: `Pickaxe Analytics`

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

Het aantal maanden waarvoor de promotie wordt toegepast.

Voorbeeld: `42`

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

Het type (% of vast bedrag) van de promotie.

Beschikbare opties: `percentage`, `flat_amount`

**status** `PromoCodeStatus` *required*

Geeft aan of de promotiecode actief of uitgeschakeld is.

Beschikbare opties: `active`, `inactive`, `archived`

**stock** `integer` *required*

De limiet op het aantal keren dat de code kan worden gebruikt.

Voorbeeld: `42`

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

Of de promotiecode een onbeperkte voorraad heeft.

**uses** `integer` *required*

Het aantal keren dat de promotiecode is gebruikt.

Voorbeeld: `42`


## Related topics

- [API-versies](https://docs.whop.com/nl/developer/api/versioning.md)
- [Whop CLI-commando's](https://docs.whop.com/nl/cli/commands.md)
- [Search API](https://docs.whop.com/nl/api-reference/search/search.md)
