Punch Log Callback
When the realtime punch log is received our engine will call the callback url using POST
method and stgid
is appended in the queryParam of the callback url and the data is passed in the body.
Request Data
{
"RealTime": {
"PunchLog": {
"UserId": "User Id ",
"LogTime": "2023-08-04 12:03:00",
"Type": "Face",
"InputType": "In|Out",
"Temperature": "", // if available
},
"AuthToken": "xxxxxx",
"OperationID": "randomid",
"Time": Date(),
"DownloadedAt": Date(),
}
}
Sample Data
{
"RealTime": {
"OperationID": "9nu1wak5616p",
"PunchLog": {
"Type": "CheckOut",
"Temperature": "36.8",
"FaceMask": false,
"InputType": "Fingerprint",
"UserId": "2",
"LogTime": "2020-09-17 07:48:22 GMT +0530"
},
"AuthToken": "COJJ7eiiPBGUfmIQPvh2PJWWDLX7OuKs",
"Time": "2020-09-17 04:19:03 GMT +0000"
}
}
Callback Response
{
status:"done"
}
the status code must be either 200
or 201
Make sure you get all the necessary information from the sample data and we call http POST
method to the provided URL