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

# Korttransaktion

> En post for en korttransaktion.

> [!NOTE]
>
> Denne ressource har en efterfølger i [Whop
> API'et](https://docs.whop.com/da/api-reference/cards/list-card-transactions.md). Denne side forbliver fuldt
> understøttet.

```json Example theme={null}
{
	"authorization_method": "ecommerce",
	"card_id": "<string>",
	"cashback_usd_amount": 6.9,
	"created_at": "2023-12-01T05:00:00.401Z",
	"currency": "USD",
	"declined_reason": "insufficient_funds",
	"id": "<string>",
	"international": true,
	"local_amount": 6.9,
	"memo": "Team dinner",
	"merchant_category": "Software",
	"merchant_category_code": "5734",
	"merchant_icon_url": "https://logo.clearbit.com/example.com",
	"merchant_name": "Acme Corporation",
	"posted_at": "2023-12-01T05:00:00.401Z",
	"status": "pending",
	"transaction_type": "spend",
	"usd_amount": 6.9
}
```

**authorization\_method** `string | null` *required*

Hvordan kortet blev præsenteret eller godkendt ved købet.

Eksempel: `ecommerce`

**card\_id** `string` *required*

**cashback\_usd\_amount** `number | null` *required*

Det cashback-beløb, der er optjent på denne transaktion, i USD.

Eksempel: `6.9`

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

Dato og klokkeslæt, hvor korttransaktionen blev oprettet.

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

**currency** `string | null` *required*

ISO 4217-valutakoden for transaktionsbeløbet.

Eksempel: `USD`

**declined\_reason** `string | null` *required*

Den af udstederen angivne årsag til, at transaktionen blev afvist.

Eksempel: `insufficient_funds`

**id** `string` *required*

Den unikke identifikator for korttransaktionen.

**international** `boolean` *required*

Om transaktionen blev foretaget hos en forhandler uden for kortets hjem-
land.

**local\_amount** `number | null` *required*

Transaktionsbeløbet i forhandlerens lokale valuta før omregning.

Eksempel: `6.9`

**memo** `string | null` *required*

En note angivet af brugeren, der er knyttet til transaktionen.

Eksempel: `Team dinner`

**merchant\_category** `string | null` *required*

Den berigede eller rå kategorietiket for forhandleren.

Eksempel: `Software`

**merchant\_category\_code** `string | null` *required*

Den firecifrede ISO 18245-forhandlerkategorikode (MCC).

Eksempel: `5734`

**merchant\_icon\_url** `string | null` *required*

En URL til det berigede forhandlerlogobillede.

Eksempel: `https://logo.clearbit.com/example.com`

**merchant\_name** `string | null` *required*

Det berigede eller rå navn på den forhandler, hvor købet blev foretaget.

Eksempel: `Acme Corporation`

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

Hvornår transaktionen blev afregnet af kortnetværket.

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

**status** `CardIssuingTransactionStatus` *required*

Transaktionens aktuelle livscyklusstatus.

Tilgængelige muligheder: `pending`, `completed`, `reversed`, `declined`

**transaction\_type** `string` *required*

Transaktionstypen.

Eksempel: `spend`

**usd\_amount** `number | null` *required*

Transaktionsbeløbet i USD.

Eksempel: `6.9`


## Related topics

- [ActivityDetailElement](https://docs.whop.com/da/elements/latest/wallet/activityDetail.md)
- [Retrieve card transaction](https://docs.whop.com/da/api-reference/legacy/card-transactions/retrieve-card-transaction.md)
- [Card transaction created](https://docs.whop.com/da/api-reference/legacy/card-transactions/card-transaction-created.md)
