Get locker details

GET /app/courier/lockers/{lockerUid}

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

Query parameters

  • weekdays integer

    Duration in weekdays for fetching session details (between 4 and 10).

    Minimum value is 4, maximum value is 10.

Responses

  • 200 application/json

    Locker details fetched successfully

    Hide response attributes Show response attributes object
  • 401 application/json

    Unauthorized. The request is missing valid authentication credentials.

    Hide response attribute Show response attribute object
    • error string

      Error message indicating lack of authorization

  • 400 application/json

    Bad Request. The request is malformed or missing required parameters.

    Hide response attribute Show response attribute object
    • error string

      Error message detailing the cause of the bad request

  • Locker not found

  • 500 application/json

    Internal Server Error. An unexpected error occurred on the server.

    Hide response attribute Show response attribute object
    • error string

      Error message indicating an internal server error

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"
}