Skip to content
Longport Whale
Details

Modify Account Detail

Edit an accounting entry (sharing the same form as create, differing only in the additional id). It changes real accounting-entry data.

POSThttps://b-api.longbridge.xyz/book/account_detail/update

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

idstringrequired

Account Detail ID. The entry id passed in the edit scenario; present only in the edit endpoint.

sourceIdnumber

Book Source. A dropdown selection; values come from the pg_book_source dynamic enumeration; disabled and not editable in edit mode; converted to a number before submission.

bookingTypeIdstringrequired

Booking Type ID. Dropdown selection; values come from the pg_book_types_pickid_v2 dynamic enum (loaded in cascade based on the source field). When the source is 0, this item is hidden and not submitted.

aaidstring

Associated Account ID. A custom component selects the associated account; hidden and not submitted when the source is 0.

txNostringrequired

Transaction No. Disabled and not editable in edit mode.

namestringrequired

Description. Free text.

accountAtstringrequired

Account Date. A date, converted to the 'YYYY-MM-DD 00:00:00' format before submission.

ledgerDatestringrequired

Ledger Date. A date, converted to the 'YYYY-MM-DD HH:mm:ss' format before submission.

objectCodestringrequired

Object Code. A dropdown selection; values come from the global_currency_filter_by_account_channel dynamic enumeration.

debitFirstSubjectCodestringrequired

Debit First-level Subject Code. Dropdown selection for the debit first-level account; the values come from the linked account-query interface.

debitSecondSubjectCodestringrequired

Debit Second-level Subject Code. Dropdown selection; debit second-level account, loaded in linkage with the debit first-level account.

debitSubjectCodestringrequired

Debit Third-level Subject Code. Dropdown selection for the debit lowest-level account, loaded in cascade based on the debit second-level account; once selected, the full name of the item is taken as the debit account name.

creditFirstSubjectCodestringrequired

Credit First-level Subject Code. Dropdown selection for the credit first-level account; the values come from the linked account-query interface.

creditSecondSubjectCodestringrequired

Credit Second-level Subject Code. Dropdown selection; credit second-level account, loaded in linkage with the credit first-level account.

creditSubjectCodestringrequired

Credit Third-level Subject Code. Dropdown selection for the credit lowest-level account, loaded in cascade based on the credit second-level account; once selected, the full name of the item is taken as the credit account name.

amountstringrequired

Amount. A number, converted to a string before submission.

remarkstring

Remark. Free text, up to 100 characters.

debitNamestring

Debit Subject Full Name. Not a form field; when the debit leaf account is selected, its value is taken from the option's full name and attached on submit.

creditNamestring

Credit Subject Full Name. Not a form field; when the credit leaf account is selected, its value is taken from the option's full name and attached on submit.

objectTypestring

Object Type. The object type, submitted along with the request.

audit_frontend_resourceobject

Audit Frontend Resource Snapshot. A snapshot of the original data fetched before editing, used for backend audit comparison; not a user-editable field.

Responses

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

No nested fields

Whale Docs