Wallet

Withdraw

Submit a withdrawal request. Rate limited per account. For the withdrawal process and timing, see Withdrawals.

post/v1/withdraw

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/withdraw
  • Auth
    • HTTP bearer
    • or API key in header ONDO-KEY-ID

Request body

customer_withdrawal_idstring required

Unique ID for this withdrawal

symbolstring required

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

network'avalanche' | 'ethereum' | 'solana' required

Target network (e.g. ethereum, solana)

amountstring required

Amount to withdraw

addressstring required

Withdrawal destination address

Example request

{
  "from": {
    "id": "10458932786832481",
    "wallet": "margin"
  }
}

Response

Withdrawal result

successboolean required

Whether the request was successful

errorstring

Error message, present only on failure

error_codestring

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

deprecatedstring

Deprecation notice, if applicable

Example response

{
  "success": true,
  "result": {
    "withdrawal_status": "pending"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.