Create a new locker with the specified details for the carrier, provider, location, and features.
Security
ApiKeyAuth
- Mock serverhttps://docs.glsnxt.com/_mock/openapi-carrier-integration-api/lockers
- Staginghttps://api.staging.glsnxt.com/ooh/carrier-connector/v1/lockers
- Productionhttps://api.glsnxt.com/ooh/carrier-connector/v1/lockers
curl -i -X POST \
https://docs.glsnxt.com/_mock/openapi-carrier-integration-api/lockers \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"carrier": {
"lockerName": "Berlin Locker 01",
"lockerId": "XR1003",
"activationDate": "2025-08-20T00:00:00Z"
},
"provider": {
"name": "KEBA",
"lockerModel": "Model 1",
"lockerVersion": "v2.1"
},
"location": {
"street": "Main Street",
"streetNumber": "1",
"postalCode": "90210",
"city": "Berlin",
"lon": -118.2437,
"lat": 34.0522,
"countryCode": "DE",
"type": "indoor"
},
"metadata": [
{
"key": "maxWeightCapacity",
"value": "50kg"
}
],
"features": {
"hasScreen": true,
"hasPinPad": true,
"hasPinBarcodeReader": false
},
"lockerGroups": [
{
"key": "DEPOT",
"uid": "6838265090"
}
]
}'Locker created successfully.
Locker availability schedule.
Conditional constraints (enforced server-side, not by the generated client):
- If
accessModeisSCHEDULED,weeklyScheduleMUST be provided and non-empty. - If
accessModeisALWAYS,weeklyScheduleMUST be omitted.
Indicates which carrier owns the locker. null means the locker belongs to a 3rd party provider.
Example:"GLS"
A list of different compartment types available in the locker.
Example:
[ { "size": "SMALL", "count": 10, "height": 200, "width": 400, "length": 600 }, { "size": "MEDIUM", "count": 4, "height": 400, "width": 400, "length": 600 }, { "size": "LARGE", "count": 2, "height": 800, "width": 400, "length": 600 } ]
Response
{ "uid": "1002377838", "carrier": { "lockerName": "Berlin Locker 01", "lockerId": "XR1003", "activationDate": "2025-08-20T00:00:00Z", "status": "ACTIVE" }, "provider": { "name": "KEBA", "lockerModel": "Model 1", "lockerVersion": "v2.1", "lockerName": "BLOQ-Berlin-12045-001", "lockerUid": "PROVIDER_LOCKER_ABC123", "status": "ACTIVE" }, "location": { "street": "Main Street", "streetNumber": "1", "postalCode": "90210", "city": "Berlin", "lon": -118.2437, "lat": 34.0522, "countryCode": "DE", "type": "indoor" }, "features": { "hasScreen": true, "hasPinPad": true, "hasPinBarcodeReader": false }, "openingHours": { "accessMode": "ALWAYS", "weeklySchedule": [ … ], "exceptions": [ … ] }, "metadata": [ { … } ], "ownedByCarrier": "GLS", "compartmentTypes": [ { … }, { … }, { … } ] }