Deposits

Use the following method to deposit funds to client wallets or trading accounts opened on the B2Trader, MetaTrader 4/5 and cTrader platforms.

POST[host]/api/v2/deposits

Make a deposit

Make a deposit

Use this method to deposit funds to a client wallet or trading account.

Request

Header parameters:

  • Authorization: Bearer <access_token>

Body

Specify the following parameters for a deposit transaction:

accountId integer required

The account identifier.

methodId integer required

The identifier of a deposit method.

Note

Only the manual method can be used to deposit funds via the Back Office.

amount number required

The deposit amount.

providerCommission string

The commission charged by a payment system.

vendorCommission string

The commission charged by a broker.

POST[host]/api/v2/deposits

curl --location --request POST 'https://host.name/api/v2/deposits' \
--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 deposit transaction that has been made.