Skip to main content
PUT
/
service
/
general-ledger
/
accounts
/
{account_id}
curl -X PUT https://kube.acho.io/service/general-ledger/accounts/11100 \
  -H "Authorization: jwt YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "account_name": "Cash - Main Operating Account",
    "is_inactive": false
  }'
{
  "account_id": "11100",
  "account_number": 11100,
  "account_name": "Cash - Main Operating Account",
  "account_type": "Asset",
  "normal_balance": "debit",
  "currency": "USD",
  "balance": 50000.00,
  "opening_balance": 45000.00,
  "is_summary": false,
  "is_inactive": false,
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-15T14:30:00Z"
}

Request

Update properties of an existing GL account. Some properties cannot be changed after transactions have been posted to the account.

Headers

Authorization
string
required
JWT authentication token. Format: jwt YOUR_TOKEN
Content-Type
string
required
Must be application/json

Path Parameters

account_id
string
required
The unique identifier of the account to update

Body Parameters

account_name
string
Updated display name for the account
is_inactive
boolean
Set to true to deactivate the account
The following properties cannot be changed after creation:
  • account_number
  • account_type
  • normal_balance
  • currency
curl -X PUT https://kube.acho.io/service/general-ledger/accounts/11100 \
  -H "Authorization: jwt YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "account_name": "Cash - Main Operating Account",
    "is_inactive": false
  }'
{
  "account_id": "11100",
  "account_number": 11100,
  "account_name": "Cash - Main Operating Account",
  "account_type": "Asset",
  "normal_balance": "debit",
  "currency": "USD",
  "balance": 50000.00,
  "opening_balance": 45000.00,
  "is_summary": false,
  "is_inactive": false,
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-15T14:30:00Z"
}