GET
/
v0
/
journal-entries
/
{journal_entry_id}
/
line-entries
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/journal-entries/{journal_entry_id}/line-entries \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
[
  {
    "amount": "31282.28",
    "debit_credit": "credit",
    "description": "Payroll#230215",
    "ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
    "related_line_entry_id": "<string>",
    "transaction_id": "<string>",
    "id": "XMDsKVuW4Wmi3LTW31Qw6E",
    "datetime": "2023-02-15T06:42:18Z",
    "editable": true,
    "journal_entry": {
      "datetime": "2023-02-15T06:42:18Z",
      "description": "Payroll#230215",
      "id": "C4ocnUQze8kDwQ3EczkZXn",
      "line_entry_ids": [
        "XMDsKVuW4Wmi3LTW31Qw6E",
        "NULcvXTkLczde32qs1rqgB"
      ]
    },
    "journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
    "journal_entry_description": "Payroll#230215",
    "ledger": {
      "debit_credit": "debit",
      "editable": false,
      "financial_account_type": "bank_account",
      "id": "7JRNsKwy2Lw66caxVU7WGC",
      "is_required": false,
      "name": "Pluto Checking 4242",
      "report_cash_flow": true,
      "sort_code": "2240",
      "sub_type": "current_assets",
      "type": "asset"
    },
    "ledger_name": "Payroll Expense",
    "tags": [
      {
        "id": "UjL3BQnEaJtecuC7CUeDk",
        "name": "Sprinter - 1ab-c23",
        "tag_group_id": "NCB2xo5S1yQbNgyWskXpwG"
      }
    ],
    "transaction": {
      "amount": 31282.28,
      "datetime": "2023-02-15T06:42:18Z",
      "description": "Payroll#230215",
      "id": "txn_UjL3BQnEaJtecuC7CUeDk",
      "journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
      "ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
      "line_entry_id": "XMDsKVuW4Wmi3LTW31Qw6E",
      "personal": false,
      "posted_status": "posted",
      "review_status": "reviewed",
      "source_account_id": "L7RR1Yz85FJoASPvPLs441"
    }
  }
]

Authorizations

Authorization
string
header
required

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

journal_entry_id
string
required

Journal entry ID

Query Parameters

expand
enum<string>[] | null

Comma-separated list of Line Entry expand paths.

Available options:
transaction,
ledger,
journal_entry

Response

200
application/json
Successful Response
amount
number
required

The value of the line entry in decimal dollar cents.

Example:

"31282.28"

debit_credit
enum<string>
required

Indicates if the amount is a credit or debit.

Available options:
debit,
credit
ledger_id
string
required

The ID of the Line Entry's Ledger. Can be null in some cases for Instances using QuickBooks as their accounting package.

Example:

"7JRNsKwy2Lw66caxVU7WGC"

id
string | null
required

The unique ID of the object. Can be null in some cases for Instances using QuickBooks as their accounting package.

Example:

"XMDsKVuW4Wmi3LTW31Qw6E"

datetime
string
required

The datetime the Line Entry was created in UTC time.

Example:

"2023-02-15T06:42:18Z"

editable
boolean
required

Indicates if the Line Entry can be manually added or removed from a Ledger, as dictated by the editable property on the Ledger.

Example:

true

journal_entry_id
string | null
required

The ID of the associated Journal Entry. Can be null in some cases for Instances using QuickBooks as their accounting package.

Example:

"C4ocnUQze8kDwQ3EczkZXn"

journal_entry_description
string
required

An arbitrary string on the object, useful for displaying to users.

Example:

"Payroll#230215"

ledger_name
string
required

The name of the Line Entry's Ledger.

Example:

"Payroll Expense"

description
string | null

An arbitrary string on the object, useful for displaying to the user or for categorization.

Example:

"Payroll#230215"

related_line_entry_id
string | null

If the Line Entry is identified as a transfer between accounts, the ID of the Line Entry in the opposing Ledger.

Related guide: Auto-categorization

transaction_id
string | null

The ID of the associated Transaction, if one exists.

journal_entry
object | null

Expandable. The associated Journal Entry object.

Example:
{
  "datetime": "2023-02-15T06:42:18Z",
  "description": "Payroll#230215",
  "id": "C4ocnUQze8kDwQ3EczkZXn",
  "line_entry_ids": [
    "XMDsKVuW4Wmi3LTW31Qw6E",
    "NULcvXTkLczde32qs1rqgB"
  ]
}
ledger
object | null

Expandable. The associated Ledger object.

Example:
{
  "debit_credit": "debit",
  "editable": false,
  "financial_account_type": "bank_account",
  "id": "7JRNsKwy2Lw66caxVU7WGC",
  "is_required": false,
  "name": "Pluto Checking 4242",
  "report_cash_flow": true,
  "sort_code": "2240",
  "sub_type": "current_assets",
  "type": "asset"
}
tags
object[] | null

A list of all the Tags associated with the Line Entry, if any.

transaction
object | null

Expandable. The associated Transaction object, if one exists.

Example:
{
  "amount": 31282.28,
  "datetime": "2023-02-15T06:42:18Z",
  "description": "Payroll#230215",
  "id": "txn_UjL3BQnEaJtecuC7CUeDk",
  "journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
  "ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
  "line_entry_id": "XMDsKVuW4Wmi3LTW31Qw6E",
  "personal": false,
  "posted_status": "posted",
  "review_status": "reviewed",
  "source_account_id": "L7RR1Yz85FJoASPvPLs441"
}