Skip to main content

Create Subaccount Transfer

Transfers funds between the parent and child (sub) accounts.

tip
  • The transfer is processed asynchronously, and the transfer result is obtained through the request Transfer Records interface.
  • This interface can only be used for transfer between parent and child accounts.
  • A subaccount can only be attributed to a parent account.

HTTP Request

POST /private/v1/asset/sub-member/transfer

Request Parameters

ParameterRequiredTypeComments
request_idtruestringTransfer request UUID, globally unique, used for idempotent verification
cointruestringCurrency type
amounttruestringExchange to amount
sub_user_idtrueint32Subaccount
typetruestringDetermines the direction of transfer
account_typetruestringTransfer account type

Response Parameters

ParameterTypeComments
transfer_idstringTransfer result ID
request_idstringTransfer request ID

Request Example

POST /private/v1/asset/sub-member/transfer HTTP/1.1
X-BAPI-API-KEY: 0b2XYJpi8bi9tZPhft
X-BAPI-SIGN: ac6aae0cab89873a3635874af169a9224674a5e06f7e411cbbbb9d2f6905eae3
X-BAPI-TIMESTAMP: 1724600349557
X-BAPI-RECV-WINDOW: 1000000
Host: openapi-testnet.zoomex.com
Content-Type: application/json

{
"request_id": "6481da3c-5eff-45d9-90e8-72b3da105533",
"sub_user_id": 103741450,
"coin": "USDT",
"amount": "10",
"type": "IN",
"account_type": "SPOT"
}

Response Example

{
"ret_code": 0,
"ret_msg": "OK",
"result": {
"transfer_id": "d5c3f1e3-097c-4532-9f4d-3b2990bdcd85",
"request_id": "6481da3c-5eff-45d9-90e8-72b3da105533"
}
}