v3/Booking API's

Get Passcode

This API endpoint allows you to retrieve passcode information for a specific booking.

Method

GET

URL

https://api.mosler.in/api/v3/booking/passcode

Headers

NameTypeRequiredDescription
apikeystringYesAPI Key

Request Query Parameters

NameTypeRequiredDescription
ref_idstringYesThe unique reference ID for the booking.
providerstringNoThe provider type. Default is 'mosler'.

Response Parameters

NameTypeDescription
dataarrayAn array of access information objects.
errorbooleanIndicates if an error occurred during the API call.

Response Example

{
    "data": [
        {
            "access_id": "6582a5c7e4b0453a94d91237",
            "device_id": "63f79d8b8c0d1a55c3172f3c",
            "ttlock_data": {
                "keyId": 123456789,
                "lockData": "encrypted_lock_data_string",
                "startDate": "2025-04-24T00:00:00.000Z",
                "endDate": "2025-04-30T00:00:00.000Z",
                "remoteUnlock": true
            },
            "device_details": {
                "name": "Room 101 Door",
                "lock_id": "123456",
                "lock_mac": "AA:BB:CC:DD:EE:FF"
            }
        }
    ],
    "error": false
}