Withdrawals
Use the following method to withdraw funds from client wallets or trading accounts opened on the B2Trader, MetaTrader 4/5 and cTrader platforms.
POST[host]/api/v2/withdrawals |
Make a withdrawal
Use this method to withdraw funds from a client wallet or trading account.
Request
Header parameters:
Authorization: Bearer <access_token>
Body
Specify the following parameters for a withdrawal transaction:
- accountId integer required
The account identifier.
- methodId integer required
The identifier of a withdrawal method.
Note
Only the manual method can be used to withdraw funds via the Back Office.
- amount number required
The withdrawal amount.
- providerCommission string
The commission charged by a payment system.
- vendorCommission string
The commission charged by a broker.
POST[host]/api/v2/withdrawals
curl --location --request POST 'https://host.name/api/v2/withdrawals' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
"accountId": 1,
"methodId": 1,
"amount": 100,
"providerCommission": "1.000000000000000000",
"vendorCommission": "1.000000000000000000"
}'
Response
A response contains a Transaction object providing information about the withdrawal transaction that has been made.