Withdraw Coin

This method is for withdrawing assets (except IDR).

To be able to use this method you need to enable withdraw permission when you generate the API Key. Otherwise you will get “No permission” error.

You also need to prepare a Callback URL. Callback URL is a URL that our system will call to verify your withdrawal requests. Various parameters will be sent to Callback URL, make sure to check this information on your server side. If all the data is correct, print out a string “ok” (without quotes). We will continue the request if only we receive “ok” (without quotes) response, otherwise the request will be failed.

Callback call will be sent through a POST request, with 5 seconds connection timeout.

Parameter
Required
Value
Description

currency

Yes

btc, ltc, doge, eth, etc

Currency to withdraw

withdraw_address

Yes

a valid address

Receiver address

withdraw_amount

Yes

numerical

Amount to send

withdraw_memo

No

a valid memo/message/destin ation tag

Memo to be sent to the receiver, if supported by the asset platform. Exchanges use this memo for accepting deposits for certain assets. Example: Destination Tag (for Ripple) Message (for NXT) Memo (for BitShares)

request_id

Yes

alphanumeric, max length 255

Custom string you need to provide to identify each withdrawal request. request_id will be passed to callback call so your system can identify the request.

network

yes

erc20, trc20, bep2, bep20

Currency network if exist

Body JSON
{
    "method": "withdrawCoin",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
    "currency" : "doge",
    "withdraw_address" : "D9iCdBLBosJzGSvpQGMSobwtdgB2rS1zam",
    "withdraw_amount" : "10",
    "withdraw_memo" : "memo",
    "request_id" : "trx002"
}

POST https://us-central1-appgregator.cloudfunctions.net/indodax/method/

Query Parameters

Name
Type
Description

name*

String

qantor.co.id

connection_name*

String

crypto01

Headers

Name
Type
Description

x-api-key*

String

U2Fsd...

secret-key*

String

84c7373b....(your indodax secret key)

{
    "success": 1,
    "status": "approved",
    "withdraw_currency": "doge",
    "withdraw_address": "D9iCdBLBosJzGSvpQGMSobwtdgB2rS1zam",
    "withdraw_amount": "10.00000000",
    "fee": "5.00000000",
    "amount_after_fee": "5.00000000",
    "submit_time": "1578909560",
    "withdraw_id": "doge-1941965",
    "txid": ""
}
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/indodax/method/?name=qantor.co.id&connection_name=crypto01' \
--header 'secret-key: 84c7373...' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
    "method": "withdrawCoin",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
    "currency" : "doge",
    "withdraw_address" : "D9iCdBLBosJzGSvpQGMSobwtdgB2rS1zam",
    "withdraw_amount" : "10",
    "withdraw_memo" : "memo",
    "request_id" : "trx002"
}'

Last updated