POST
/
v0
/
platform-gl
/
coa-templates
/
{coa_template_id}
/
ledgers
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/platform-gl/coa-templates/{coa_template_id}/ledgers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "editable": false,
  "debit_credit": "debit",
  "financial_account_type": "bank_account",
  "ledger_sub_type": "current_assets",
  "ledger_type": "asset",
  "name": "Pluto Checking 4242",
  "parent_id": null,
  "report_cash_flow": true,
  "sort_code": "1400"
}'
{
  "id": "7JRNsKwy2Lw66caxVU7WGC",
  "children": null,
  "debit_credit": "debit",
  "editable": false,
  "financial_account_type": "bank_account",
  "is_required": false,
  "name": "Pluto Checking 4242",
  "parent_id": null,
  "report_cash_flow": true,
  "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.

Path Parameters

coa_template_id
string
required

The ID of the Chart of Accounts Template.

Body

application/json

Response

201
application/json

Successful Response

The response is of type object.