POST api/orders/cancellation
Create a cancellation instruction for an order.
Request Information
URI Parameters
None.
Body Parameters
Cancellation creation object.
CancellationCreation| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID |
Order ID for this amendment. Required if the order is not international. |
integer |
None. |
| CreatorID |
Person ID for whom this amendment is submitted. Required if the order is international. |
integer |
None. |
| PIN |
User PIN. Use if PIN validation is required. |
string |
None. |
| IsInternationalOrder |
Is International Order |
boolean |
None. |
| InternationalOrderUID |
International Order UID for this amendment. Required if the order is international. |
globally unique identifier |
None. |
Request Formats
application/json, text/json
{
"OrderID": 12345,
"CreatorID": 98765,
"PIN": "1234",
"IsInternationalOrder": false,
"InternationalOrderUID": null
}
application/xml, text/xml
<CancellationCreation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/"> <CreatorID>98765</CreatorID> <InternationalOrderUID i:nil="true" /> <IsInternationalOrder>false</IsInternationalOrder> <OrderID>12345</OrderID> <PIN>1234</PIN> </CancellationCreation>
Response Information
Resource Description
Cancellation creation result.
CancellationCreationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID |
Order ID the cancellation instruction was for. |
integer |
None. |
| InternationalOrderUID |
InternationalOrderUID the cancellation instruction was for. |
globally unique identifier |
None. |
| Success |
Status of the cancellation. |
boolean |
None. |
| Errors |
List of errors if the cancellation failed. |
Collection of string |
None. |
Response Formats
application/json, text/json
{
"OrderID": 1234,
"InternationalOrderUID": null,
"Success": true,
"Errors": null
}
application/xml, text/xml
<CancellationCreationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPP.Contracts.Services.Order"> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <InternationalOrderUID i:nil="true" /> <OrderID>1234</OrderID> <Success>true</Success> </CancellationCreationResult>
Error Response Information
Resource Description
Cancellation creation result.
stringError Response Formats
application/json, text/json
"sample string 1"
application/xml, text/xml
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>