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
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

ledger_id
string
required

The ledger ID

Body

application/json
balance
required

The opening balance for the ledger

Response

201 - application/json
datetime
string
required

Date that the journal entry occurred

description
string
required
id
string
required