cURL
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 } } ] } ] }
Save a new (or update an existing) set of chart of accounts templates for the specified business type
Bearer authentication header of the form Bearer <token>, where <token> is a partner-level token.
Bearer <token>
<token>
Id of the chart of accounts
"coa_123456"
Name of the chart of accounts
"Standard Business Accounts"
Business type id this chart applies to
"bt_789012"
Show child attributes
Success
The result of the action performed.
SUCCESS
FAILURE
The data generated by the action performed.