AmpleTrails Api Document SO
AmpleTrails Api Document SO
API Documentation SO
Version 6.0
AmpleTrails Biometric Solutions
CONTENTS
1. Overview
a. Prerequisites
b. Support
2. Interface Specifications
a. API Request
b. API Response
c. API Exception
3. Web API’s
1. Fetch Biometric Logs Data Between Dates
2. Fetch Biometric Logs Data After Maximum Attendance Log Index
AmpleTrails Biometric Solutions
OVERVIEW
a) Prerequisites
Below are the following details required to access AmpleTrails API’s.
• eTime database.
This can be used in variety of Languages to access REST API’s like .Net, JAVA etc.
b) Support
In case for any clarifications, Please get in touch with the API Support
with Ampletrails team
AmpleTrails Biometric Solutions
SPECIFICATIONS
The API uses Http Requests to receive data and send responses in JSON format.
a) API Request:
An API request lets you contact a server with API endpoints that you want to
reach and perform some action. Those actions are HTTP methods.
b) API Response:
An API response consists of the body, headers, and the status code.
c) API Exception:
if there is an exception during the processing of the request then the
application will send the response in the following
AmpleTrails Biometric Solutions
WEB API’S
1. Fetch Biometric Logs Data Between Dates
Method: GET
http://abc.com/api/WebAPI/GetAttendanceBetweenDates
Example:
http://abc.com/api/WebAPI/GetAttendanceBetweenDates?AppKey=6432467912&StartDate=07/01/2020
9:12&EndDate=07/01/2020 20:02
{
"DeviceLogId": "1",
"DeviceId": "23",
"UserId": "102",
"EmployeeCode": "102",
"EmployeeName": "Satya Ranjan Das",
"LogDate": "7/1/2020 9:04:09 AM",
"DownloadDate": "7/1/2020 9:04:20 AM",
"AttendanceDate": "01 Jul 2020",
"AttendanceTime": "09:04",
"Location": "PMKK Silchar",
"Direction": "",
"AttDirection": "",
"DeviceName": null,
"SerialNumber": "BJ2C190460658",
"IpAddress": "192.168.2.201",
"Status": "Success"
},
{
"DeviceLogId": "2",
"DeviceId": "21",
"UserId": "288",
"EmployeeCode": "288",
"EmployeeName": "Lalbiaksanga",
AmpleTrails Biometric Solutions
Method: GET
http://abc.com/api/WebAPI/GetAttendanceBetweenDatesTime
Example:
http://abc.com/api/WebAPI/GetAttendanceBetweenDatesTime?AppKey=6432467912&StartDateTime=07/01/2020
09:12:00&EndDateTime=07/01/2020 20:02:00
AmpleTrails Biometric Solutions
{
"DeviceLogId": "1",
"DeviceId": "23",
"UserId": "102",
"EmployeeCode": "102",
"EmployeeName": "Satya Ranjan Das",
"LogDate": "7/1/2020 9:04:09 AM",
"DownloadDate": "7/1/2020 9:04:20 AM",
"AttendanceDate": "01 Jul 2020",
"AttendanceTime": "09:04",
"Location": "PMKK Silchar",
"Direction": "",
"AttDirection": "",
"DeviceName": null,
"SerialNumber": "BJ2C190460658",
"IpAddress": "192.168.2.201",
"Status": "Success"
},
{
"DeviceLogId": "2",
"DeviceId": "21",
"UserId": "288",
"EmployeeCode": "288",
"EmployeeName": "Lalbiaksanga",
"LogDate": "7/1/2020 9:19:33 AM",
"DownloadDate": "7/1/2020 9:19:32 AM",
"AttendanceDate": "01 Jul 2020",
"AttendanceTime": "09:19",
"Location": "PMKK AIZWAL",
"Direction": "",
"AttDirection": "",
"DeviceName": null,
"SerialNumber": "BJ2C193060915",
"IpAddress": "192.168.101.11",
"Status": "Success"
}
]
AmpleTrails Biometric Solutions
Method: GET
http:/abc.com/api/WebAPI/GetAttendanceBetweenDates
Example:
http://abc.com/api/WebAPI/GetAttendanceAfterIndex?AppKey=6432467912&AttendanceMonth=7&Attendance
Year=2020&AttendanceAfterIndex=70
{
"DeviceLogId": "1",
"DeviceId": "23",
"UserId": "102",
"EmployeeCode": "102",
"EmployeeName": "Satya Ranjan Das",
"LogDate": "7/1/2020 9:04:09 AM",
"DownloadDate": "7/1/2020 9:04:20 AM",
"AttendanceDate": "01 Jul 2020",
"AttendanceTime": "09:04",
"Location": "PMKK Silchar",
"Direction": "",
"AttDirection": "",
"DeviceName": null,
"SerialNumber": "BJ2C190460658",
"IpAddress": "192.168.2.201",
"Status": "Success"
},
{
"DeviceLogId": "2",
"DeviceId": "21",
"UserId": "288",
"EmployeeCode": "288",
"EmployeeName": "Lalbiaksanga",
"LogDate": "7/1/2020 9:19:33 AM",
"DownloadDate": "7/1/2020 9:19:32 AM",
AmpleTrails Biometric Solutions
Method: GET
http://abc.com/api/WebAPI/GetAttendanceInOutDetailed
Example:
http://abc.com/api/WebAPI/GetAttendanceInOutDetailed?AppKey=6432467912&StartDate=2022-09-
01&EndDate=2022-09-30
AmpleTrails Biometric Solutions
Method: GET
http://abc.com/api/WebAPI/GetBiometricDevicesListSO
Example:
http://abc.com/api/WebAPI/GetBiometricDevicesListSO?AppKey=6432467912
"OfflineHours": "0",
"OfflineMinutes": "0",
"Status": "Success"
}
]
Postman:
Method: GET
http://abc.com/api/WebAPI/GetBiometricDeviceOnlineStatusSO
Example:
http://abc.com/api/WebAPI/GetBiometricDeviceOnlineStatusSO?AppKey=6432467912&
BiometricSerialNumber=84E0F426FB32AA01
Postman:
AmpleTrails Biometric Solutions
Method: GET
http://abc.com/api/WebAPI/GetDeviceCommandsAllSO
Example:
http://abc.com/api/WebAPI/GetDeviceCommandsAllSO?AppKey=6432467912&StartDate=2025-02-
22&EndDate=2025-02-27
]
AmpleTrails Biometric Solutions
Postman:
Method: GET
http://abc.com/api/WebAPI/GetDeviceCommandsOldSO
Example:
http://abc.com/api/WebAPI/GetDeviceCommandsOldSO?AppKey=6432467912&StartDate=2024-02-
22&EndDate=2025-02-27
Postman:
Method: GET
http://abc.com/api/WebAPI/EbioDoorUnlock
Example:
http://abc.com/api/WebAPI/EbioDoorUnlock?ApiKey=6432467912&BiometricSerialNumber=CNU622266099
2
Postman:
http://abc.com/api/WebAPI/AddEmployeeToBiometricSo
Example:
http://abc.com/api/WebAPI/AddEmployeeToBiometricSo?AppKey=6432467912&EmployeeName=Sachin
5&EmployeeCode=2025005&CardNumber&BiometricSerialNumber=JNP2245200305
AmpleTrails Biometric Solutions
Parameters:
• AppKey (String): To access the API method.
• EmployeeName (String): Name of Employee
• EmployeeCode (String): Employee Code
• CardNumber (String): Card Number
Response:
{
"SoResponse": "Command Send Successfully",
"Status": "Success"
}
Postman:
AmpleTrails Biometric Solutions
http://abc.com/api/WebAPI/SetEmployeeValidityInBiometricSo
Example:
http://abc.com/api/WebAPI/SetEmployeeValidityInBiometricSo?AppKey=6432467912&EmployeeCode=20
25005&BiometricSerialNumber=JNP2245200305&ExpirationDate=2023-01-04
Parameters:
• AppKey (String): To access the API method.
• BiometricSerialNumber (String): Serial Number of Biometric Device
• EmployeeCode (String): Employee Code
• ExpirationDate (String): YYYY-MM-DD
Response:
{
"SoResponse": "Command Send Successfully.",
"Status": "Success"
}
AmpleTrails Biometric Solutions
Postman:
Example:
http://abc.com/api/WebAPI/DeleteUserFromBiometricSo?AppKey=6432467912&EmployeeCode=2025005
&BiometricSerialNumber=JNP2245200305
Parameters:
• AppKey (String): To access the API method.
• BiometricSerialNumber (String): Serial Number of Biometric Device
• EmployeeCode (String): Employee Code
Response:
{
"SoResponse": "Command Send Successfully",
"Status": "Success"
}
AmpleTrails Biometric Solutions
Postman:
Example:
http://abc.com/api/WebAPI/PhotoUploadInBiometricSo?AppKey=6432467912&EmployeeCode=2025006
&BiometricSerialNumber=E03C1CB3018BAA02&Employee_Name=Sachin
Parameters:
• AppKey (String): To access the API method.
• BiometricSerialNumber (String): Serial Number of Biometric Device
• EmployeeCode (String): Employee Code
• Employee_Name (String): Name of Employee
Response:
{
"SoResponse": "Upload Command Send Successfully.",
"Status": "Success"
AmpleTrails Biometric Solutions
Postman:
AmpleTrails Biometric Solutions
Example:
http://abc.com/api/WebAPI/BlockUserInBiometricSo?AppKey=6432467912&BiometricSerialNumber=JNP
2245200305&EmployeeCode=2025005&BlockUser_BL_0_UN_1=0
Parameters:
• AppKey (String): To access the API method.
• BiometricSerialNumber (String): Serial Number of Biometric Device
• EmployeeCode (String): Employee Code
• BlockUser_BL_0_UN_1 (String): 0 – to block the user, 1 – to unblock the user.
Response:
{
"SoResponse": "Command Send Successfully.",
"Status": "Success"
}
AmpleTrails Biometric Solutions
Example:
http://abc.com/api/WebAPI/GetEmployeesDetailsSO?AppKey=6432467912&Status_Working_Resigned=W
orking
Parameters:
• AppKey (String): To access the API method.
• Status_Working_Resigned (String): Working/Resigned.
Response:
[
{
"EmployeeName": "Akash Malik",
"EmployeeCode": "AB123",
"EmployeeCodeInDevice": "AB123",
"Gender": "Male",
"CompanyName": "Beejapuri Pvt Ltd",
"DepartmentName": "Pune Pimple",
"DesignationsName": "Default",
"CategoryName": "Default",
"LocationName": "Pune Pimple Saudagar",
"DateOfJoining": "1/31/2025 12:00:00 AM",
"DateOfResignation": "1/1/3000 12:00:00 AM",
"DateOfCreation": "1/31/2025 12:00:00 AM",
"DateOfBirth": "1/1/1900 12:00:00 AM",
"EmploymentTypeName": "Default",
"EmployeeStatus": "Working",
"ContactNo": "",
"Email": "",
"Status": "Success"
},
{
"EmployeeName": "Shreedhar Jain",
"EmployeeCode": "ABC35344",
"EmployeeCodeInDevice": "ABC35344",
"Gender": "Male",
"CompanyName": "Beejapuri Pvt Ltd",
"DepartmentName": "Mumbai Sion",
"DesignationsName": "Bangalore Whitefield",
"CategoryName": "Default",
"LocationName": "Mumbai Sion",
"DateOfJoining": "6/12/2024 12:00:00 AM",
"DateOfResignation": "1/1/3000 12:00:00 AM",
"DateOfCreation": "6/12/2024 12:00:00 AM",
"DateOfBirth": "1/1/1900 12:00:00 AM",
"EmploymentTypeName": "Default",
"EmployeeStatus": "Working",
AmpleTrails Biometric Solutions
"ContactNo": "",
"Email": "",
"Status": "Success"
}
]
Postman:
Example:
http://abc.com/api/WebAPI/GetFaceFingerEnrolledCountEmployeeSO?AppKey=6432467912&EmployeeC
ode=1001
Parameters:
• AppKey (String): To access the API method.
• EmployeeCode (String): Employee Code.
AmpleTrails Biometric Solutions
Response:
[
{
"EmployeeName": "Himanshu sharma",
"EmployeeCode": "1001",
"EmployeeCodeInDevice": "1001",
"DeviceId": "50",
"BiometricDeviceName": "Hyderabad LB Nagar Impaired",
"FingerFaceCount": "1",
"BioType": "",
"Status": "Success"
},
{
"EmployeeName": "Himanshu sharma",
"EmployeeCode": "1001",
"EmployeeCodeInDevice": "1001",
"DeviceId": "51",
"BiometricDeviceName": "Hyderabad Secunderabad",
"FingerFaceCount": "1",
"BioType": "",
"Status": "Success"
}
]
Postman:
AmpleTrails Biometric Solutions
Example:
http://abc.com/api/WebAPI/GetFaceFingerEnrolledCountAllSO?AppKey=6432467912&EmployeeCode=10
01
Parameters:
• AppKey (String): To access the API method.
Response:
[
{
"EmployeeName": "Himanshu sharma",
"EmployeeCode": "1001",
"EmployeeCodeInDevice": "1001",
"DeviceId": "86",
"BiometricDeviceName": "Surat Bhatar Road",
"FingerFaceCount": "1",
"BioType": "",
"Status": "Success"
},
{
"EmployeeName": "Hemant Yadav",
"EmployeeCode": "1390",
"EmployeeCodeInDevice": "1390",
"DeviceId": "49",
"BiometricDeviceName": "Hyderabad Kukatpally Impaired",
"FingerFaceCount": "1",
"BioType": "",
"Status": "Success"
},
{
"EmployeeName": "Sumit Kumar",
"EmployeeCode": "1473",
"EmployeeCodeInDevice": "1473",
"DeviceId": "55",
"BiometricDeviceName": "Hyderabad Sainikpuri",
"FingerFaceCount": "1",
"BioType": "",
"Status": "Success"
}
]
AmpleTrails Biometric Solutions
Postman: