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}/workplaces
- 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}/workplaces' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"active": true,
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"zipcode": "string",
"state": "AL",
"country": "US"
},
"timekeepingSettings": {
"defaultTimeZoneId": "string",
"dailyOvertimeHoursStart": 0.1,
"weeklyOvertimeHoursStart": 0.1,
"dailyDoubleOvertimeHoursStart": 0.1,
"weeklyDoubleOvertimeHoursStart": 0.1,
"enablePaidMealBreaks": true,
"enablePaidRestBreaks": true
}
}'Response
application/json
{ "id": "string", "companyId": "string", "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "timekeepingSettings": { "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true, "defaultTimeZoneId": "string" } }
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/workplaces
- 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}/workplaces?id=string&search=string&active=true&state=AL&includeId=true&includeSearch=true&includeState=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}/workplaces/{workplaceId}
- 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}/workplaces/{workplaceId}'Response
application/json
{ "id": "string", "companyId": "string", "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "timekeepingSettings": { "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true, "defaultTimeZoneId": "string" } }
- Mock server
https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/workplaces/{workplaceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/workplaces/{workplaceId}' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"active": true,
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"zipcode": "string",
"state": "string",
"country": "string"
},
"timekeepingSettings": {
"defaultTimeZoneId": "string",
"dailyOvertimeHoursStart": 0.1,
"weeklyOvertimeHoursStart": 0.1,
"dailyDoubleOvertimeHoursStart": 0.1,
"weeklyDoubleOvertimeHoursStart": 0.1,
"enablePaidMealBreaks": true,
"enablePaidRestBreaks": true
}
}'Response
application/json
{ "id": "string", "companyId": "string", "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "timekeepingSettings": { "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true, "defaultTimeZoneId": "string" } }