Open Platform
Skip to content

Get issue card hotelInfo ​

https://euapi.ttlock.com/v3/cardEncoder/getHotelInfo

Users can request this API to get the hotelInfo for card issuance after creating a hotel in the TTLock APP. Each user account can only create one hotel, This function need pay to use

User can gain locks' building No, Floor No and sector via Get lock list or Get lock detail API

1 Request example ​

javascript
curl --location -g --request GET 'https://euapi.ttlock.com/v3/cardEncoder/getHotelInfo?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=780f7671b6e6be3010d9787f19207aca&date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
hotelInfoStringHotelInfo, use to issue hotel card
{
    "hotelInfo": "LTI2LC0yOSwtMzAsLTMwLC01LC03NSwtMjcsLTc0LC03NiwtNzYsLTE4LC0xOCwtMjgsLTE4LC03NiwtMjUsLTMxLC01LC0yNSwtMjcsLTMyLC0zMSwtMjgsLTI4LC0xNywtMzIsLTc3LC03OCwtMjYsLTc4LC03OCwtMjcsLTI3LC0yNiwtNzcsLTI4LC0yOSwtNzQsLTE4LC0xOCwtNzksLTE3LC0yNiwtMzAsLTI1LC0zMCwtMjYsLTMxLC03NywtNzUsLTUsLTI3LC0xNywtMjUsLTE3LC0yOSwtMzAsLTI4LC0yNSw3Mw=="
}
CopyRight © 2012-2026 TTLock.All Rights Reserved