POST
/
consumers
/
{consumer_id}
/
accounting
/
analytic-accounts
Create analytic account
curl --request POST \
  --url https://api.chift.eu/consumers/{consumer_id}/accounting/analytic-accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true,
  "code": "<string>",
  "name": "<string>",
  "currency": "<string>"
}'
{
  "id": "<string>",
  "active": true,
  "code": "<string>",
  "name": "<string>",
  "currency": "<string>",
  "balance": 123,
  "credit": 123,
  "debit": 123
}

Authorizations

Authorization
string
header
required

This access token needs to be included in each of your request to the Chift API.

Path Parameters

consumer_id
string<uuid>
required

Query Parameters

folder_id
string | null

Id of the accounting folder instance. A folder represents a legal entity within the system. Required when the multiple folders feature is enabled.

Body

application/json
code
string
required

Short code for the analytic account. Often used for internal referencing. May be required to be unique

Minimum length: 1
name
string
required

Name or label of the analytic account as it appears in the accounting system.

Minimum length: 1
currency
string
required

Indicates the currency of the analytic account (e.g., EUR, USD).

active
boolean | null
default:true

Flag indicating whether the analytic account is active.

Response

Successful Response

id
string
required

Unique id of the analytic account in the accounting system.

active
boolean
required

Flag indicating whether the analytic account is active.

name
string
required

Name or label of the analytic account as it appears in the accounting system.

code
string | null

Short code for the analytic account. Often used for internal referencing. For some integrations, it may be required to be unique.

currency
string | null

Indicates the currency of the analytic account (e.g., EUR, USD).

balance
number | null
default:0
credit
number | null
default:0
debit
number | null
default:0