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

# Transacción con tarjeta

> Un registro de transacción con tarjeta.

> [!NOTE]
>
> Este recurso tiene un sucesor en la [API de Whop](https://docs.whop.com/es/api-reference/cards/list-card-transactions.md). Esta página sigue teniendo soporte completo.

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

Cómo se presentó o autenticó la tarjeta para la compra.

Ejemplo: `ecommerce`

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

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

El importe de la recompensa de cashback obtenida en esta transacción, en USD.

Ejemplo: `6.9`

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

La fecha y hora en que se creó la transacción con tarjeta.

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

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

El código de moneda ISO 4217 del importe de la transacción.

Ejemplo: `USD`

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

El motivo proporcionado por el emisor por el que se rechazó la transacción.

Ejemplo: `insufficient_funds`

**id** `string` *required*

El identificador único de la transacción con tarjeta.

**international** `boolean` *required*

Si la transacción se realizó con un comerciante fuera del país de origen de la tarjeta.

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

El importe de la transacción en la moneda local del comerciante antes de la conversión.

Ejemplo: `6.9`

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

Una nota proporcionada por el usuario adjunta a la transacción.

Ejemplo: `Team dinner`

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

La etiqueta de categoría enriquecida o sin procesar del comerciante.

Ejemplo: `Software`

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

El código de categoría de comerciante (MCC) ISO 18245 de cuatro dígitos.

Ejemplo: `5734`

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

Una URL a la imagen enriquecida del logotipo del comerciante.

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

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

El nombre enriquecido o sin procesar del comerciante donde se realizó la compra.

Ejemplo: `Acme Corporation`

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

Cuándo la red de tarjetas liquidó la transacción.

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

**status** `CardIssuingTransactionStatus` *required*

El estado actual del ciclo de vida de la transacción.

Opciones disponibles: `pending`, `completed`, `reversed`, `declined`

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

El tipo de transacción.

Ejemplo: `spend`

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

El importe de la transacción en USD.

Ejemplo: `6.9`


## Related topics

- [ActivityDetailElement](https://docs.whop.com/es/elements/latest/wallet/activityDetail.md)
- [API de actividad financiera](https://docs.whop.com/es/api-reference/ledgers/ledger-activity.md)
- [Wallet](https://docs.whop.com/es/elements/latest/wallet/overview.md)
