Journal Entries
Create Journal Entry
Create a journal entry for an instance.
POST
/
v0
/
journal-entries
Authorization
Header
Body
curl --request POST \
--url https://api.sandbox.teal.dev/v0/journal-entries \
--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_entries": [
{
"amount": 382.28,
"debit_credit": "credit",
"description": "<string>",
"ledger_id": "FZo8uxfiKS9AZ6N6Eujwut"
}
]
}'
{
"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
Body
application/json
datetime
string
requiredThe date that the journal entry occurred
description
string
requiredA description of the journal entry
line_entries
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 POST \
--url https://api.sandbox.teal.dev/v0/journal-entries \
--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_entries": [
{
"amount": 382.28,
"debit_credit": "credit",
"description": "<string>",
"ledger_id": "FZo8uxfiKS9AZ6N6Eujwut"
}
]
}'
{
"datetime": "2022-01-01T00:00:00Z",
"description": "Payment of legal fees",
"id": "C4ocnUQze8kDwQ3EczkZXn"
}