Delete a consignment

If the consignment is Unallocated, using this operation deletes it.

However, if the consignment is Allocated, using this operation first deallocates it and then deletes it.

Note: You can also use this operation if the consignment lifecycle status is Printed or Ready to manifest. You cannot use this operation if the status of consignment is a Manifested or a later status.

SecurityBasicAuth
Request
path Parameters
consignmentCode
required
string

Consignment identifier generated by Metapack.

Responses
204

Consignment deleted

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

delete/consignments/{consignmentCode}
Request samples
Response samples
application/json
{
  • "errorCode": "string",
  • "message": "string",
  • "systemMessage": "string",
  • "traceID": "string",
  • "timestamp": "2019-08-24T14:15:22Z"
}