Sandbox

Sandbox Withdrawal

Debits the account in sandbox environment only.

post/v1/sandbox_withdrawal

Request

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

Request body

customer_withdrawal_idstring required

User-specified withdrawal identifier

symbolstring required

Token symbol

amountstring required

Withdrawal amount as a decimal string

Example request

{
  "customer_withdrawal_id": "my-withdrawal-001",
  "symbol": "USDC",
  "amount": "500.00",
  "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.