---
updatedAt: 2026-04-30T10:28:01.000Z
agentTools:
  projectIndex: https://developer.sivo.com/llms.txt
---

# Get a ledger transaction by ID

A ledger includes all credit and debit transactions associated with a yield account

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Banking",
    "description": "SIVO public Api REST",
    "version": "0.0.1"
  },
  "x-amazon-apigateway-api-key-source": "AUTHORIZER",
  "servers": [
    {
      "url": "https://dev.sivo.com/v1",
      "description": "Sandbox server (user test data)"
    }
  ],
  "paths": {
    "/lending/yield-accounts/{id}/ledger/{transactionId}": {
      "get": {
        "summary": "Get a ledger transaction by ID",
        "description": "A ledger includes all credit and debit transactions associated with a yield account",
        "operationId": "getByIdLendingYieldAccountsLedger",
        "tags": [
          "Yield Management"
        ],
        "parameters": [
          {
            "in": "path",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            },
            "name": "id",
            "description": "ID of the YieldAccounts"
          },
          {
            "in": "path",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            },
            "name": "transactionId",
            "description": "ID of the Ledger"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ledgerEntry"
                }
              }
            }
          },
          "400": {
            "description": "Invalid ID supplied"
          },
          "404": {
            "description": "Ledger not found"
          }
        },
        "security": [
          {
            "prod-sandbox-sivo-api-authorizer": [
              "aws.cognito.signin.user.admin"
            ]
          }
        ],
        "x-amazon-apigateway-integration": {
          "httpMethod": "POST",
          "type": "AWS_PROXY",
          "uri": "arn:aws:apigateway:us-east-2:lambda:path/2015-03-31/functions/${Token[TOKEN.2317]}:Alias/invocations"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "moneyAmount": {
        "type": "integer",
        "description": "See [Money](https://developer.sivo.com/reference/money) for details"
      },
      "uuid": {
        "type": "string",
        "description": "A universal identifier (all lowercase)",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
      },
      "dateIso8601": {
        "type": "string",
        "description": "See [Dates and Times](https://developer.sivo.com/reference/dates-and-times) for details",
        "format": "date"
      },
      "ledgerEntry": {
        "type": "object",
        "properties": {
          "account_id": {
            "$ref": "#/components/schemas/uuid",
            "description": "The id of the ledger associated with this entry. A universal identifier (all lowercase)"
          },
          "date": {
            "$ref": "#/components/schemas/dateIso8601",
            "description": "Date on which the transaction was settled or cancelled While the transaction is pending this is set to the creation date. See [Dates and Times](https://developer.sivo.com/reference/dates-and-times) for details"
          },
          "amount": {
            "$ref": "#/components/schemas/moneyAmount",
            "description": "Amount of this ledger entry. See [Money](https://developer.sivo.com/reference/money) for details"
          },
          "balance": {
            "$ref": "#/components/schemas/moneyAmount",
            "description": "Balance of the ledger account including this entry amount. See [Money](https://developer.sivo.com/reference/money) for details"
          }
        },
        "required": [
          "account_id",
          "date",
          "amount",
          "balance"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "prod-sandbox-sivo-api-authorizer": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-amazon-apigateway-authtype": "cognito_user_pools",
        "x-amazon-apigateway-authorizer": {
          "type": "cognito_user_pools",
          "providerARNs": [
            "${Token[TOKEN.1762]}"
          ]
        }
      }
    }
  },
  "x-amazon-apigateway-minimum-compression-size": 0
}
```