> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paymend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction

> Details about a transaction attempt made for a payment

The `Transaction` object contains details about a single transaction attempt that was made for a payment.

## Properties

| Field       | Type      | Description                                                                                                           |
| :---------- | :-------- | :-------------------------------------------------------------------------------------------------------------------- |
| `id`        | `string`  | Unique identifier for the transaction generated by the system (up to 32 char.)                                        |
| `type`      | `string`  | The type of transaction that has been processed                                                                       |
| `amount`    | `integer` | Amount processed in the smallest currency unit                                                                        |
| `result`    | `string`  | Whether the transaction attempt `SUCCEEDED` or `FAILED`                                                               |
| `failure`   | `object`  | **Optional** object containing details about the cause of a failed transaction (only present if `result` is `FAILED`) |
| `createdAt` | `string`  | Timestamp when the payment was created                                                                                |

## Example

```json theme={null}
{
  "id": "AUTH_eUfZ9n3BCPJo",
  "type": "AUTH",
  "amount": "100",
  "result": "FAILED",
  "failure": {
    "failureCode": "INSUFFICIENT_FUNDS",
    "providerFailureCode": "51"
  },
  "createdAt": "2025-12-15T10:22:10Z"
}
```
