https://b-api.lbkrs.com/book/add_booking_typesProduction: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz
Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
The Broker ACCESS_TOKEN must be granted the permission below, or the call will be rejected.
Request body application/json
On creation the client always passes 0 (values.id = 0 in onSubmit).
Single-select value from optionsMap['book_data_source_editable'], such as 1 for funds or
another data-source option.
1 · Funds
Payment direction. Only one value is supported. This field may be omitted when
source_id belongs to the configured clientFeeList.
Allowed values: Payment, Payee (Collecting)
Payment · PaymentPayee · Collecting
Dropdown populated by getBizCodeOptions. The available business codes are loaded
dynamically when source_id changes.
Whether accounting is enabled. When this field is N, account_currencies must be
["ALL"].
Y · YesN · No
A tree multi-select; the value is ["ALL"] or a list of specific currency codes (e.g. ["USD", "HKD"]). Currency options come from optionsMap['tenant_currencies_by_channel']; when is_account=N it is fixed to ["ALL"]. Array elements are strings.
Extracted from the name.en of the option corresponding to biz_code in onSubmit and appended on submission; not a directly entered request field.
Extracted in onSubmit from name['zh-CN'] of the option matching biz_code and appended to the submission; not a directly entered request field.
On submit, taken from the name['zh-HK'] of the option corresponding to biz_code and attached to the request; not a directly entered request field.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureHTTP 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