API for Calamari, your HR tool
API for Calamari, your HR tool
Start employee break.
Client application should send request immediately when event occurs. If there is any problem with connection or access to API event should be queued in clients side and then sent in order of occurence.
Before you can use this method, please:
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/terminal/v1/break-start \
-H 'Content-Type: application/json' \
-d '{
"person": "john.white@mycompany.com",
"time": "2015-11-10T08:30:00",
"breakType": 1
}'
{ "person": { "firstName": "John", "lastName": "White" }, "breakStatus": "STARTED" }
Stop employee break.
Client application should send request immediately when event occurs. If there is any problem with connection or access to API event should be queued in clients side and then sent in order of occurence.
Before you can use this method, please:
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/terminal/v1/break-stop \
-H 'Content-Type: application/json' \
-d '{
"person": "john.white@mycompany.com",
"time": "2015-11-10T08:30:00",
"breakType": 1
}'
{ "person": { "firstName": "John", "lastName": "White" }, "breakStatus": "STARTED" }
Start employee shift. If the employee shift has already been started via web browser, mobile app or any other terminal, the request is ignored and the method returns status 200.
Client application should send request immediately when event occurs. If there is any problem with connection or access to API event should be queued in clients side and then sent in order of occurence.
Before you can use this method, please:
Employee identifier. You can use e-mail or external identifier in format (externalNumber:ABC123)
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/terminal/v1/clock-in \
-H 'Content-Type: application/json' \
-d '{
"person": "john.white@mycompany.com",
"time": "2015-11-10T08:30:00",
"projectId": 1,
"description": "Example description"
}'
{ "person": { "firstName": "John", "lastName": "White" }, "shiftStatus": "STARTED" }
Stop employee shift. If employee shift is not started in moment of request the request is ignored.
Client application should send request immediately when event occurs. If there is any problem with connection or access to API event should be queued in clients side and then sent in order of occurence.
Before you can use this method, please:
Employee identifier. You can use e-mail or external identifier in format (externalNumber:ABC123)
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/terminal/v1/clock-out \
-H 'Content-Type: application/json' \
-d '{
"person": "john.white@mycompany.com",
"time": "2015-11-10T08:30:00"
}'
{ "person": { "firstName": "John", "lastName": "White" }, "shiftStatus": "STARTED" }
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/terminal/v1/get-break-types
[ { "id": 0, "name": "Break name" } ]
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/terminal/v1/get-break-types-for-person \
-H 'Content-Type: application/json' \
-d '{
"person": "john.white@mycompany.com"
}'
[ { "id": 0, "name": "Break name" } ]
Method indicates employee go through company's doors. Starts shift if it's not started or stops it otherwise.
Client application should send request immediately when event occurs. If there is any problem with connection or access to API event should be queued in clients side and then sent in order of occurence.
Before you can use this method, please:
Employee identifier. You can use e-mail or external identifier in format (externalNumber:ABC123)
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/terminal/v1/punch-clock \
-H 'Content-Type: application/json' \
-d '{
"person": "john.white@mycompany.com",
"time": "2015-11-10T08:30:00",
"projectId": 1,
"description": "Example description"
}'
{ "person": { "firstName": "John", "lastName": "White" }, "shiftStatus": "STARTED" }