Journal Entries
Update Journal Entry
Update journal entry details or line entries. When updating line entries in the journal entry, debit and credit amounts must equal.
PUT
/
v0
/
journal-entries
/
{journal_entry_id}
Authorization
Header
Path
Body
curl --request PUT \
--url https://api.sandbox.teal.dev/v0/journal-entries/{journal_entry_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'teal-instance-id: <teal-instance-id>' \
--data '{
"datetime": "2023-11-07T05:31:56Z",
"description": "<string>",
"line_entry_changes": {
"create": [],
"delete": [],
"update": []
}
}'
{
"datetime": "2022-01-01T00:00:00Z",
"description": "Payment of legal fees",
"id": "C4ocnUQze8kDwQ3EczkZXn"
}
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
Body
application/json
datetime
string
requiredThe date that the journal entry occurred
description
string
requiredA description of the journal entry
line_entry_changes
object
requiredLine entries in the journal entry
Response
201 - application/json
datetime
string
requiredDate that the journal entry occurred
description
string
requiredid
string
requiredcurl --request PUT \
--url https://api.sandbox.teal.dev/v0/journal-entries/{journal_entry_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'teal-instance-id: <teal-instance-id>' \
--data '{
"datetime": "2023-11-07T05:31:56Z",
"description": "<string>",
"line_entry_changes": {
"create": [],
"delete": [],
"update": []
}
}'
{
"datetime": "2022-01-01T00:00:00Z",
"description": "Payment of legal fees",
"id": "C4ocnUQze8kDwQ3EczkZXn"
}