Cancel parcel
Cancel the booking of a specific parcel. Only parcels that haven’t been delivered can be cancelled. This endpoint allows carriers to manage cancellations effectively.
Path parameters
-
parcelId
string Required The parcel ID to be cancelled
PATCH
/parcels/{parcelId}
curl \
--request PATCH 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/parcels/1234567890' \
--header "X-API-Key: $API_KEY"
Response examples (400)
{
"errorCode": "INVALID_REQUEST",
"message": "Bad request due to invalid input"
}
Response examples (401)
{
"errorCode": "UNAUTHORIZED",
"message": "The requested resource requires authentication"
}
Response examples (404)
{
"errorCode": "NOT_FOUND",
"message": "The requested resource was not found"
}
Response examples (500)
{
"errorCode": "SERVER_ERROR",
"message": "The server encountered an internal error"
}