Line Entries
Get Journal Entry Line Entries
Gets all the line entries in a journal entry.
GET
/
v0
/
journal-entries
/
{journal_entry_id}
/
line-entries
Authorization
Header
Path
curl --request GET \
--url https://api.sandbox.teal.dev/v0/journal-entries/{journal_entry_id}/line-entries \
--header 'Authorization: <authorization>' \
--header 'teal-instance-id: <teal-instance-id>'
[
{
"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
headerrequiredThe access token received from the authorization server in the OAuth 2.0 flow.
Headers
teal-instance-id
string
requiredThe Teal instance ID
Path Parameters
journal_entry_id
string
requiredJournal entry ID
Response
200 - application/json
amount
string
requireddatetime
string
requiredThe datetime that the line entry occurred.
debit_credit
enum<string>
requiredWhether the amount is a credit or debit.
Available options:
debit
, credit
description
string | null
requiredDescription of a line entry.
editable
boolean
requiredIndicates whether this line entry may be edited by the user.
id
string | null
requiredjournal_entry_description
string
requiredjournal_entry_id
string | null
requiredledger_id
string
requiredledger_name
string
requiredrelated_line_entry_id
string | null
requiredThe line entry ID of a related line entry.
transaction_id
string | null
requiredThe transaction ID associated with the line entry.
curl --request GET \
--url https://api.sandbox.teal.dev/v0/journal-entries/{journal_entry_id}/line-entries \
--header 'Authorization: <authorization>' \
--header 'teal-instance-id: <teal-instance-id>'
[
{
"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>"
}
]