Skip to main content
POST
/
v1
/
withdraw
Withdraw
curl --request POST \
  --url https://api.ondoperps.xyz/v1/withdraw \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_withdrawal_id": "<string>",
  "symbol": "<string>",
  "network": "avalanche",
  "amount": "<string>",
  "address": "<string>"
}
'
{
  "success": true,
  "result": {
    "withdrawal_status": "pending",
    "withdrawal_id": "w_9f8e7d6c5b4a3210",
    "customer_withdrawal_id": "my-withdrawal-001"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
customer_withdrawal_id
string
required

Unique ID for this withdrawal

symbol
string
required

Coin to withdraw (e.g. USDC, SOL)

network
enum<string>
required

Target network (e.g. ethereum, solana)

Available options:
avalanche,
ethereum,
solana
amount
string
required

Amount to withdraw

address
string
required

Withdrawal destination address

from
object

Response

Withdrawal result

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

error_code
string

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecated
string

Deprecation notice, if applicable

Example:

""

result
object