POST
/
v0
/
ledgers
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/ledgers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --data '{
  "editable": true,
  "debit_credit": "debit",
  "financial_account_type": null,
  "name": "Pluto Checking 4242",
  "parent_id": null,
  "report_cash_flow": false,
  "sort_code": "1400",
  "sub_type": "current_assets",
  "type": "asset"
}'
{
  "id": "7JRNsKwy2Lw66caxVU7WGC",
  "name": "Pluto Checking 4242",
  "debit_credit": "debit",
  "editable": false,
  "financial_account_type": "bank_account",
  "is_required": false,
  "parent": {},
  "parent_id": "<string>",
  "report_cash_flow": false,
  "sort_code": "1400",
  "sub_type": "current_assets",
  "type": "asset"
}

Authorizations

Authorization
string
header
required

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

Headers

teal-instance-id
string
required

The Teal instance ID

Query Parameters

expand
enum<string>[] | null

Comma-separated list of Ledger expand paths.

Body

application/json

Response

201
application/json

Successful Response

The response is of type object.