1.Overview
The developer encapsulates the corresponding parameters as required to issue a room card. The issuance, card reading, and cancellation interfaces of the induction card all require the userDownload the lock shopkeeper application to cooperate with the interface for room card issuance, card reading, logout, etc. This function requires the administrator to manage the member Turn on the issuance and printing permission for members in
Tips:
If you need to use induction card issuance, card reading and other functions, please first connect creatorMobile/creatorEmail to the mobile phone or email field in the lock shopkeeper-management-member management. At the same time as the interface is docked, you need to go to the member management To enable members to issue printing permissions, the specific operations are as follows: Login lock shopkeeper-management-member management-select room permissions-after you choose, to issue printing permissions / sharing passwords
2.Request address
3.Request method
4. Parameter specification
Attribute Type Constraint Explanation
sig String Required Request signature
issueMac String Required MAC address of the Card issuer, please ignore this parameter when the lock types are QRLOCK and RFLOCK-V9
accountSid String Required Developer Account SID, the unique identifier of developer(32 characters of letters and numbers).
endTime String Required QRM valid end time, format: 1808050403 2018, 08, 05, 04, 03 minutes.
communityNo String Required Community No.
buildNo String Required Building No.
floorNo String Required Floor No.
roomNo String Required Room No.
creatorAreaCode String Optional Area code in front of the app phone number(Corresponding creatorMobile)
creatorMobile String Optional Mobile number, this mobile number user should be the same as the application user(Either CreatorMobile or CreatoreMail must be filled in. If both are filled in, CreatorMobile will prevail)
creatorEmail String Optional The mailbox, this mailbox user should be the same as the application user(Either CreatorMobile or CreatoreMail must be filled in. If both are filled in, CreatorMobile will prevail)
creatorPassword String Required User password encrypted by md5, corresponding to the user in the creator account field
opentype String Optional Open type,0:Single open(by default);1:Normally open.The lock type shall be QRBLOCK/QRMLOCK/QRALOCK.
owner String Optional Holder (This parameter is required when issuing cards which lock type is QRN or connected to the QR box.)
ownerGender Integer Optional Holder's gender, 0: female, 1: male (This parameter is required when issuing cards which lock type is QRN or connected to the QR box.)
ownerAreaCode String Optional The holder's phone area code (note that no other characters are used before the number.) This parameter is required when issuing cards of the lock type of QRN and connected QR boxes. )
ownerMobile String Optional Holder handset number (not including district number.When signs and issues QRN and already connects the QR box the lock type card, this parameter must fill in, when this handset number existence can inquire the cardholder name automatically, and neglects the owner parameter value; Otherwise for this handset number registration name will be the owner cardholder) eg:18510623155
isLost String Optional Whether it is a loss report card, 0: non-lost report card (default), 1: loss report card
After the loss report card is issued, you need to swipe the room lock once, and the previously issued room card will be reported lost and cannot open the door
5.Signature generation rule
Sequential splicing issueMac, endTime, accountSid, communityNo, buildNo, floorNo, roomNo, authToken is then encrypted using MD5 to obtain sig, and authToken is obtained from developer data.
6.Request samples
content-type:application/x-www-form-urlencoded
issueMac=7C778A6C7D9C&endTime=1902282359&accountSid=98651082ab89c3f1b50f35caf794179f&communityNo=1316879946&buildNo=001&floorNo=001&roomNo=R007&creatorAreaCode=86&creatorMobile=10000000000&creatorPassword=bbc69d27003568a7a94626ce4337bc9d&sig=ffe16ee6d771a575216e8be573b7e51a&owner=mine
Successful result:
{"status":200,"info":"success","message":"Successful operation"}
Failure reason returning:
{"status": 5118,"info": "No data is available","message": "Error"}
7. SDK
Hardware Consulting
Software
After-sales
Hotline
400-0900843