https://b-api.longbridge.xyz/book/createAccountDetailsV2Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Journal-entry data source, a dropdown selection; values come from the book_source dynamic enumeration and are not fixed.
Call GET /v1/datasets/refs/book_source to retrieve the current data dictionary, and use the returned entry's key as this field's value.
Bookkeeping business type, a dropdown selection (cascading with the data source); values come from the book_business_types_by_source dynamic enumeration and are not fixed.
Call GET /v1/datasets/refs/book_business_types_by_source to retrieve the current data dictionary, and use the returned entry's key as this field's value.
The associated account AAID (not applicable in some scenarios; may be omitted).
Specifies Transaction No.. This field is required.
Specifies Description. This field is required.
Bookkeeping time, format YYYY-MM-DD 00:00:00.
Accounting date, format YYYY-MM-DD HH:mm:ss.
Target currency, a dropdown selection; values come from the tenant_currencies_by_channel dynamic enumeration and are not fixed.
Call GET /v1/datasets/refs/tenant_currencies_by_channel to retrieve the current data dictionary, and use the returned entry's key as this field's value.
Specifies Debit First-level Subject Code. This field is required.
The debit second-level account, cascading from the first-level account.
The debit detail account, cascading from the second-level account.
Specifies Credit First-level Subject Code. This field is required.
The credit second-level account, cascading from the first-level account.
The credit detail account, cascading from the second-level account.
Amount involved in this business operation. This field is required.
Remark, up to 100 characters.
The debit account name, populated automatically with the debit detail account.
The credit account name, populated automatically with the credit detail account.
Specifies Object Type.
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 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields