Skip to content
Credit Limit

Delete Credit of Closed Account

Deletes the customer credit-limit records of closed (cancelled) securities accounts.

Request parameters

  • Required: aaid_list (list of securities accounts), audit_frontend_resource (caller audit context)
  • See the field definitions for each field's format, allowed values, and business meaning.

Business notes

  • The account must be closed first (for example with whale_close_account), or the call returns 账户未注销 (account not closed).
  • The account must have a credit record; without one the endpoint returns 400 系统错误 (system error).
  • Multiple accounts can be deleted in one call.

Risk warning

This operation deletes real credit-limit records and cannot be undone. Confirm the list of securities accounts before calling.

Result

On success the specified canceled credit-limit records are deleted; subsequent state and returned data follow the 200 response definition.

POSThttps://b-api.lbkrs.com/risk/v1/delete_canceled_account_credit

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

aaid_listarray<string>required

A/C No. List. Submit the account-number list as a JSON array. This field is required.

audit_frontend_resourceobjectrequired

Audit Context. Contains $behavior / credit_amount.

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure

On success data is an empty object.

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