Create Withdrawal
curl --request POST \
--url https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "<string>",
"address_book_entry_id": 123
}
'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/"
payload = {
"amount": "<string>",
"address_book_entry_id": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: '<string>', address_book_entry_id: 123})
};
fetch('https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"amount": "<string>",
"address": "<string>",
"tag": "<string>",
"label": "<string>",
"txid": "<string>",
"created": "2023-11-07T05:31:56Z",
"closed": "2023-11-07T05:31:56Z",
"status": 5
}Private
Create Withdrawal
Request a withdrawal to a saved address book entry and review past withdrawals.
The destination must be provided as the ID of a confirmed address book entry rather than a raw address. Two-factor authentication is required, and first-time addresses require email confirmation before the withdrawal is released.
POST
/
api
/
private
/
v2
/
wallet
/
{asset}
/
withdrawals
/
Create Withdrawal
curl --request POST \
--url https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "<string>",
"address_book_entry_id": 123
}
'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/"
payload = {
"amount": "<string>",
"address_book_entry_id": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: '<string>', address_book_entry_id: 123})
};
fetch('https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/withdrawals/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"amount": "<string>",
"address": "<string>",
"tag": "<string>",
"label": "<string>",
"txid": "<string>",
"created": "2023-11-07T05:31:56Z",
"closed": "2023-11-07T05:31:56Z",
"status": 5
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
V2 Withdrawal serializer that only accepts address book entry IDs. This prevents MITM attacks by not accepting raw addresses. Includes email confirmation for first-time addresses (same as V1 endpoint).
Response
201 - application/json
V2 Withdrawal serializer that only accepts address book entry IDs. This prevents MITM attacks by not accepting raw addresses. Includes email confirmation for first-time addresses (same as V1 endpoint).