Download OpenAPI specification:Download
Open API for Integration between Client and Yellowbox
| userId | string |
| cardUid | string |
| displayName | string |
string | |
| groupId | string |
| phoneNumber | string |
{- "userId": "1234",
- "cardUid": "A3653E9149FD7B",
- "displayName": "John Doe",
- "email": "john@email.com",
- "groupId": "dunder-mifflin",
- "phoneNumber": "+61423123123"
}userId and groupId cannot be changed. All other body parameters are optional.
| userId required | string |
| cardUid | string |
| displayName | string |
string | |
| groupId | string |
| phoneNumber | string |
{- "cardUid": "A3653E9149FD7B",
- "displayName": "John Doe",
- "email": "john@email.com",
- "groupId": "dunder-mifflin",
- "phoneNumber": "+61423123123"
}{- "userId": "1234",
- "cardUid": "A3653E9149FD7B",
- "displayName": "John Doe",
- "email": "john@email.com",
- "groupId": "dunder-mifflin",
- "phoneNumber": "+61423123123"
}Get bookings or locker availability information by prefix and size for the given user and location. The response object will contain bookings if the user has active booking(s) at the location, otherwise it will contain availability.
| userId required | string Example: userId=1234 user Id for which to check for existing bookings |
| locationId required | string Example: locationId=dunder-mifflin Yellowbox location ID to query for existing bookings or availability at |
{- "bookings": [
- {
- "lockerId": "KIOEjr2sYyiwhioUyPKH",
- "location": "6052lqGZt9Q28Sc4ferP",
- "lockerNumber": 3,
- "prefix": "M",
- "prefixLong": "Mens",
- "bookingStart": "2022-02-07T14:20:41.080Z",
- "size": "medium"
}
], - "availability": [
- {
- "prefix": "M",
- "prefixLong": "Mens",
- "availabilityBySize": [
- {
- "size": "small",
- "countAvailable": 12
}
]
}
]
}Create a new booking for the provided user. Our backend will automatically select a locker for the user based on whether there are any matching lockers which are available and which the user was also the last user of, time spent idle, battery level etc.
| locationId required | string Yellowbox location ID |
| userId required | string user ID |
| prefix | string or null Prefix for which to create a booking within. If this field is null or omitted we will select a locker with no prefix for the booking, not any prefix. |
| size required | string Enum: "small" "medium" "large" Desired locker size to create a booking for |
{- "locationId": "dunder-mifflin",
- "userId": "1234",
- "prefix": "M",
- "size": "small"
}{- "lockerId": "KIOEjr2sYyiwhioUyPKH",
- "location": "6052lqGZt9Q28Sc4ferP",
- "lockerNumber": 3,
- "prefix": "M",
- "prefixLong": "Mens",
- "bookingStart": "2022-02-07T14:20:41.080Z",
- "size": "medium"
}Set the external lock keypad PIN for the user. This endpoint should also be used to update the users keypad PIN.
| userId required | string |
| pin required | string 4 digit keypad pin |
{- "pin": "1234"
}{- "message": "Missing or invalid PIN provided. Please ensure the PIN number is a string containing a 4 digit numeric value"
}Unlocks the requested locker by ID. The call will return when the unlock is complete or has failed.
| lockerId required | string The unique ID of the locker as returned by /locationBookingsOrAvailability |
| userId required | string user ID |
{- "lockerId": "NGPs0GwP4zNS4DKpwsLj",
- "userId": "1234"
}{- "message": "Missing or invalid required body value lockerId"
}