This method deletes an unallocated consignment.


It is assumed that you have worked through Creating your first Request to a Service and are familiar with the Properties needed to Call or Create a Consignment.

How to submit a request

Proceed as follows:

  1. If you have not already done so, open a new project using the WSDL ConsignmentService.xml.

  2. Create a new request under deleteConsignment,

  3. Enter the authorisation for the request.

  4. Specify the code of the existing consignment to be deleted.

  5. Click Arrow.png to submit the request.

Example Request

<soapenv:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soapenv="" xmlns:ser="urn:DeliveryManager/services">
      <ser:deleteConsignment soapenv:encodingStyle="">
         <consignmentCode xsi:type="soapenc:string" xmlns:soapenc="">DMC4BY1V44MW</consignmentCode>

If the input is valid, then the specified consignment is removed, and true is returned, as in the example below.

Example Response

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="">
      <ns1:deleteConsignmentResponse soapenv:encodingStyle="" xmlns:ns1="urn:DeliveryManager/services">
         <deleteConsignmentReturn xsi:type="xsd:boolean">true</deleteConsignmentReturn>