All URIs are relative to https://api.affixapi.com.
Method | HTTP request | Description |
---|---|---|
xhrCompanies20230301() | GET /2023-03-01/xhr/company | Company |
xhrEmployees20230301() | GET /2023-03-01/xhr/employees | Employees |
xhrGroups20230301() | GET /2023-03-01/xhr/groups | Groups |
xhrIdentity20230301() | GET /2023-03-01/xhr/identity | Identity |
xhrPayruns20230301() | GET /2023-03-01/xhr/payruns | Payruns |
xhrPayslips20230301() | GET /2023-03-01/xhr/payruns/{payrun_id} | Payslips |
xhrTimeOffBalances20230301() | GET /2023-03-01/xhr/time-off-balances | Time off balances |
xhrTimeOffEntries20230301() | GET /2023-03-01/xhr/time-off-entries | Time off entries |
xhrTimesheets20230301() | GET /2023-03-01/xhr/timesheets | Timesheets |
xhrWorkLocations20230301() | GET /2023-03-01/xhr/work-locations | Work locations |
xhrCompanies20230301(): \OpenAPI\Client\Model\CompanyResponse[]
Company
Retrieve company information
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->xhrCompanies20230301();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrCompanies20230301: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\Client\Model\CompanyResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrEmployees20230301($employment_status): \OpenAPI\Client\Model\EmployeeResponse[]
Employees
List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employment_status = new \OpenAPI\Client\Model\\OpenAPI\Client\Model\EmploymentStatusNotNullNotNullable(); // \OpenAPI\Client\Model\EmploymentStatusNotNullNotNullable | Optional query parameter. Use to enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set)
try {
$result = $apiInstance->xhrEmployees20230301($employment_status);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrEmployees20230301: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employment_status | \OpenAPI\Client\Model\EmploymentStatusNotNullNotNullable | Optional query parameter. Use to enable server-side filtering of the `employment_status` attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has a `null`, it will not be returned if this parameter is set) | [optional] |
\OpenAPI\Client\Model\EmployeeResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrGroups20230301(): \OpenAPI\Client\Model\GroupResponse[]
Groups
The Group object is used to represent any subset of employees, such as PayGroup, Team, or Department. Employees can be in multiple Groups.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->xhrGroups20230301();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrGroups20230301: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\Client\Model\GroupResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrIdentity20230301(): \OpenAPI\Client\Model\IdentityResponse
Identity
List information of the user for the respective account
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->xhrIdentity20230301();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrIdentity20230301: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\Client\Model\IdentityResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrPayruns20230301($start_date, $end_date): \OpenAPI\Client\Model\PayrunResponse[]
Payruns
List all the pay runs that occurred during the respective period. Supported integrations: - brain payroll - brightpay connect - deel - gusto - justworks - moorepay - onpay - oyster - parolla.ie - paycircle - payfit - pento.io - quickbooks online - remote.com - sageone - shape payroll - simplepay.ie - staffology - xero uk
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$start_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The start date of the search period
$end_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The end date of the search period
try {
$result = $apiInstance->xhrPayruns20230301($start_date, $end_date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrPayruns20230301: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
start_date | \DateTime | The start date of the search period | |
end_date | \DateTime | The end date of the search period |
\OpenAPI\Client\Model\PayrunResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrPayslips20230301($payrun_id): \OpenAPI\Client\Model\PayslipResponse[]
Payslips
Retrieves payslips from a specific payrun. Supported integrations: - brain payroll - brightpay connect - deel - gusto - justworks - moorepay - onpay - oyster - parolla.ie - paycircle - payfit - pento.io - quickbooks online - remote.com - sageone - shape payroll - simplepay.ie - staffology - xero uk
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$payrun_id = 'payrun_id_example'; // string | The id of the payrun.
try {
$result = $apiInstance->xhrPayslips20230301($payrun_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrPayslips20230301: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
payrun_id | string | The id of the payrun. |
\OpenAPI\Client\Model\PayslipResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrTimeOffBalances20230301(): \OpenAPI\Client\Model\TimeOffBalanceResponse[]
Time off balances
Retrieve all time off balances.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->xhrTimeOffBalances20230301();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrTimeOffBalances20230301: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\Client\Model\TimeOffBalanceResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrTimeOffEntries20230301($start_date, $end_date): \OpenAPI\Client\Model\TimeOffEntryResponse[]
Time off entries
Retrieve time off / absence entries
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$start_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The start date of the search period
$end_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The end date of the search period
try {
$result = $apiInstance->xhrTimeOffEntries20230301($start_date, $end_date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrTimeOffEntries20230301: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
start_date | \DateTime | The start date of the search period | |
end_date | \DateTime | The end date of the search period |
\OpenAPI\Client\Model\TimeOffEntryResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrTimesheets20230301($start_date, $end_date): \OpenAPI\Client\Model\TimesheetResponse[]
Timesheets
Retrieve Timesheets
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$start_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The start date of the search period
$end_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The end date of the search period
try {
$result = $apiInstance->xhrTimesheets20230301($start_date, $end_date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrTimesheets20230301: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
start_date | \DateTime | The start date of the search period | |
end_date | \DateTime | The end date of the search period |
\OpenAPI\Client\Model\TimesheetResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
xhrWorkLocations20230301(): \OpenAPI\Client\Model\LocationResponse[]
Work locations
The Location object is used to represent an address that can be associated with an employee
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: access-token
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\Class20230301Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->xhrWorkLocations20230301();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Class20230301Api->xhrWorkLocations20230301: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\Client\Model\LocationResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]