OK
Encompass.Api (1.0)
Download OpenAPI description
Languages
Servers
Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}'
Response
application/json
{ "id": "string", "employeeId": "string", "workplaceId": "string", "status": "InProgress", "clockInNote": "string", "clockOutNote": "string", "clockIn": "2019-08-24T14:15:22Z", "clockOut": "2019-08-24T14:15:22Z", "breaks": [ { … } ], "changes": [ { … } ] }
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees?id=string&employeeId=string&workplaceId=string&status=InProgress&search=string&includeId=true&includeEmployeeId=true&includeWorkplaceId=true&includeStatus=true&includeSearch=true&page=1&pageSize=10'
Response
application/json
{ "hasResources": true, "totalResources": 0, "totalPages": 0, "pageSize": 0, "currentPage": 0, "previousPage": 0, "nextPage": 0, "results": [ { … } ] }
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/clock_in
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/clock_in' \
-H 'Content-Type: application/json' \
-d '{
"employeeId": "string",
"workplaceId": "string",
"note": "string"
}'
Response
application/json
{ "id": "string", "employeeId": "string", "workplaceId": "string", "status": "InProgress", "clockInNote": "string", "clockOutNote": "string", "clockIn": "2019-08-24T14:15:22Z", "clockOut": "2019-08-24T14:15:22Z", "breaks": [ { … } ], "changes": [ { … } ] }
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}/clock_out
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}/clock_out' \
-H 'Content-Type: application/json' \
-d '{
"note": "string"
}'
Response
application/json
{ "id": "string", "employeeId": "string", "workplaceId": "string", "status": "InProgress", "clockInNote": "string", "clockOutNote": "string", "clockIn": "2019-08-24T14:15:22Z", "clockOut": "2019-08-24T14:15:22Z", "breaks": [ { … } ], "changes": [ { … } ] }
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}/start_break
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}/start_break' \
-H 'Content-Type: application/json' \
-d '{
"note": "string",
"type": "PaidMealBreak"
}'
Response
application/json
{ "id": "string", "acceptedStatus": true, "type": "PaidMealBreak", "breakStartNote": "string", "breakEndNote": "string", "breakStart": "2019-08-24T14:15:22Z", "breakEnd": "2019-08-24T14:15:22Z", "changes": [ { … } ] }
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}/end_break
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/timecards/employees/{timecardId}/end_break' \
-H 'Content-Type: application/json' \
-d '{
"note": "string"
}'
Response
application/json
{ "id": "string", "acceptedStatus": true, "type": "PaidMealBreak", "breakStartNote": "string", "breakEndNote": "string", "breakStart": "2019-08-24T14:15:22Z", "breakEnd": "2019-08-24T14:15:22Z", "changes": [ { … } ] }