https://b-api.longbridge.xyz/billing/company_feeAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Custodian; value comes from the clear_custodian_broker_no_all dynamic enum, not fixed.
Call GET /v1/datasets/refs/clearing_agents_all to retrieve the current data dictionary, and use the returned entry's key as this field's value.
The billing item ID, selected via the billing item selector.
The billing-item object, containing fields such as id/name_loc, submitted together with the selected billing scenario.
The measurement type; values come from the billing_fee_metric_type dynamic enum, such as 1 = filled quantity, 2 = filled amount, 9/10/11 = option-related, etc.; filtered by the selected billing item.
Allowed values:
1- Transaction Quantity(Fractional support)2- Transaction 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
Call GET /v1/datasets/refs/billing_fee_metric_type to retrieve the current data dictionary, and use the returned entry's key as this field's value.
1 · Transaction Quantity(Fractional support)2 · Transaction 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 measurement threshold; required when metric_type is not "charge by number of contracts". A numeric string with at most 10 decimal places.
Rate type. Values come from the dynamic billing_package_fee_type_ref enumeration;
see the options below.
Agent billing does not support monthly-tiered type
3.
Allowed values:
1- Flat Rate2- Tiered Rate Per Txn3- Monthly Tiered Rate4- Float Rate5- Float Rate (Per Txn)
1 · Flat Rate2 · Tiered Rate Per Txn3 · Monthly Tiered Rate4 · Float Rate5 · Float Rate (Per Txn)
The calculation method, derived from fee_rate_type: floating types (2, 7) are "2", and all others are "1".
Used for fixed rates. Each item has the form { fee_rate }; the value must be
non-negative and may have up to 10 decimal places.
The final rate structure submitted, generated from fixed_rates/single_rates/float_rates/month_rates according to fee_rate_type; each element contains fields such as gt/lte/fee_rate.
Currency; values come from the global_currency_filter_by_account_channel dynamic enum, such as USD/HKD/CNH.
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 Minimum Fee. This field is required.
A numeric string, default 999999999.
Maximum-ratio limit object { max_metric_type, max_metric_rate }, shown only under specific measurement-type / business-type combinations.
Specifies Max Metric Type.
Allowed values:
0- Disabled1- Enabled
0 · Disabled1 · Enabled
The rate value when the maximum ratio limit is enabled; multiplied by 100 for display and divided by 100 to restore it upon submission.
Billing granularity; value comes from the billing_fee_granularity dynamic enum, shown only in scenarios such as filled quantity / filled amount.
Allowed values:
1- Contract2- Order3- Trade_done4- Ems_order
Call GET /v1/datasets/refs/billing_fee_granularity to retrieve the current data dictionary, and use the returned entry's key as this field's value.
1 · Contract2 · Order3 · Trade_done4 · Ems_order
The minimum ratio limit object { min_metric_type, min_metric_rate }.
Expanded from min_metric.min_metric_type.
Expanded from min_metric.min_metric_rate.
Rounding method; value comes from the billing_fee_cutoff_method dynamic enum.
Allowed values:
1- Round2- Round Up3- Round Down
Call GET /v1/datasets/refs/billing_fee_cutoff_method to retrieve the current data dictionary, and use the returned entry's key as this field's value.
1 · Round2 · Round Up3 · Round Down
The number of rounding digits; the values come from the billing_cutoff_digit dynamic enum. Disabled when the rounding method is "Follow Scenario".
Allowed values: 0, 1, 2, 3
0 · 01 · 12 · 23 · 3
Measurement-period type. Use 4 for monthly tiers and 0 otherwise. Broker billing
always uses 0.
An array of differentiated rate conditions, filtered by business type (in the agent scenario, conditions whose business type includes 11 are filtered out).
A frontend form snapshot attached upon submission for backend audit tracing; in the add scenario it is fixed as an add operation.
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