Skip to main content
POST
/
v6
/
templates
/
chartOfAccounts
Save chart of accounts templates
curl --request POST \
  --url https://sandbox.tight.com/v6/templates/chartOfAccounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "id": "coa_123456",
    "name": "Standard Business Accounts",
    "businessTypeId": "bt_789012",
    "accounts": [
      {
        "id": "tgl_324231",
        "accountNo": "11500",
        "name": "Accounts Receivable",
        "level": 3,
        "type": "ASSET",
        "assetType": "AR",
        "liabilityType": "AP",
        "equityType": "CAPITAL",
        "incomeType": "SERVICE_INCOME",
        "expenseType": "MERCHANT_FEE",
        "children": "<array>",
        "customData": {
          "internal_key": "some_internal_key",
          "some_other_field": 23434
        }
      }
    ]
  }
]
'
{
  "result": "SUCCESS",
  "data": [
    {
      "id": "coa_123456",
      "name": "Standard Business Accounts",
      "businessTypeId": "bt_789012",
      "accounts": [
        {
          "id": "tgl_324231",
          "accountNo": "11500",
          "name": "Accounts Receivable",
          "level": 3,
          "type": "ASSET",
          "assetType": "AR",
          "liabilityType": "AP",
          "equityType": "CAPITAL",
          "incomeType": "SERVICE_INCOME",
          "expenseType": "MERCHANT_FEE",
          "children": "<array>",
          "customData": {
            "internal_key": "some_internal_key",
            "some_other_field": 23434
          }
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is a partner-level token.

Body

application/json
id
string
required

Id of the chart of accounts

Example:

"coa_123456"

name
string
required

Name of the chart of accounts

Example:

"Standard Business Accounts"

businessTypeId
string
required

Business type id this chart applies to

Example:

"bt_789012"

accounts
object[]
required

Response

Success

result
enum<string>

The result of the action performed.

Available options:
SUCCESS,
FAILURE
data
object[]

The data generated by the action performed.