POST Package/SendCancelRequest

Request Information

URI Parameters

None.

Body Parameters

PackageRequest
NameDescriptionTypeAdditional information
CourierID

integer

None.

PackageID

integer

None.

RequestType

integer

None.

Description

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CourierID": 1,
  "PackageID": 2,
  "RequestType": 3,
  "Description": "sample string 4"
}

application/xml, text/xml

Sample:
<PackageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPI.Models">
  <CourierID>1</CourierID>
  <Description>sample string 4</Description>
  <PackageID>2</PackageID>
  <RequestType>3</RequestType>
</PackageRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PackageRequest'.

Response Information

Resource Description

GeneralResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<GeneralResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPI.Models">
  <message>sample string 2</message>
  <success>true</success>
</GeneralResponse>