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.
Query parameters
-
Returns only available compartments if set to true
-
Indicates the parcel currently assigned to this compartment
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"
}