Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 3.3 KB

create_an_withdraw_invoice.md

File metadata and controls

50 lines (39 loc) · 3.3 KB

Create Withdraw Invoice

Submit withdraw request. Before using this api, you have to setup your withdraw address from this webpage.

Api Request

Rate limit:

Allow 60 requests per minute per IP.

POST /wallet/withdraw/{currency}

Parameters:

You can find how to create payload and signature from authentication document.

Header Path Query Type Required Description Default Range Example
X-BITOPRO-APIKEY string Yes API Key
X-BITOPRO-PAYLOAD string Yes Payload
X-BITOPRO-SIGNATURE string Yes Signature
currency string Yes The currency to withdraw. Please follow the link to check the currency list. Please provide only currency name without protocol, you can define protocol in request body. twd, usdt, btc or eth

Request body:

Field Type Required Description Default Range Example
protocol string No The protocol to send. USDT have ERC20, OMNI and TRX to choose. MAIN MAIN, ERC20, OMNI, TRX, BSC, POLYGON ERC20
address string No The address or bank account to send fund. Required for non-TWD withdraw.
amount string Yes The amount of fund to send.
message string No The message or note to be attached with withdraw. For some currencies, it is required, for example, EOS and BNB.

Api Response

Response Example:

{
  "data": 
    {
      "serial": "20200417TW51258295",
      "currency": "TWD",
      "protocol": "MAIN",
      "address": "64382xx3234",
      "amount": "12353", //amount actually sent
      "fee": "15", //fee deducted from initial amount
      "total": "12368", //total amount deducted
      "message": "test" //may not be included 
    }
}

Back