GET
/
v0
/
ledgers
/
{ledger_id}
/
last-balanced
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/ledgers/{ledger_id}/last-balanced \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
{
  "balance_check_result": "balanced",
  "last_balanced_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

Path Parameters

ledger_id
string
required

The ledger ID

Response

200 - application/json
balance_check_result
enum<string>
required
Available options:
balanced,
previously_balanced,
unbalanced
last_balanced_at
string | null
required

The datetime that the ledger was last balanced