---
title: "Get transaction from a ledger by its ID"
method: GET
path: "/v2/{ledger}/transactions/{id}"
tags: ["ledger.v2"]
---

# Get transaction from a ledger by its ID

`GET /v2/{ledger}/transactions/{id}`

## Path parameters

- `ledger` string, required
- `id` integer, required

## Query parameters

- `expand` string
- `pit` string, date-time

## Response `200`

OK

- V2GetTransactionResponse
  - `data` V2Transaction, required
    - `insertedAt` string, date-time
    - `updatedAt` string, date-time
    - `timestamp` string, date-time, required
    - `postings` V2Posting[], required
      - `amount` integer, required
      - `asset` string, required
      - `destination` string, required
      - `source` string, required
    - `reference` string
    - `metadata` V2Metadata, required
    - `id` integer, required
    - `reverted` boolean, required
    - `revertedAt` string, date-time
    - `preCommitVolumes` V2AggregatedVolumes
    - `postCommitVolumes` V2AggregatedVolumes
    - `preCommitEffectiveVolumes` V2AggregatedVolumes
    - `postCommitEffectiveVolumes` V2AggregatedVolumes
    - `template` string

## Other responses

- `default` — Error

## Changes

- **2026-01-06** `76fa93a7b1aa` — 1 info
  - added the optional property `data/template` to the response with the `200` status
- **2025-12-12** `2945092328b9` — 2 warning
  - added the new `SCHEMA_ALREADY_EXISTS` enum value to the `errorCode` response property for the response status `default`
  - added the new `SCHEMA_NOT_SPECIFIED` enum value to the `errorCode` response property for the response status `default`
- **2025-07-16** `07091e08e779` — 1 info
  - added the optional property `data/updatedAt` to the response with the `200` status
- **2024-12-20** `98c8a7f1f50b` — 1 breaking
  - the response property `data/insertedAt` became optional for the status `200`
- **2024-12-09** `7ee573f0087f` — 1 warning, 1 info
  - added the new `OUTDATED_SCHEMA` enum value to the `errorCode` response property for the response status `default`
  - removed the `BUCKET_OUTDATED` enum value from the `errorCode` response property for the response status `default`

[Full history](https://skmtc.dev/formancehq/apis/ledger-api/changes/v2/:ledger/transactions/:id/get.md)

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/3ef3cb98f97a/schema)
