Withdraw a digital asset from a customer wallet.
Security
SSO_TOKEN
- Mock serverhttps://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/custody/v2/withdraw/apply
const query = new URLSearchParams({
currency: 'string',
network: 'string',
address: 'string',
tag: 'string',
amount: '0',
name: 'string'
}).toString();
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/custody/v2/withdraw/apply?${query}`,
{
method: 'POST',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);Successful operation
An integer that indicates the status of the withdrawal transactions to return:
- 0 = email sent
- 1 = cancelled
- 2 = awaiting approval
- 3 = rejected
- 4 = processing
- 5 = failure
- 6 = completed
Example:0
Response
{ "id": "769800519366885376", "status": 0, "errorReason": "Error message" }