Ledgers
Set Ledger Opening Balance
Sets the opening balance for a ledger. The ledger must not have any line entries.
POST
/
v0
/
ledgers
/
{ledger_id}
/
opening-balance
Authorization
Header
Path
Body
curl --request POST \
--url https://api.sandbox.teal.dev/v0/ledgers/{ledger_id}/opening-balance \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'teal-instance-id: <teal-instance-id>' \
--data '{
"balance": 123
}'
{
"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
ledger_id
string
requiredThe ledger ID
Body
application/json
balance
required
The opening balance for the ledger
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/ledgers/{ledger_id}/opening-balance \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'teal-instance-id: <teal-instance-id>' \
--data '{
"balance": 123
}'
{
"datetime": "2022-01-01T00:00:00Z",
"description": "Payment of legal fees",
"id": "C4ocnUQze8kDwQ3EczkZXn"
}