GET
/
v0
/
ledgers
/
{ledger_id}
/
line-entries
Authorization
Header
Path
Query
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/ledgers/{ledger_id}/line-entries \
  --header 'Authorization: <authorization>' \
  --header 'teal-instance-id: <teal-instance-id>'
{
  "next_page_token": "<string>",
  "prev_page_token": "<string>",
  "records": [
    {
      "amount": 382.28,
      "datetime": "2023-11-07T05:31:56Z",
      "debit_credit": "credit",
      "description": "<string>",
      "editable": true,
      "id": "XMDsKVuW4Wmi3LTW31Qw6E",
      "journal_entry_description": "August payroll",
      "journal_entry_id": "JFqZgayQehL9wBbyLrGd4A",
      "ledger_id": "FZo8uxfiKS9AZ6N6Eujwut",
      "ledger_name": "Salaries And Wages Expense",
      "related_line_entry_id": "<string>",
      "transaction_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The Teal instance ID

Path Parameters

ledger_id
string
required

The ledger ID

Query Parameters

start_date
string
required

The start date of the period, inclusive

end_date
string
required

The end date of the period, inclusive

limit
integer | null

The number of records to return. Max limit is 100.

page_token
string

Response

200 - application/json
next_page_token
string | null
required

The token to use to request the next page

prev_page_token
string | null
required

The token to use to request the previous page

records
object[]
required