POST api/TDCancelParcel
Request Information
URI Parameters
None.
Body Parameters
TDCancelParcelRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| TrackingNumbers | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TrackingNumbers": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<TDCancelParcelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Iparcel.TradeDirect.Models">
<TrackingNumbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</TrackingNumbers>
</TDCancelParcelRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of TDCancelParcelResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| TrackingNumber | string |
None. |
|
| ResponseCode | TDResponseCode |
None. |
|
| ResponseDescription | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"TrackingNumber": "sample string 1",
"ResponseCode": 0,
"ResponseDescription": "sample string 2"
},
{
"TrackingNumber": "sample string 1",
"ResponseCode": 0,
"ResponseDescription": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfTDCancelParcelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Iparcel.TradeDirect.Models">
<TDCancelParcelResponse>
<ResponseCode>Ok</ResponseCode>
<ResponseDescription>sample string 2</ResponseDescription>
<TrackingNumber>sample string 1</TrackingNumber>
</TDCancelParcelResponse>
<TDCancelParcelResponse>
<ResponseCode>Ok</ResponseCode>
<ResponseDescription>sample string 2</ResponseDescription>
<TrackingNumber>sample string 1</TrackingNumber>
</TDCancelParcelResponse>
</ArrayOfTDCancelParcelResponse>