Skip to main content
POST
/
v1
/
sandbox_withdrawal
Sandbox Withdrawal
curl --request POST \
  --url https://api.ondoperps.xyz/v1/sandbox_withdrawal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_withdrawal_id": "my-withdrawal-001",
  "symbol": "USDC",
  "amount": "500.00",
  "from": {
    "id": "10458932786832481",
    "wallet": "margin"
  }
}
'
{
  "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

User-specified withdrawal identifier

Example:

"my-withdrawal-001"

symbol
string
required

Token symbol

Example:

"USDC"

amount
string
required

Withdrawal amount as a decimal string

Example:

"500.00"

from
object
required

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