PATCH
/
consumers
/
{consumer_id}
/
accounting
/
analytic-accounts
/
{analytic_account_id}
curl --request PATCH \
  --url https://api.chift.eu/consumers/{consumer_id}/accounting/analytic-accounts/{analytic_account_id} \
  --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": 0,
  "credit": 0,
  "debit": 0
}

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
required
analytic_account_id
string
required

Query Parameters

folder_id
string

Body

application/json
active
boolean
default:true
code
string
name
string
currency
string

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

Response

200
application/json
Successful Response
id
string
required
active
boolean
required
name
string
required
code
string
currency
string

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

balance
number
default:0
credit
number
default:0
debit
number
default:0