This API endpoint allows you to regenerate and retrieve passcode information for a specific booking.
Method
GET
URL
https://api.mosler.in/api/v3/booking/resend_passcode
Request Query Parameters
|
ref_id | string | Yes | The unique reference ID for the booking. |
provider | string | No | The provider type. Default is 'mosler'. |
Response Parameters
|
data | array | An array of regenerated access information objects. |
error | boolean | Indicates 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
}