Get locker details
Fetch connection and access details for a specific locker including parcels available for pickup and delivery. This endpoint provides essential information for couriers to manage lockers efficiently.
Path parameters
-
lockerUid
string Required The Locker UID
Query parameters
-
weekdays
integer Duration in weekdays for fetching session details (between 4 and 10).
Minimum value is
4
, maximum value is10
.
Responses
-
200 application/json
Locker details fetched 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.
-
Locker not found
-
500 application/json
Internal Server Error. An unexpected error occurred on the server.
GET
/app/courier/lockers/{lockerUid}
curl \
--request GET 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/app/courier/lockers/{lockerUid}' \
--header "X-APP-Key: $API_KEY"
Response examples (200)
{
"externalLockerId": "locker123",
"providerLockerId": "providerLocker456",
"name": "Main Street Locker",
"hasScreen": true,
"location": {
"street": "Main Street",
"streetNumber": "123",
"postalCode": "12345",
"city": "Berlin",
"lon": 13.4051,
"lat": 22.5201,
"countryCode": "DE",
"locationCode": "LOC123"
},
"lockerModules": [
{
"moduleId": "module789",
"lockerAccessCode": "123456",
"pickupParcels": [
{
"parcelId": "parcel123",
"allocationType": "HARD_RESERVATION",
"shipmentType": "LAST_MILE",
"compartmentAccessToken": "access123",
"compartmentSenseToken": "sense456"
}
],
"deliveryParcels": [
{
"parcelId": "parcel123",
"allocationType": "HARD_RESERVATION",
"shipmentType": "LAST_MILE",
"compartmentAccessToken": "access123",
"compartmentSenseToken": "sense456"
}
]
}
]
}
Response examples (401)
{
"error": "Unauthorized"
}
Response examples (400)
{
"error": "Invalid request. Check parameters and try again."
}
Response examples (500)
{
"error": "Internal Server Error"
}