Cancel Withdrawal
DELETE https://api.sfox.com/v1/transactions/:atx_id
Cancel a specified withdrawal. Cancelation is not guaranteed–if the withdrawal has already be processed and cannot be canceled, you will receive an error response.
Path Parameters
Name
Type
Description
atx_id required
int
The transaction ID of the withdrawal you are trying to cancel.
curl -X DELETE \
-H "Authorization: Bearer ${USER_AUTH_TOKEN}" \
'https://api.sfox.com/v1/transactions/12345'const axios = require('axios');
const config = {
  method: 'delete',
  url: 'https://api.sfox.com/v1/transactions/12345',
  headers: {
    'Authorization': `Bearer ${process.env.USER_AUTH_TOKEN}`
  }
}
axios(config)
  .then((response) => {
    console.log(response.status);
    console.log(response.data);
  })
  .catch((error) => {
    console.error(error.response.status);
    console.error(error.response.data);
  });import requests
import os
data = requests.delete(
  "https://api.sfox.com/v1/transactions/12345",
  headers={
    "Authorization": f"Bearer {os.environ['ENTERPRISE_API_KEY']}"
  }
)
print(data.status_code)
print(data.json())Last updated
