Skip to main content
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
}
'
{
  "id": 123,
  "amount": "<string>",
  "address": "<string>",
  "tag": "<string>",
  "label": "<string>",
  "txid": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "closed": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.

Path Parameters

asset
string
required
Pattern: ^\w{1,10}$

Body

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).

amount
string<decimal>
required
address_book_entry_id
integer
required
write-only

ID of confirmed address book entry

dualfactor_code
string
write-only
Required string length: 1 - 6

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).

id
integer
required
read-only
amount
string<decimal>
required
address
string
required
read-only
tag
string
required
read-only
label
string
required
read-only

Label from address book entry

txid
string
required
read-only

Transaction number associated with this withdrawal.

created
string<date-time>
required
read-only
closed
string<date-time> | null
required
read-only

Last status change.

status
enum<integer>
required
  • 5 - Draft
  • 10 - Pending
  • 15 - Processing...
  • 20 - Error!
  • 30 - Canceled (by user)
  • 40 - Rejected (by operator)
  • 50 - Expired (by system)
  • 60 - Processed
Available options:
5,
10,
15,
20,
30,
40,
50,
60