Lock or unlock a parcel in its locker compartment. Locking prevents the consignee from collecting the parcel — for example while a cash-on-delivery payment is still pending — and unlocking releases it for collection. The carrier is identified by the API key.
Security
ApiKeyAuth
The lock state to apply. LOCKED blocks the consignee from collecting the parcel; UNLOCKED releases it for collection.
Enum:"LOCKED""UNLOCKED"
Example:"LOCKED"
- Mock serverhttps://docs.glsnxt.com/_mock/openapi-carrier-integration-api/parcels/{parcelId}/lock
- Staginghttps://api.staging.glsnxt.com/ooh/carrier-connector/v1/parcels/{parcelId}/lock
- Productionhttps://api.glsnxt.com/ooh/carrier-connector/v1/parcels/{parcelId}/lock
curl -i -X PATCH \
https://docs.glsnxt.com/_mock/openapi-carrier-integration-api/parcels/1234567890/lock \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"status": "LOCKED",
"reason": "CASH_ON_DELIVERY"
}'