https://b-api.longbridge.xyz/book/create_or_modify_account_entries_v2Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Entry Rule ID. Pass 0 when adding; when editing, pass the original record id or the copy-source id.
Data Source. The entry data source; values come from the pg_book_account_entries_source dynamic enum; converted to a number before submission; determines the visibility and required status of subsequent subfields such as payer/payee.
Is Payer Configured. A toggle controlling whether the payment_* series of fields are displayed/submitted; mutually exclusive with payee (only one of the two can be enabled, unless the data source allows both).
Payment Account Type ID. The values come from the pg_book_account_type_v2 dynamic enum (which changes in tandem with source_id); whether it is required is determined by the data-source configuration.
Payment Booking Type ID. Values come from the pg_book_types_pickid_v2 dynamic enum (cascading with source_id); required under most data sources.
Payment Channel Account. Takes the aaid/origin_id after selecting from the member search.
Payment Business Group. Values come from the pg_book_business_group dynamic enum.
Payee Account Type ID. Value comes from the pg_book_account_type_v2 dynamic enum (linked to source_id).
Payee Booking Type ID. Value comes from the pg_book_types_pickid_v2 dynamic enum (linked to source_id).
Payee Channel Account. Takes the aaid/origin_id after selecting from the member search.
Channel. Text input; required for some data sources.
User Account Type. The values come from the book_user_account_type dynamic enum and are converted to a number before submission.
Currency. Multi-select; elements are strings, with values from the global_currency_filter_by_account_channel dynamic enum.
Broker Org ID. Value comes from the book_broker_show dynamic enum; converted to a number before submission.
Trade Direction. Values come from the book_trade_direction dynamic enum.
Nature Type. Values come from the book_nature_type dynamic enum; displayed only when the data source is a bank.
Bank Account. The values come from the book_bank_account dynamic enum; only displayed when the data source is a bank.
Remark. A text area, up to 100 characters.
Amount Plus or Minus. Value comes from the booking_account_entry_amount_pm dynamic enum, e.g. PLUS/MINUS.
Entry Summary (Name Types) Config. Journal-entry summary list, each item corresponding to one summary-concatenation rule; items with type 0 or an empty value are filtered out before submission. Sub-structure: name_type (string, 1=fixed text / 2=referenced field type), name (string, optional, fixed text), name_field_type (string, optional; when using a referenced field type, taken from the summary-field dynamic enum corresponding to that data source).
Debit Account Feature. The values come from the pg_book_feature_all dynamic enum (with an additional "All" option).
Debit Subject Code. Debit account, selected from a tree; before submission the leaf-level account code of the selected path is taken.
Debit Amount Type. The values come from the book_subject_amount dynamic enum (such as absolute value); once selected, it synchronizes the credit amount type accordingly.
Debit Display Broker. Single-select with values yes/no; whether it is required is determined by the data source configuration; defaults to no.
Credit Account Feature. The values come from the pg_book_feature_all dynamic enum (with an additional "All" option).
Credit Subject Code. Credit account, selected from a tree; before submission the leaf-level account code of the selected path is taken.
Credit Amount Type. Value comes from the book_subject_amount dynamic enum; this field is disabled and kept consistent with the debit amount type.
Credit Display Broker. Single-select; value yes/no. Whether it is required reuses the judgment of the debit's displayed broker.
Audit Frontend Resource. An audit-trail field, not a business parameter; on add it marks the add action ($action=add), and on edit it carries the complete pre-edit form values and marks the edit action ($action=edit).
Responses
HTTP 200No confirmable field definitions are available for the response yet.codemessagedatadataobjectdata structureNo nested fields