api/v1/orders/{id}/cancel
Method: POST https://simportal-api-staging.azurewebsites.net/api/v1/orders/{id}/cancel
Summary
Cancels an order only if its current state is pending, stalled or open. Complete and failed orders cannot be cancelled
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The order id that's been requested to be cancelled |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
OrderResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderId | globally unique identifier |
None. |
|
| Created | date |
None. |
|
| State | OrderState |
None. |
|
| OrderTimescale | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"OrderId": "75403296-d693-478f-93a5-b5969347135a",
"Created": "2025-10-29T18:30:06.9523054+00:00",
"State": 0,
"OrderTimescale": "sample string 3"
}
application/xml, text/xml
Sample:
<OrderResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimPortalApi.Models.Orders"> <OrderTimescale>sample string 3</OrderTimescale> </OrderResponseModel>