Skip to main content

Cancel an Order

API URL: POST https://gateway-api-demo.s2f.projectx.com/api/Order/cancel

API Reference: /api/order/cancel

Description


Cancel an order.

Parameters


NameTypeDescriptionRequiredNullable
accountIdintegerThe account ID.Requiredfalse
orderIdintegerThe order id.Requiredfalse

Example Usage


Example Request

curl -X 'POST' \
'https://gateway-api-demo.s2f.projectx.com/api/Order/cancel' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"accountId": 465,
"orderId": 26974
}'

Example Response

{
"success": true,
"errorCode": 0,
"errorMessage": null
}