Skip to content
Agent Billing

Company Fee Detail

Retrieve the fee configuration of a single company fee record by id.

Request parameters

  • Required: id (company fee record id), supplied as a query parameter.

Result

On success, data.fee contains the fee configuration. See the 200 response fields for the meaning of each field.

GEThttps://b-api.longbridge.xyz/billing/company_fee

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Parameters

idstringRequired

Company fee record id.

Responses

HTTP 200The request was processed successfully. data.fee contains the fee configuration.
Standard response envelopecodemessagedata
dataobjectdata structure
feeobject

Fee configuration. Key sub-fields:

  • billing_item_id: id of the associated charging scene.
  • currency: currency.
  • min / max / threshold: billing range and starting threshold.
  • rates: tiered rate list; each tier has gt, lte, fee_rate, min.
  • fee_rate_type: fee rate type.
  • special_fees: special rate list; each item has conditions (matching conditions, e.g. by stock symbol) and its own rate parameters.
  • metric_type / granularity: metric type and billing granularity.
  • cutoff_method / cutoff_digits: rounding method and retained digits.
  • billing_item: embedded charging scene configuration; fields are the same as "Charging Scene Detail".
  • calculation_method: calculation method.
HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs