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

# Product Affiliates API

> En Product Affiliate repræsenterer en brugers tilmelding til et produkts affiliateprogram. En tilmelding kan eksistere, før brugeren laver en henvisning eller optjener en belønning.

Brug Product Affiliates API'et til at vise produktaffiliates for en konto, søge efter affiliatens navn eller brugernavn og afgrænse resultaterne efter produkt, tilmeldingsstatus eller tilmeldingsdato.

## Endpoints

| Endpoint | Anmodning |
| - | - |
| [Vis produktaffiliates](https://docs.whop.com/da/api-reference/product-affiliates/list-product-affiliates.md) | GET `/product_affiliates` |

## Attributter

**id** `string` *required*

Produktaffiliate-ID med præfikset `apaf_`.

**created\_at** `string` *required*

Hvornår affiliatetilmeldingen blev oprettet, som et ISO 8601-tidsstempel. Omfatter
automatisk oprettede tilmeldinger.

**product** `object` *required*

Produktet, som affiliaten er tilmeldt for at promovere.

> [accordion] Egenskaber
>
> **id** `string` *required*
>
> Produkt-ID med præfikset `prod_`.
>
> **title** `string` *required*
>
> Produktets visningsnavn.

**referred\_users\_count** `integer` *required*

Antal unikke brugere, som affiliaten har henvist til dette produkt.

**status** `string` *required*

Om affiliatens tilmelding er aktiv eller arkiveret.

Tilgængelige muligheder: `active`, `archived`

**total\_reward\_amount\_usd** `object` *required*

Nettobelønninger optjent af affiliaten for dette produkt efter gebyrer og tilbageførsler, i USD.

> [accordion] Egenskaber
>
> **amount** `string` *required*
>
> Beløbet i hovedenheder som en præcis decimalstreng. For eksempel er `"10.00"`
> ti dollars. Det er en streng, så ingen float afrunder det undervejs.
>
> **currency** `string` *required*
>
> Trebogstavs ISO 4217-valutakode med små bogstaver.
>
> **decimals** `integer` *required*
>
> Hvor mange decimaler beløbet har. Dette er den præcision, selve opkrævningen
> kører med.
>
> **display\_decimals** `integer` *required*
>
> Hvor mange decimaler der skal VISES. Normalt lig med `decimals`, men bevidst ikke altid: COP opkræves i centavos, men skrives i hele pesos, så det er `2` og `0`. Formatér tallet i din egen lokalitet ved hjælp af dette.

**user** `object` *required*

Brugeren, der er tilmeldt som affiliate.

> [accordion] Egenskaber
>
> **id** `string` *required*
>
> Bruger-ID med præfikset `user_`.
>
> **email** `string | null` *required*
>
> Affiliatens e-mailadresse. Kræver scopet `member:email:read`; `null`
> uden det.
>
> **name** `string | null` *required*
>
> Visningsnavn.
>
> **profile\_picture** `object` *required*
>
> Avatar-wrapper. Dens `url` er altid til stede og er en genereret pladsholder, når brugeren ikke har angivet et billede.
>
> > [accordion] Egenskaber
> >
> > **url** `string` *required*
> >
> > Avatarbillede-URL. Altid til stede. Det er en genereret pladsholder, når brugeren ikke har angivet et billede.
>
> **username** `string` *required*
>
> Offentligt brugernavn.

```json ProductAffiliate theme={null}
{
	"id": "apaf_xxxxxxxxxxxxxx",
	"status": "active",
	"product": {
		"id": "prod_xxxxxxxxxxxxxx",
		"title": "Ceramic Coating Package"
	},
	"user": {
		"id": "user_xxxxxxxxxxxxxx",
		"name": "Dana Whitfield",
		"username": "danawhitfield",
		"email": "dana@example.com",
		"profile_picture": {
			"url": "https://ui-avatars.com/api/?name=Dana+Whitfield"
		}
	},
	"referred_users_count": 3,
	"total_reward_amount_usd": {
		"amount": "147.00",
		"currency": "usd",
		"decimals": 2,
		"display_decimals": 2
	},
	"created_at": "2026-08-20T11:00:00.000Z"
}
```


## Related topics

- [List Product Affiliates](https://docs.whop.com/da/api-reference/product-affiliates/list-product-affiliates.md)
- [Products API](https://docs.whop.com/da/api-reference/products/product.md)
- [Update product](https://docs.whop.com/da/api-reference/legacy/products/update-product.md)
