Deleting a package

For deleting a package

If a specific package in a shipment has to be deleted, the deletePackage method is used to perform the task.
Use deletePackage with e.g. the shipment number of the shipment and the referenceNumber1 as reference to the package to delete the package from a shipment.

The configuration of the client in Carrier Connect defines whether it is allowed to delete a package from a shipment. Options for deleting packages are 'Always allowed', 'Not, if assigned to a package and documents exist' and 'Not allowed'.

<packageReference>
   <shipmentReference>
      <transactionId>SHIPMENT_TEST2</transactionId>
      <referenceNumber1>SHIPMENT_TEST1</referenceNumber1>
      <shipmentNumber>SHIPMENT_TEST1</shipmentNumber>
   </shipmentReference>
   <packageTransactionId>SHIPMENT_TEST</packageTransactionId>
   <referenceNumber1>SHIPMENT_TEST3</referenceNumber1>
</packageReference>