https://b-api.longbridge.xyz/v2/billing/billing_packageAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Specifies Package Name. This field is required.
Corresponds to the ORG_PACKAGE_TYPE and similar category enums in the first step of the form wizard.
Allowed values:
1- General2- FD Biz
1 · General2 · FD Biz
Org ID associated with this request.
The field name is spelled as in the API (maket_rule_ids, not market_rule_ids); elements are rule IDs (number).
Each array item has the form { billing_item_id, currency, max, min, threshold }.
billing_item_id identifies the billing scenario, currency is a currency code, and
max, min, and threshold are numeric strings.
Array elements { gt, lte, fee_rate, min }: configure the fee rate fee_rate and minimum charge min per interval (greater than gt, less than or equal to lte).
An enum value whose exact meaning was not confirmed in the client; it cascades according to the structure returned by billingItemFields.
Allowed values:
1- Fixed Rate2- Single-Step Tiered Rate3- Monthly Tiered Rate4- Floating Rate5- Floating Rate Single-Tier
1 · Fixed Rate2 · Single-Step Tiered Rate3 · Monthly Tiered Rate4 · Floating Rate5 · Floating Rate Single-Tier
Specifies Metric Cycle Type. This field is required.
Specifies Max Metric Type.
Specifies Max Metric Rate.
Specifies Min Metric Type.
Specifies Min Metric Rate.
Uses the same metric_type enum as the billing scenario, sourced from the
billing_metric_type reference data.
Allowed values:
1- Transaction Quantity(Fractional support)2- Transaction Amount/Other Amount3- Single Billing By Corresponding granularity4- Options Quantity5- Upstream6- Number Of Billing Contracts7- Number Of Orders8- Number Of Transactions9- Value Of Positions10- Calculation Based On Existing Scenarios11- Market Value Of Securities Lending13- Transaction Quantity Of Board Lot (Transfer Warehouse)14- Market Value (Transfer Warehouse)15- Number of Ems Orders
1 · Transaction Quantity(Fractional support)2 · Transaction Amount/Other Amount3 · Single Billing By Corresponding granularity4 · Options Quantity5 · Upstream6 · Number Of Billing Contracts7 · Number Of Orders8 · Number Of Transactions9 · Value Of Positions10 · Calculation Based On Existing Scenarios11 · Market Value Of Securities Lending13 · Transaction Quantity Of Board Lot (Transfer Warehouse)14 · Market Value (Transfer Warehouse)15 · Number of Ems Orders
The enum is the same as ref billing_granularity.
Allowed values:
1- Contract2- Order3- Trade Done4- Ems Order
1 · Contract2 · Order3 · Trade Done4 · Ems Order
Enum is the same as the billing_fee_cutoff_method reference.
Allowed values:
0- Follow the scene1- Round (round half up)2- Round up3- Round down
0 · Follow the scene1 · Round (round half up)2 · Round up3 · Round down
Specifies Cutoff Digits. This field is required.
Each item is a number and follows the same rules as the field with the same name in the billing scenario.
Array elements { max, min, threshold, max_metric_type, max_metric_rate, min_metric_type, name, rate, metric_type, granularity, cutoff_method, cutoff_digits }, used to add special rate items to the package.
Array element { field, value }:
field: Condition field number (integer) identifying which business dimension the condition applies to. For example,3denotes the account/counter condition.value: The selected value for the condition, as a string.
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