Key to cancel the package:
Allowed statuses to cancel a package
Manifested In Transit Pending Open Scheduled
Note:When an order is cancelled via the cancellation API the following conditions hold good for each type of package:
Prepaid / COD - Status of the package changes to "Returned". Pick Up - Status of the package changes to "Cancelled".