latestOpenAPI 3.0.12026-07-26222700728.0 KB

e9f0790a89af

Templates

Save chart of accounts templates

Save a new (or update an existing) set of chart of accounts templates for the specified business type

post/v6/templates/chartOfAccounts

Request body

idstring required

Id of the chart of accounts

namestring required

Name of the chart of accounts

businessTypeIdstring required

Business type id this chart applies to

Example request

[
  {
    "id": "coa_123456",
    "name": "Standard Business Accounts",
    "businessTypeId": "bt_789012",
    "accounts": [
      {
        "id": "tgla_324231",
        "accountNo": "11500",
        "name": "Accounts Receivable",
        "level": 3,
        "type": "ASSET",
        "assetType": "AR",
        "customData": {
          "internal_key": "some_internal_key",
          "some_other_field": 23434
        }
      }
    ]
  }
]

Response

Success

result'SUCCESS' | 'FAILURE'

The result of the action performed.

Example response

{
  "data": [
    {
      "id": "coa_123456",
      "name": "Standard Business Accounts",
      "businessTypeId": "bt_789012",
      "accounts": [
        {
          "id": "tgla_324231",
          "accountNo": "11500",
          "name": "Accounts Receivable",
          "level": 3,
          "type": "ASSET",
          "assetType": "AR",
          "customData": {
            "internal_key": "some_internal_key",
            "some_other_field": 23434
          }
        }
      ]
    }
  ]
}