Update parcel status
Post updates on parcel status regarding delivery, collection, etc. This endpoint allows updating the status of parcels based on various events.
Path parameters
-
externalLockerId
string Required The unique identifier of the locker
Responses
-
200 application/json
Parcel status updated successfully
-
401 application/json
Unauthorized. The request is missing valid authentication credentials.
-
400 application/json
Bad Request. The request is malformed or missing required parameters.
-
Parcel not found
-
500 application/json
Internal Server Error. An unexpected error occurred on the server.
POST
/app/lockers/{externalLockerId}/parcels/status
curl \
--request POST 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/app/lockers/{externalLockerId}/parcels/status' \
--header "X-APP-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '[{"parcelId":"parcel123","status":"DRIVER_DELIVERED","payload":"Additional details about the status update"}]'
Request examples
[
{
"parcelId": "parcel123",
"status": "DRIVER_DELIVERED",
"payload": "Additional details about the status update"
}
]
Response examples (200)
{
"status": "Parcel status has been updated successfully"
}
Response examples (401)
{
"error": "Unauthorized"
}
Response examples (400)
{
"error": "Invalid request. Check parameters and try again."
}
Response examples (500)
{
"error": "Internal Server Error"
}