Cancel order
POST/cancel-order
Cancels an existing order after 5 minutes by expiring it.
warning
x-sideshift-secret is your account's private key. Never share it with anyone as it grants full access to your account and should be kept confidential.
Request
Header Parameters
x-sideshift-secret stringrequired
- application/json
Body
required
orderId stringrequired
The unique identifier of the order to cancel
Responses
- 204
- 400
- 404
- 500
Order successfully cancelled
Bad Request
- application/json
- Schema
- Example
Schema
error object
message stringrequired
code stringrequired
orderId string
depositRangeMin string
depositRangeMax string
{
"error": {
"message": "Order already expired",
"code": "BAD_USER_INPUT"
}
}
{
"error": {
"message": "Orders can only be cancelled after 5 minutes.",
"code": "BAD_USER_INPUT"
}
}
Not Found
- application/json
- Schema
- Example
Schema
error object
message stringrequired
code stringrequired
orderId string
depositRangeMin string
depositRangeMax string
{
"error": {
"message": "Incorrect or missing "x-sideshift-secret" header",
"code": "FORBIDDEN"
}
}
Internal Server Error
- application/json
- Schema
- Example
Schema
error object
message stringrequired
code stringrequired
orderId string
depositRangeMin string
depositRangeMax string
{
"error": {
"message": "Internal Server Error",
"code": "UNKNOWN"
}
}
Loading...