---
title: "Cancel withdrawal"
method: DELETE
path: "/v3/offchain/withdrawal/{id}"
tags: ["Withdrawal"]
---

# Cancel withdrawal

`DELETE /v3/offchain/withdrawal/{id}`

## Request

- Base URL: `https://api.tatum.io`
- URL: `https://api.tatum.io/v3/offchain/withdrawal/{id}`
- Auth: API key in header `x-api-key`

/v3/offchain/withdrawal/{id}

#### 1 credit per API call.

  

This method is helpful if you need to cancel the withdrawal if the blockchain transaction fails or is not yet processed. This does not cancel already broadcast blockchain transaction, only Tatum internal withdrawal, and the ledger transaction, that was linked to this withdrawal.  
By default, the transaction fee is included in the reverted transaction. There are situations, like sending ERC20 on ETH, TRC token on TRON, XLM or XRP based assets, when the fee should not be reverted, because e.g. the fee is in calculated in Ethereum and transaction was in ERC20 currency. In this situation, only the transaction amount should be reverted, not the fee.

  Tip: For Virtual Accounts where withdrawal currency is a token, \\n 
  it is recommended to use “revert=false”. Otherwise, the blockchain \\n 
  transaction fee in native currency will be reverted as effective \\n 
  Virtual Account balance. Example: tx out fails and cancel \\n 
  “revert=true” from a 10 USDT + 0.10 TRX as “fee” would be \\n
  reverted as 10+30 USDT (where the TRX of the fee is converted to USDT)

## Path parameters

- `id` string, required

## Query parameters

- `revert` boolean

## Response `204`

OK

## Other responses

- `400`: Bad Request
- `401`: Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
- `403`: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
- `500`: Internal server error. There was an error on the server during the processing of the request.

---

[API](https://skmtc.dev/tatum/apis/virtual-accounts.md) - [All operations](https://skmtc.dev/tatum/apis/virtual-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/tatum/apis/virtual-accounts/revisions/ba220553084b?raw)
