Skip to content
Longport Whale
Chart of Accounts

Update Account Items

Submitted from the inline "Edit" dialog on a row of the Accounting Subject page list.

POSThttps://b-api.longbridge.xyz/book/updateAccountItems

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Request body application/json

idstringrequired

Account Item ID. The primary key of the record being edited.

featurestringrequired

Account Feature. The account attribute ID; this field is disabled in edit mode but is still submitted with the form.

levelstringrequired

Account Level. The account level; values come from the book_level dynamic enum, where 1/2/3 correspond to first-/second-/third-level accounts respectively; disabled in edit mode but still submitted with the form.

namestringrequired

Account Name

directstringrequired

Account Direction. Debit/credit direction; value comes from the book_feature_direct dynamic enum.

outSubjectCodestring

External Subject Code. The account code used for syncing to external systems; optional.

audit_frontend_resourceobject

Audit Frontend Resource (Pre-edit Snapshot). A snapshot of the complete row data before editing, used for back-end audit comparison. It is not a business field.

Responses

HTTP 200No confirmable field definitions are available for the response yet.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs