Referencia de APIAccounting / Chart Of Accounts Create Chart Of Accounts
POST /v1/chart-of-accounts • validated by `postChartAccount`
← Back to full API referencePOST/v1/chart-of-accountsAuthentication required
- Requires organization permissions for this resource.
- Validated by Zod schema: postChartAccount.
Request details
Path params
No path parameters for this endpoint.
Query params
No explicit query schema was captured for this endpoint.
Body fields
name (required)
Type: string
code
Type: string
type (required)
z.enum without literal array values
category (required)
Type: enum
Example: REAL
parentAccountId
Type: number
description
Type: string
isActive
Type: boolean
Example: true
dataSources
Type: array
Example:
dataSources[] (required)
Type: object
dataSources[].id
Type: string
dataSources[].type (required)
Type: enum
Example: INVOICES
dataSources[].operation (required)
Type: enum
Example: ADD
dataSources[].config
Type: object
dataSources[].config.invoice
Type: object
dataSources[].config.invoice.sourceField (required)
Type: enum
Example: amount
dataSources[].config.invoice.isSell (required)
Type: boolean
dataSources[].config.resources
Type: object
dataSources[].config.resources.ids
Type: array
Example:
dataSources[].config.resources.ids[] (required)
Type: number
dataSources[].config.resources.types
Type: array
Example:
dataSources[].config.resources.types[] (required)
Enum-like validator generated by zodFromObj
dataSources[].config.chartAccounts
Type: object
dataSources[].config.chartAccounts.ids
Type: array
Example:
dataSources[].config.chartAccounts.ids[] (required)
Type: number
dataSources[].config.commissions
Type: object
dataSources[].config.commissions.isSell
Type: boolean
dataSources[].config.manual
Type: object
dataSources[].config.manual.amount
Type: number
Default payloads
Body
{
"name": "string",
"type": {},
"category": "REAL"
}
Sample response
{
"accountId": "<accountId>"
}
Test this endpoint now
Use your own credentials and execute a live request directly from this page.
2. Select endpoint
POST/v1/chart-of-accountsAuthentication required
Group: Accounting / Chart Of Accounts
POST /v1/chart-of-accounts • validated by `postChartAccount`
- Requires organization permissions for this resource.
- Validated by Zod schema: postChartAccount.
3. Prepare request payload
4. Server response
Run a request to inspect the real-time response for your environment.