GET
/
v0
/
platform-gl
/
coa-templates
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/platform-gl/coa-templates \
  --header 'Authorization: Bearer <token>'
{
  "next_page_token": "ikal0NEVfMhF8dJf4yQ6KQZmGD",
  "prev_page_token": "vuA7JeKI5c6FLnPt5JfRcZcJxW",
  "records": [
    {
      "id": "PpvsmFEv14yGDyT6iV6kXw",
      "name": "Coffee Shop Sole Prop",
      "ledgers": [
        {
          "id": "7JRNsKwy2Lw66caxVU7WGC",
          "children": [
            {
              "id": "7JRNsKwy2Lw66caxVU7WGC",
              "children": [
                {
                  "id": "7JRNsKwy2Lw66caxVU7WGC",
                  "children": [
                    {
                      "id": "7JRNsKwy2Lw66caxVU7WGC",
                      "children": [
                        {
                          "id": "7JRNsKwy2Lw66caxVU7WGC",
                          "children": [
                            {
                              "id": "7JRNsKwy2Lw66caxVU7WGC",
                              "children": [
                                "<any>"
                              ],
                              "debit_credit": "debit",
                              "editable": true,
                              "financial_account_type": "bank_account",
                              "is_required": true,
                              "name": "Pluto Checking 4242",
                              "parent_id": "<string>",
                              "report_cash_flow": true,
                              "sort_code": "1400",
                              "sub_type": "current_assets",
                              "type": "asset"
                            }
                          ],
                          "debit_credit": "debit",
                          "editable": true,
                          "financial_account_type": "bank_account",
                          "is_required": true,
                          "name": "Pluto Checking 4242",
                          "parent_id": "<string>",
                          "report_cash_flow": true,
                          "sort_code": "1400",
                          "sub_type": "current_assets",
                          "type": "asset"
                        }
                      ],
                      "debit_credit": "debit",
                      "editable": true,
                      "financial_account_type": "bank_account",
                      "is_required": true,
                      "name": "Pluto Checking 4242",
                      "parent_id": "<string>",
                      "report_cash_flow": true,
                      "sort_code": "1400",
                      "sub_type": "current_assets",
                      "type": "asset"
                    }
                  ],
                  "debit_credit": "debit",
                  "editable": true,
                  "financial_account_type": "bank_account",
                  "is_required": true,
                  "name": "Pluto Checking 4242",
                  "parent_id": "<string>",
                  "report_cash_flow": true,
                  "sort_code": "1400",
                  "sub_type": "current_assets",
                  "type": "asset"
                }
              ],
              "debit_credit": "debit",
              "editable": true,
              "financial_account_type": "bank_account",
              "is_required": true,
              "name": "Pluto Checking 4242",
              "parent_id": "<string>",
              "report_cash_flow": true,
              "sort_code": "1400",
              "sub_type": "current_assets",
              "type": "asset"
            }
          ],
          "debit_credit": "debit",
          "editable": true,
          "financial_account_type": "bank_account",
          "is_required": true,
          "name": "Pluto Checking 4242",
          "parent_id": "<string>",
          "report_cash_flow": true,
          "sort_code": "1400",
          "sub_type": "current_assets",
          "type": "asset"
        }
      ],
      "ledger_ids": [
        "7JRNsKwy2Lw66caxVU7WGC",
        "HLn8oy2eqMUCwjp1Cwdgco"
      ]
    }
  ]
}

Authorizations

Authorization
string
headerrequired

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

Query Parameters

expand
enum<string>[] | null

Comma-separated list of expandable paths.

Available options:
ledgers
limit
integer | null

The number of records to return. Max limit is 1000.

page_token
string

Response

200 - application/json
next_page_token
string | null
required

The token to use to request the next page

prev_page_token
string | null
required

The token to use to request the previous page

records
object[]
required

List of CoA templates