Skip to content
Longport Whale
Details

Create Account Details

Create an accounting entry (also supports creating from a copy_id pre-fill). It changes real accounting-entry data.

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

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

sourceIdnumber

Book Source. Journal-entry data source, a dropdown selection; values come from the pg_book_source dynamic enumeration and are not fixed.

bookingTypeIdstringrequired

Booking Type ID. Bookkeeping business type, a dropdown selection (cascading with the data source); values come from the pg_book_types_pickid_v2 dynamic enumeration and are not fixed.

aaidstring

Associated Account ID. The associated account AAID (not applicable in some scenarios; may be omitted).

txNostringrequired

Transaction No. Transaction serial number.

namestringrequired

Description. Entry name / description.

accountAtstringrequired

Account Date. Bookkeeping time, format YYYY-MM-DD 00:00:00.

ledgerDatestringrequired

Ledger Date. Accounting date, format YYYY-MM-DD HH:mm:ss.

objectCodestringrequired

Object Code. Target currency, a dropdown selection; values come from the global_currency_filter_by_account_channel dynamic enumeration and are not fixed.

debitFirstSubjectCodestringrequired

Debit First-level Subject Code. The debit first-level account, a dropdown selection.

debitSecondSubjectCodestringrequired

Debit Second-level Subject Code. The debit second-level account, cascading from the first-level account.

debitSubjectCodestringrequired

Debit Third-level Subject Code. The debit detail account, cascading from the second-level account.

creditFirstSubjectCodestringrequired

Credit First-level Subject Code. The credit first-level account, a dropdown selection.

creditSecondSubjectCodestringrequired

Credit Second-level Subject Code. The credit second-level account, cascading from the first-level account.

creditSubjectCodestringrequired

Credit Third-level Subject Code. The credit detail account, cascading from the second-level account.

amountstringrequired

Amount. Amount (string format).

remarkstring

Remark. Remark, up to 100 characters.

debitNamestring

Debit Subject Full Name. The debit account name, populated automatically with the debit detail account.

creditNamestring

Credit Subject Full Name. The credit account name, populated automatically with the credit detail account.

objectTypestring

Object Type. Object type.

audit_frontend_resourceobject

Audit Frontend Resource Snapshot. A data snapshot for auditing (the original-record snapshot in a copy scenario, an empty object for a pure create), used for backend audit comparison; not a user-entered field.

Responses

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

No nested fields

Whale Docs