https://b-api.longbridge.xyz/book/edit_account_merge_rule_v2Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Rule ID. Send '0' on create; send the real id on edit.
Business Name. Up to 300 characters.
Original Currency. Values come from the global_currency_filter_by_account_channel dynamic enumeration and are not fixed.
Convert Currency. Values come from the global_currency_filter_by_account_channel dynamic enumeration and are not fixed.
Payee Booking Types. Element structure {source_id: string, booking_type_id: string}; the front end expands multiple booking_type_id values under the same source_id into multiple rows; submitted only when the "credit account" toggle is checked.
Payment Booking Types. Element structure {source_id: string, booking_type_id: string}; submitted only when the "Debit account" toggle is checked.
Account Merge Rule Info List. Each element's structure: debit_subject_codes (string, comma-joined account codes or 'ALL'); credit_subject_codes (string, same as above); loan_consolidation_type (enum respective = merge debit and credit separately / reduction = net debit against credit, values from the book_account_merge_rule_type dynamic enumeration); debit_merge_rule (enum 0-5, values from the book_summary_type dynamic enumeration: 0 = summarize by account / 1 = show details / 2 = summarize by account and memo / 3 = summarize by account and broker / 4 = total debit minus total credit / 5 = total credit minus total debit); debit_name (string, custom name); credit_merge_rule (same enum as debit_merge_rule); credit_name (string).
Audit Frontend Resource. Used only for audit-log diff display (the pre-edit record snapshot); not a business field and usually ignored by the backend.
Responses
HTTP 200No confirmable field definitions are available for the response yet.codemessagedatadataobjectdata structureNo nested fields