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
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
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
}
}
]
}
]
}