Skip to content

Latest commit

 

History

History
1721 lines (1142 loc) · 60.8 KB

HrisApi.md

File metadata and controls

1721 lines (1142 loc) · 60.8 KB

Apideck.Hris

Class Name

HrisApi

Methods

Create Company

Method: companiesAdd

Apideck->getHrisApi()->companiesAdd($data)

Parameters

Name Type Description Notes
hris_company \Apideck\Client\Model\HrisCompany
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\CreateHrisCompanyResponse

HTTP response details

Status code Description
201 Companies
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->companiesAdd($company);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

List Companies

Method: companiesAll

Apideck->getHrisApi()->companiesAll($data)

Parameters

Name Type Description Notes
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
cursor string Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false
limit [int] Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) defaults to 20

Response Type

\Apideck\Client\Model\GetHrisCompaniesResponse

HTTP response details

Status code Description
200 Companies
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->companiesAll();
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Delete Company

Method: companiesDelete

Apideck->getHrisApi()->companiesDelete($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\DeleteHrisCompanyResponse

HTTP response details

Status code Description
200 Companies
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->companiesDelete('id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Get Company

Method: companiesOne

Apideck->getHrisApi()->companiesOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetHrisCompanyResponse

HTTP response details

Status code Description
200 Company
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->companiesOne('id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Update Company

Method: companiesUpdate

Apideck->getHrisApi()->companiesUpdate($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
hris_company \Apideck\Client\Model\HrisCompany
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\UpdateHrisCompanyResponse

HTTP response details

Status code Description
200 Companies
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->companiesUpdate('id_example', $company);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Create Department

Method: departmentsAdd

Apideck->getHrisApi()->departmentsAdd($data)

Parameters

Name Type Description Notes
department \Apideck\Client\Model\Department
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\CreateDepartmentResponse

HTTP response details

Status code Description
201 Departments
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->departmentsAdd($department);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

List Departments

Method: departmentsAll

Apideck->getHrisApi()->departmentsAll($data)

Parameters

Name Type Description Notes
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
cursor string Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false
limit [int] Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) defaults to 20

Response Type

\Apideck\Client\Model\GetDepartmentsResponse

HTTP response details

Status code Description
200 Departments
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->departmentsAll();
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Delete Department

Method: departmentsDelete

Apideck->getHrisApi()->departmentsDelete($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\DeleteDepartmentResponse

HTTP response details

Status code Description
200 Departments
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->departmentsDelete('id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Get Department

Method: departmentsOne

Apideck->getHrisApi()->departmentsOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetDepartmentResponse

HTTP response details

Status code Description
200 Departments
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->departmentsOne('id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Update Department

Method: departmentsUpdate

Apideck->getHrisApi()->departmentsUpdate($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
department \Apideck\Client\Model\Department
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\UpdateDepartmentResponse

HTTP response details

Status code Description
200 Departments
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->departmentsUpdate('id_example', $department);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

List Employee Payrolls

Method: employeePayrollsAll

Apideck->getHrisApi()->employeePayrollsAll($data)

Parameters

Name Type Description Notes
employee_id string ID of the employee you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
filter \Apideck\Client\Model\PayrollsFilter Apply filters
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetEmployeePayrollsResponse

HTTP response details

Status code Description
200 EmployeePayrolls
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeePayrollsAll('employee_id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Get Employee Payroll

Method: employeePayrollsOne

Apideck->getHrisApi()->employeePayrollsOne($data)

Parameters

Name Type Description Notes
payroll_id string ID of the payroll you are acting upon.
employee_id string ID of the employee you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetEmployeePayrollResponse

HTTP response details

Status code Description
200 Payrolls
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeePayrollsOne('payroll_id_example', 'employee_id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

List Employee Schedules

Method: employeeSchedulesAll

Apideck->getHrisApi()->employeeSchedulesAll($data)

Parameters

Name Type Description Notes
employee_id string ID of the employee you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetEmployeeSchedulesResponse

HTTP response details

Status code Description
200 EmployeeSchedules
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeeSchedulesAll('employee_id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Create Employee

Method: employeesAdd

Apideck->getHrisApi()->employeesAdd($data)

Parameters

Name Type Description Notes
employee \Apideck\Client\Model\Employee
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\CreateEmployeeResponse

HTTP response details

Status code Description
201 Employees
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeesAdd($employee);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

List Employees

Method: employeesAll

Apideck->getHrisApi()->employeesAll($data)

Parameters

Name Type Description Notes
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
cursor string Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.
filter \Apideck\Client\Model\EmployeesFilter Apply filters
sort \Apideck\Client\Model\EmployeesSort Apply sorting
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false
limit [int] Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) defaults to 20

Response Type

\Apideck\Client\Model\GetEmployeesResponse

HTTP response details

Status code Description
200 Employees
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeesAll();
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Delete Employee

Method: employeesDelete

Apideck->getHrisApi()->employeesDelete($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\DeleteEmployeeResponse

HTTP response details

Status code Description
200 Employees
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeesDelete('id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Get Employee

Method: employeesOne

Apideck->getHrisApi()->employeesOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
filter \Apideck\Client\Model\EmployeesOneFilter Apply filters
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetEmployeeResponse

HTTP response details

Status code Description
200 Employees
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeesOne('id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Update Employee

Method: employeesUpdate

Apideck->getHrisApi()->employeesUpdate($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
employee \Apideck\Client\Model\Employee
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\UpdateEmployeeResponse

HTTP response details

Status code Description
200 Employees
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->employeesUpdate('id_example', $employee);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

List Payroll

Method: payrollsAll

Apideck->getHrisApi()->payrollsAll($data)

Parameters

Name Type Description Notes
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
filter \Apideck\Client\Model\PayrollsFilter Apply filters
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetPayrollsResponse

HTTP response details

Status code Description
200 Payrolls
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->payrollsAll();
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Get Payroll

Method: payrollsOne

Apideck->getHrisApi()->payrollsOne($data)

Parameters

Name Type Description Notes
payroll_id string ID of the payroll you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetPayrollResponse

HTTP response details

Status code Description
200 Payrolls
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->payrollsOne('payroll_id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Create Time Off Request

Method: timeOffRequestsAdd

Apideck->getHrisApi()->timeOffRequestsAdd($data)

Parameters

Name Type Description Notes
time_off_request \Apideck\Client\Model\TimeOffRequest
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\CreateTimeOffRequestResponse

HTTP response details

Status code Description
201 TimeOffRequests
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->timeOffRequestsAdd($timeOffRequest);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

List Time Off Requests

Method: timeOffRequestsAll

Apideck->getHrisApi()->timeOffRequestsAll($data)

Parameters

Name Type Description Notes
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
cursor string Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.
filter \Apideck\Client\Model\TimeOffRequestsFilter Apply filters
pass_through \Apideck\Client\Model\PassThroughQuery Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false
limit [int] Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) defaults to 20

Response Type

\Apideck\Client\Model\GetTimeOffRequestsResponse

HTTP response details

Status code Description
200 TimeOffRequests
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->timeOffRequestsAll();
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Delete Time Off Request

Method: timeOffRequestsDelete

Apideck->getHrisApi()->timeOffRequestsDelete($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
employee_id string ID of the employee you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\DeleteTimeOffRequestResponse

HTTP response details

Status code Description
200 TimeOffRequests
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->timeOffRequestsDelete('id_example', 'employee_id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Get Time Off Request

Method: timeOffRequestsOne

Apideck->getHrisApi()->timeOffRequestsOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
employee_id string ID of the employee you are acting upon.
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
fields string The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields &quot;name&quot;, &quot;email&quot; and &quot;addresses.city&quot;. If any other fields are available, they will be excluded.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\GetTimeOffRequestResponse

HTTP response details

Status code Description
200 TimeOffRequests
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->timeOffRequestsOne('id_example', 'employee_id_example');
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]

Update Time Off Request

Method: timeOffRequestsUpdate

Apideck->getHrisApi()->timeOffRequestsUpdate($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
employee_id string ID of the employee you are acting upon.
time_off_request \Apideck\Client\Model\TimeOffRequest
x_apideck_consumer_id string ID of the consumer which you want to get or push data from
x_apideck_app_id string The ID of your Unify application
x_apideck_service_id string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
raw [bool] Include raw response. Mostly used for debugging purposes (optional) defaults to false

Response Type

\Apideck\Client\Model\UpdateTimeOffRequestResponse

HTTP response details

Status code Description
200 TimeOffRequests
400 Bad Request
401 Unauthorized
402 Payment Required
404 The specified resource was not found
422 Unprocessable
4/5xx Unexpected error

Example Usage

<?php
require('vendor/autoload.php');

use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;

$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');

$apideck = new Apideck($config);

try {
  $response = $apideck->getHrisApi()->timeOffRequestsUpdate('id_example', 'employee_id_example', $timeOffRequest);
  var_dump('API called successfully', $response);
} catch(ApiException $error) {
  var_dump('API called failed', $error);
}

[Back to top] [Back to API list] [Back to README]