POST api/Ship/CancelOrder
Use this method to cancel an order that has not shipped yet
Request Information
URI Parameters
None.
Body Parameters
CancelOrderParmName | Description | Type | Additional information |
---|---|---|---|
UserGUID |
Unique system generated user identifier |
string |
None. |
TrackingNumber |
Tracking number used to identify shipment to cancel |
string |
None. |
PersonWhoCancelled |
The name of person cancelling the shipment |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserGUID": "sample string 1", "TrackingNumber": "sample string 2", "PersonWhoCancelled": "sample string 3" }
application/xml, text/xml
Sample:
<CancelOrderParm xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserGUID>sample string 1</UserGUID> <TrackingNumber>sample string 2</TrackingNumber> <PersonWhoCancelled>sample string 3</PersonWhoCancelled> </CancelOrderParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CancelOrderRespName | Description | Type | Additional information |
---|---|---|---|
IsSuccessful |
If true, then method call was successful |
boolean |
None. |
ErrorMessage |
Contains an error message is method call failed |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsSuccessful": true, "ErrorMessage": "sample string 2" }
application/xml, text/xml
Sample:
<CancelOrderResp xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <IsSuccessful>true</IsSuccessful> <ErrorMessage>sample string 2</ErrorMessage> </CancelOrderResp>