Cancel Order
DELETE https://api.sfox.com/v1/orders/:order_id
Cancels a specified order. If the order has already been canceled or completed, the API will return an error.
Path Parameters
Parameter
Type
Description
order_id required
string
The order ID generated by sFOX upon order creation.
Responses
Example Requests
curl -X DELETE
-H 'Authorization: Bearer <API_TOKEN>' \
'https://api.sfox.com/v1/orders/123'const axios = require('axios');
axios({
method: 'delete',
url: 'https://api.sfox.com/v1/orders/123',
headers: {
'Authorization': 'Bearer <API_KEY>'
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});import requests
data = requests.delete(
"https://api.sfox.com/v1/orders/123",
headers={
"Authorization": "Bearer <API_KEY>",
}
)
print(data)Last updated