Get locker compartments
Fetch available compartments for a specific locker. This endpoint helps in identifying the compartments that are available for use within a locker.
Path parameters
-
externalLockerId
string Required The external locker ID
Responses
-
200 application/json
Locker compartments 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/lockers/{externalLockerId}/compartments
curl \
--request GET 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/app/lockers/{externalLockerId}/compartments' \
--header "X-APP-Key: $API_KEY"
Response examples (200)
[
{
"name": "MEDIUM",
"dimensions": {
"depth": 500,
"height": 300,
"width": 400
},
"freeCompartments": 5,
"current": true
}
]
Response examples (401)
{
"error": "Unauthorized"
}
Response examples (400)
{
"error": "Invalid request. Check parameters and try again."
}
Response examples (500)
{
"error": "Internal Server Error"
}