Skip to content
Corp Action Management

Corporate Action - Refund By Sub-position View

Initiate tax refunds grouped by the selected sub-position view.

After the caller picks a sub-position view, refund amounts are entered and submitted per group under that view. Each group carries a refund amount and the set of sub-position accounts it covers.

Request parameters

  • Required: ann_id (corporate-action announcement ID), view_id (sub-position view ID), groups (refund group list)
  • Each item in groups must provide group_id (group ID), amount (refund amount), and sub_position_scope (the sub-position accounts covered by the group)
  • Optional: audit_frontend_resource (caller-provided audit context)

Result

On success, the refund is initiated and the result is returned in data. Interpret the outcome together with the business code.

POSThttps://b-api.longbridge.xyz/corporate_action/refund_by_view

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

ann_idstringrequired

Corporate-action announcement ID identifying the corporate action to refund.

view_idstringrequired

Sub-position view ID. Use a view identifier returned by the sub-position view list (tax refund) endpoint.

groupsarray<object>required

Refund group list. Each item corresponds to a group under the selected view, giving its refund amount and the sub-position accounts it covers.

Child attributes
group_idstringrequired

Group ID.

group_namestring

Group name, a caller-provided display name for the group. Optional; omission does not affect refund processing.

amountstringrequired

Refund amount for the group, passed as a numeric string.

sub_position_scopearray<string>required

Sub-position accounts covered by the group, as a list of sub-position account identifiers (counterpart_account).

audit_frontend_resourceobject

Caller-provided audit context recording information such as the securities and announcement codes involved in this operation. No audit information is attached when omitted.

Responses

HTTP 200The request was processed successfully. The business result is in data; its exact fields follow the actual API response.
Standard response envelopecodemessagedata
dataobjectdata structure

Result of initiating the refund; the exact fields follow the actual API response.

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