---
title: "Save GL accounts"
method: POST
path: "/v6/accounting/glAccounts"
tags: ["GL Accounts"]
---

# Save GL accounts

`POST /v6/accounting/glAccounts`

Save new (or update existing) GL accounts

## Request body

- MultiParamGlAccountPostDto
  - `data` GlAccountPostDto[], required
    - `id` string — Id of the GL account, required when updating an existing GL account
    - `name` string — Name of the GL account
    - `status` 'ACTIVE' | 'INACTIVE' | 'REMOVED' — Status of the GL account
    - `accountNo` string — Account number of the GL account
    - `parentGlAccountId` string — Id of the parent GL account
    - `type` 'ASSET' | 'LIABILITY' | 'EQUITY' | 'INCOME' | 'COGS' | 'EXPENSE' | 'OTHER_INCOME' | 'OTHER_EXPENSE' | 'SUSPENSE' — Type of the GL account
    - `subType` string — Sub-type of the GL account, based on the account type
    - `level` integer — Hierarchy level of the GL account
    - `taxCategory` string — Tax category for EXPENSE and OTHER_EXPENSE accounts
    - `customData` JsonNode, nullable — Custom JSON in which you can store any data with max length of 2000 characters
      - `empty` boolean
      - `array` boolean
      - `null` boolean
      - `object` boolean
      - `float` boolean
      - `string` boolean
      - `number` boolean
      - `missingNode` boolean
      - `valueNode` boolean
      - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
      - `pojo` boolean
      - `integralNumber` boolean
      - `floatingPointNumber` boolean
      - `short` boolean
      - `int` boolean
      - `long` boolean
      - `double` boolean
      - `bigDecimal` boolean
      - `bigInteger` boolean
      - `textual` boolean
      - `boolean` boolean
      - `binary` boolean
      - `container` boolean
      - `embeddedValue` boolean

## Response `200`

Success

- ResponseListMultiResponseGlAccountGetDto
  - `result` 'SUCCESS' | 'FAILURE' — The result of the action performed.
  - `data` MultiResponseGlAccountGetDto[] — The data generated by the action performed.
    - `result` 'SUCCESS' | 'FAILURE' — The result of the action performed.
    - `statusCode` 200 | 400 | 401 | 403 | 404 | 500 — The HTTP status code for the action performed.
    - `data` GlAccountGetDto — The data generated by the action performed.
      - `id` string, required — Id of the GL account
      - `status` 'ACTIVE' | 'INACTIVE' | 'REMOVED', required — Status of the GL account
      - `name` string, required — Name of the GL account
      - `accountNo` string, required — Account number of the GL account
      - `parentGlAccount` ParentGlAccountExpanded, nullable, required — Parent GL account
        - `id` string, required — Id of the GL account
        - `accountNo` string, required — Account number of the GL account
        - `name` string, required — Name of the GL account
      - `type` 'ASSET' | 'LIABILITY' | 'EQUITY' | 'INCOME' | 'COGS' | 'EXPENSE' | 'OTHER_INCOME' | 'OTHER_EXPENSE' | 'SUSPENSE', required — Type of the GL account
      - `subType` string, nullable, required — Sub-type of the GL account, based on the account type
      - `cashFlowType` string, nullable, required — Cash flow statement classification of the GL account
      - `level` integer, required — Hierarchy level of the GL account
      - `hasChildren` boolean, required — Whether the GL account has child accounts
      - `taxCategory` string, nullable, required — Tax category of the GL account, populated for EXPENSE accounts only
      - `systemGenerated` boolean, required — Whether this account is default account or custom account
      - `customData` JsonNode, nullable — Custom JSON in which you can store any data with max length of 2000 characters
        - `empty` boolean
        - `array` boolean
        - `null` boolean
        - `object` boolean
        - `float` boolean
        - `string` boolean
        - `number` boolean
        - `missingNode` boolean
        - `valueNode` boolean
        - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
        - `pojo` boolean
        - `integralNumber` boolean
        - `floatingPointNumber` boolean
        - `short` boolean
        - `int` boolean
        - `long` boolean
        - `double` boolean
        - `bigDecimal` boolean
        - `bigInteger` boolean
        - `textual` boolean
        - `boolean` boolean
        - `binary` boolean
        - `container` boolean
        - `embeddedValue` boolean
    - `error` ErrorItem[]
      - `type` 'UNKNOWN_ERROR' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'FORBIDDEN' | 'BAD_REQUEST' | 'JSON_ERROR' | 'DUPLICATE' | 'REQUIRED' | 'INVALID_VALUE' | 'NOT_MODIFIABLE' | 'INVALID_FORMAT' | 'NOT_FOUND' — The type of the error. Safe for programmatic use.
      - `message` string — A human-readable message providing more details about the error. Safe for displaying to a user.
      - `param` string — If the error is parameter-specific, the parameter related to the error. This can be used to display a message near the correct form field.
  - `error` ErrorItem[]
    - `type` 'UNKNOWN_ERROR' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'FORBIDDEN' | 'BAD_REQUEST' | 'JSON_ERROR' | 'DUPLICATE' | 'REQUIRED' | 'INVALID_VALUE' | 'NOT_MODIFIABLE' | 'INVALID_FORMAT' | 'NOT_FOUND' — The type of the error. Safe for programmatic use.
    - `message` string — A human-readable message providing more details about the error. Safe for displaying to a user.
    - `param` string — If the error is parameter-specific, the parameter related to the error. This can be used to display a message near the correct form field.

## Other responses

- `207` — Some GL accounts failed to save. See response body for error details.
- `400` — All GL accounts failed to save.
- `401` — Not authenticated
- `403` — Not authorized
- `404` — Endpoint not found
- `500` — Internal server error

---

[API](https://skmtc.net/tight/apis/tight-api.md) · [All operations](https://skmtc.net/tight/apis/tight-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tight/tight-api/revisions/e9f0790a89af/schema)
