Initiate fee processing between master and investment accounts

Use this API method to initiate fee processing between a master account and a subscribed investment account

To initiate fee calculation and deduction from investment accounts subscribed to a specific master account, use the following method:

POST [host]/api/admin/fees/v2/fee/feeservice/processext

Request

Body parameters

Name
Type
Required
Description

account_login

string

Yes

The account login (number).

request_id

string

Yes

The identifier of a withdrawal request initiated in the external CRM system.

circle-check

Key points about request_id

Request example

curl -X POST "https://demo-standalone-v2.prod.b2copy.tech/api/admin/fees/v2/fee/feeservice/processext" \
     -H "Authorization: Bearer <your-access-token>" \
     -d '{
           "account_login": "123456",
           "request_id": "withdrawal_req_789"
         }'

Response

The response returns the status of the initiated fee processing.

Response example

Possible statuses:

  • 1 —FEE_PROCESS_STATUS_PENDING: the request is being processed (temporary status).

    Fee payments from investment accounts to the master account are in progress. After receiving this status, start monitoring by using polling.

  • 2 — FEE_PROCESS_STATUS_SUCCESS: the request completed successfully (final status).

    All fees have been paid from investment accounts to the master account. No further action is required.

circle-info

If no fee deduction is required for the account, the response returns FEE_PROCESS_STATUS_SUCCESS immediately without going through the PENDING status.

  • 3 — FEE_PROCESS_STATUS_ERROR: an error occurred during request processing (final status).

    Check the error details and retry if necessary.

Polling implementation

The FEE_PROCESS_STATUS_PENDING status is temporary and indicates that B2COPY is actively processing fee payments between accounts. Implement polling as follows:

  1. After make the initial request with account_login and request_id and receiving the FEE_PROCESS_STATUS_PENDING status, wait 3-5 seconds.

  2. Repeat the request with the same request_id.

  3. Continue polling until you receive FEE_PROCESS_STATUS_SUCCESS or FEE_PROCESS_STATUS_ERROR.

Polling example

Last updated

Was this helpful?