By sending a POST request to cancel endpoint you can cancel order with specified order Id.

request endpoint: /api/cancel


Request parameters

NameTypeDescriptionRequired
nonceLongrepeated number send in the request headerY
orderIdLongorder ID to cancel

Y

Request example:

{"nonce":10000,  "orderId":100001}

Response - JSON:

NameTypeDescription
orderIdLongcancelled order ID
messageStringresult of the request


Message and response HTTP code depends on the result:

CodeMessage
200"Cancelled upon request!"
407"Invalid order Id"
407"Order does not belong to client: {userId}"


Response example:

{"orderId":100001,"message":"Cancelled upon request"}