6.0 Consignment Delete API
On this page:
Â
6.1 Consignment Delete API
Requires Authentication
A valid access Key must be provided in access_key request header.
POST labels/delete
This function allows your system to check the status of connotes that have been created, or delete consignments that have previously been created and have been cancelled.
Â
A connote can only be deleted prior to being manifested. Once a consignment has been manifested it is considered as being in transit, and can therefore not be deleted.
Â
6.2 Parameters
The body of the message should be sent as a JSON array.
A JSON list of consignment numbers.
A Maximum of 50 consignments can be deleted per call.
Â
6.3 Return format
JSON object array, with consignment number and associated outcome.
Valid outcome states are:
Invalid ticket number.
Cannot be deleted. Already deleted.
Cannot be deleted. Already delivered.
Cannot be deleted. Already in transit.
Cannot be deleted. Already manifested.
Â
6.4 Example Request
Endpoints
Live: https:// api.omniparcel.com/labels/delete
Staging /Test:Â https:// staging.omniparcel.com/labels/delete
Request
Header
access_key: [access_key_for_site_account]
Content-Type: application/json; charset=utf-8
Body
[
"SSPOT014115",
"SSPOT014114",
"SSPOT014113",
"SSPOT014112"
]
Response
{
"SSPOT014112": "Deleted",
"SSPOT014113": "Deleted",
"SSPOT014114": "Cannot be deleted. Already deleted.",
"SSPOT014115": "Cannot be deleted. Already in transit."
}
Â
Â