# The Transaction object

### The Transaction object

```json
{
  "id": "ipi_1MzFN1K8F4fqH0lBmFq8CjbU",
  "object": "issuing.transaction",
  "amount": -100,
  "amount_details": {
    "atm_fee": null
  },
  "authorization": "iauth_1MzFMzK8F4fqH0lBc9VdaZUp",
  "balance_transaction": "txn_1MzFN1K8F4fqH0lBQPtqUmJN",
  "card": "ic_1MzFMxK8F4fqH0lBjIUITRYi",
  "cardholder": "ich_1MzFMxK8F4fqH0lBXnFW0ROG",
  "created": 1682065867,
  "currency": "usd",
  "dispute": null,
  "livemode": false,
  "merchant_amount": -100,
  "merchant_currency": "usd",
  "merchant_data": {
    "category": "computer_software_stores",
    "category_code": "5734",
    "city": "SAN FRANCISCO",
    "country": "US",
    "name": "WWWW.BROWSEBUG.BIZ",
    "network_id": "1234567890",
    "postal_code": "94103",
    "state": "CA"
  },
  "metadata": {},
  "type": "capture",
  "wallet": null
}
```

## Attributes

- `id` (string)
  Unique identifier for the object.

- `object` (string)
  String representing the object’s type. Objects of the same type share the same value.

- `amount` (integer)
  The transaction amount, which will be reflected in your balance. This amount is in your currency and in the [smallest currency unit](https://docs.stripe.com/currencies.md#zero-decimal).

- [`amount_details`](https://docs.stripe.com/api/issuing/transactions/object.md?query=amount_details) (object, nullable)
  Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies.md#zero-decimal).

- `authorization` (string, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  The `Authorization` object that led to this transaction.

- `balance_transaction` (string, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  ID of the [balance transaction](https://docs.stripe.com/api/balance_transactions.md) associated with this transaction.

- `card` (string, expandable (can be expanded into an object with the `expand` request parameter))
  The card used to make this transaction.

- `cardholder` (string, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  The cardholder to whom this transaction belongs.

- `created` (timestamp)
  Time at which the object was created. Measured in seconds since the Unix epoch.

- `currency` (enum)
  Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies.md).

- `dispute` (string, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  If you’ve disputed the transaction, the ID of the dispute.

- `livemode` (boolean)
  If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.

- `merchant_amount` (integer)
  The amount that the merchant will receive, denominated in `merchant_currency` and in the [smallest currency unit](https://docs.stripe.com/currencies.md#zero-decimal). It will be different from `amount` if the merchant is taking payment in a different currency.

- `merchant_currency` (enum)
  The currency with which the merchant is taking payment.

- [`merchant_data`](https://docs.stripe.com/api/issuing/transactions/object.md?query=merchant_data) (object)
  Details about the seller (grocery store, e-commerce website, etc.) involved in this transaction.

- `metadata` (map)
  Set of [key-value pairs](https://docs.stripe.com/api/metadata.md) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

- [`network_data`](https://docs.stripe.com/api/issuing/transactions/object.md?query=network_data) (object, nullable)
  Details about the transaction, such as processing dates, set by the card network.

- [`purchase_details`](https://docs.stripe.com/api/issuing/transactions/object.md?query=purchase_details) (object, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  Additional purchase information that is optionally provided by the merchant.

- `token` (string, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  [Token](https://docs.stripe.com/api/issuing/tokens/object.md) object used for this transaction. If a network token was not used for this transaction, this field will be null.

- `type` (enum)
  The nature of the transaction.
Possible enum values:
  - `capture`
    Funds were captured by the acquirer. `amount` will be negative because funds are moving out of your balance. Not all captures will be linked to an authorization, as acquirers [can force capture in some cases](https://docs.stripe.com/issuing/purchases/transactions.md).

  - `refund`
    An acquirer initiated a refund. This transaction might not be linked to an original capture, for example credits are original transactions. `amount` will be positive for refunds and negative for refund reversals. Refund reversals occur when a previous refund needs to be reversed, typically due to duplicate refunds. Learn more about [refund reversals](https://docs.stripe.com/issuing/purchases/transactions.md#refund-reversals).

- `wallet` (enum, nullable)
  The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`.
