---
title: "Sandbox Withdrawal"
method: POST
path: "/v1/sandbox_withdrawal"
tags: ["Sandbox"]
---

# Sandbox Withdrawal

`POST /v1/sandbox_withdrawal`

Debits the account in sandbox environment only.

## Request body

- SandboxWithdrawalRequest
  - `customer_withdrawal_id` string, required — User-specified withdrawal identifier
  - `symbol` string, required — Token symbol
  - `amount` string, required — Withdrawal amount as a decimal string
  - `from` AccountWalletKey, required
    - `id` string, required — The account ID
    - `wallet` 'main' | 'margin', required — The wallet type

## Response `200`

Withdrawal result

- object
  - `success` boolean, required — Whether the request was successful
  - `error` string — Error message, present only on failure
  - `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
  - `result` WithdrawalResult
    - `withdrawal_status` 'complete' | 'failure' | 'pending' | 'cancelled' | 'unknown', required — Status of the withdrawal
    - `withdrawal_id` string, required — Internal withdrawal ID
    - `customer_withdrawal_id` string, required — Customer-provided withdrawal ID
    - `hash` string — On-chain transaction hash (when available)

## Other responses

- `400` — Bad request. The request was malformed or failed validation.
- `401` — Authentication required. Provide a valid JWT or API key.
- `403` — Access denied. The authenticated account does not have permission.
- `429` — Rate limit exceeded. Slow down request frequency.
- `500` — Internal server error.

---

[API](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api.md) · [All operations](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ondoperps/ondo-perps-rest-api/revisions/39df6b2fa672/schema)
