PUT
/
v0
/
line-entries
/
{line_entry_id}
Authorization
Header
Path
Body
curl --request PUT \
  --url https://api.sandbox.teal.dev/v0/line-entries/{line_entry_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --data '{
  "description": "<string>",
  "ledger_id": "<string>"
}'
{
  "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

line_entry_id
string
required

The line entry ID

Body

application/json
description
string | null

A description of the line entry

ledger_id
string | null

The ledger id

Response

201 - application/json
amount
string
required
datetime
string
required

The datetime that the line entry occurred.

debit_credit
enum<string>
required

Whether the amount is a credit or debit.

Available options:
debit,
credit
description
string | null
required

Description of a line entry.

editable
boolean
required

Indicates whether this line entry may be edited by the user.

id
string | null
required
journal_entry_description
string
required
journal_entry_id
string | null
required
ledger_id
string
required
ledger_name
string
required
related_line_entry_id
string | null
required

The line entry ID of a related line entry.

transaction_id
string | null
required

The transaction ID associated with the line entry.