Cancel Order API facilitates cancellation of an existing package/order. It comes under advance API integration, as order can be cancelled from CL Panel as well.

It is POST API call. It accepts the payload data in JSON format and also returns a response in JSON.

Key to cancel the package:

"cancellation": "true"

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".

Test Environment URL

https://staging-express.delhivery.com/api/p/edit

Production Environment URL

https://track.delhivery.com/api/p/edit