v1

latestOpenAPI 3.0.12026-07-26222700728.0 KB
GL Accounts

Save GL accounts

Save new (or update existing) GL accounts

post/v6/accounting/glAccounts

Request body

Example request

{
  "data": [
    {
      "id": "gla_38560327",
      "name": "Officer(s) Salaries and Wages",
      "status": "ACTIVE",
      "accountNo": "60210",
      "parentGlAccountId": "gla_38560327",
      "type": "EXPENSE",
      "level": 1,
      "taxCategory": "ADVERTISING",
      "customData": {
        "internal_key": "some_internal_key",
        "some_other_field": 23434
      }
    }
  ]
}

Response

Success

result'SUCCESS' | 'FAILURE'

The result of the action performed.

Example response

{
  "data": [
    {
      "data": {
        "id": "gla_38560327",
        "status": "ACTIVE",
        "name": "Officer(s) Salaries and Wages",
        "accountNo": "60210",
        "parentGlAccount": {
          "id": "gla_38560327",
          "accountNo": "60000",
          "name": "Payroll Expenses"
        },
        "type": "EXPENSE",
        "cashFlowType": "OPERATING",
        "level": 1,
        "taxCategory": "ADVERTISING",
        "customData": {
          "internal_key": "some_internal_key",
          "some_other_field": 23434
        }
      }
    }
  ]
}