Skip to content
Rate Setups(Customized)

Edit Single Item Package

Edit a single item package (customized fee).

Request parameters

  • Required: id (single item package id, in the path), name, fee (fee detail).
  • Optional: aaid (securities account).
  • The fee structure is the same as the fee returned by "Single Item Package Detail".

Result

On success, the package is updated and the response data is an empty object.

PUThttps://b-api.longbridge.xyz/billing/single_item_package/{id}

Authorization

AuthorizationstringheaderRequired

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

Parameters

idstringRequired

Id of the single item package to edit.

Request body application/json

namestringrequired

Single item package name.

aaidstring

Associated securities account (optional).

feeobjectrequired

Fee detail. Same structure as the fee returned by "Single Item Package Detail" (billing_item_id, currency, min / max / threshold, rates, special_fees, metric_type, granularity, etc.).

Responses

HTTP 200The request was processed successfully. The response data is an empty object.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

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