Skip to main content
POST
/
orders
/
{id}
/
cancel-v2
Cancel order by id
curl --request POST \
  --url https://sandbox.api.btdx.io/orders/{id}/cancel-v2 \
  --header 'authorization: <authorization>'
{
  "_meta": {
    "_count": 123,
    "_page": {
      "_pageNumber": 123,
      "_pageSize": 123,
      "_totalElements": 123,
      "_totalPages": 123
    }
  },
  "ids": [
    "<string>"
  ]
}

Headers

authorization
string
required

Header with the accessToken for the current session

Path Parameters

id
string
required

Response

Returns an IDResponse object containing the ID of the cancelled order. If the ID is missing, then the order was either already cancelled or fully matched.

_meta
object
ids
string[]