Initiates fee calculation and deduction from investment accounts subscribed to a specific master account — typically tied to a withdrawal request raised in your CRM.
Endpoint
POST [host]/api/admin/fees/v2/fee/feeservice/processextRequest body
| Name | Type | Required | Description |
|---|---|---|---|
| account_login | string | Yes | The account login (number). |
| request_id | string | Yes | The withdrawal request id from your external CRM (links the CRM withdrawal to B2COPY fee processing). |
About request_id
Your CRM generates a unique id for the withdrawal and passes it as request_id. Reuse the same id in polling requests to track fee-payment status for that withdrawal.
curl -X POST "[host]/api/admin/fees/v2/fee/feeservice/processext" \
-H "Authorization: Bearer <your-access-token>" \
-d '{
"account_login": "123456",
"request_id": "withdrawal_req_789"
}'Response & statuses
{
"account_login": "123456",
"request_id": "withdrawal_req_789",
"status": 1
}| Status | Name | Meaning |
|---|---|---|
| 1 | FEE_PROCESS_STATUS_PENDING | Processing (temporary) — fee payments in progress; start polling. |
| 2 | FEE_PROCESS_STATUS_SUCCESS | Done (final) — all fees paid; no further action. |
| 3 | FEE_PROCESS_STATUS_ERROR | Error (final) — check details and retry if needed. |
No fee due
If no fee deduction is required, the response returns FEE_PROCESS_STATUS_SUCCESS immediately, without a PENDING status.
Polling
Send the initial request
Call the method with
account_loginandrequest_id; onPENDING, wait 3–5 seconds.Repeat with the same request_id
Poll the method again using the same id.
Stop on a final status
Continue until you receive
FEE_PROCESS_STATUS_SUCCESSorFEE_PROCESS_STATUS_ERROR.
