Line Entries
Update Line Entry
Update details about a line entry.
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
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
line_entry_id
string
requiredThe 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
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 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>"
}