All URIs are relative to http://localhost, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createCostCentre() | POST /employers/{employerId}/costcentres | Create Cost Centre |
| deleteCostCentre() | DELETE /employers/{employerId}/costcentres/{code} | Delete Cost Centre (deprecated) |
| deleteCostCentreCostCentre() | DELETE /employers/{employerId}/costcentres | Delete Cost Centre |
| getCostCentre() | GET /employers/{employerId}/costcentres/{code} | Get Cost Centre (deprecated) |
| getCostCentreCostCentre() | GET /employers/{employerId}/costcentres/costcentre | Get Cost Centre |
| indexCostCentre() | GET /employers/{employerId}/costcentres | List Cost Centres |
| updateCostCentre() | PUT /employers/{employerId}/costcentres/{code} | Update Cost Centre (deprecated) |
| updateCostCentreCostCentre() | PUT /employers/{employerId}/costcentres | Update Cost Centre |
createCostCentre($employerId, $costCentre): \SynergiTech\Staffology\Model\CostCentreCreate Cost Centre
Creates a new CostCentre for the Employer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string
$costCentre = new \SynergiTech\Staffology\Model\CostCentre(); // \SynergiTech\Staffology\Model\CostCentre
try {
$result = $apiInstance->createCostCentre($employerId, $costCentre);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->createCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | ||
| costCentre | \SynergiTech\Staffology\Model\CostCentre | [optional] |
\SynergiTech\Staffology\Model\CostCentre
- Content-Type:
application/*+json,application/json,application/json-patch+json,text/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteCostCentre($employerId, $code)Delete Cost Centre (deprecated)
Deletes the specified Cost Centre. Use the other Delete endpoint that supports non-alphanumeric characters for a cost centre code
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string
$code = 'code_example'; // string
try {
$apiInstance->deleteCostCentre($employerId, $code);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->deleteCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | ||
| code | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteCostCentreCostCentre($employerId, $code)Delete Cost Centre
Deletes the specified Cost Centre.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the Cost Centre belongs.
$code = 'code_example'; // string | The code of the Cost Centre you want to delete.
try {
$apiInstance->deleteCostCentreCostCentre($employerId, $code);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->deleteCostCentreCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer to which the Cost Centre belongs. | |
| code | string | The code of the Cost Centre you want to delete. | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCostCentre($employerId, $code): \SynergiTech\Staffology\Model\CostCentreGet Cost Centre (deprecated)
Gets the Cost Centres specified. Use the other GET endpoint that supports non-alphanumeric characters for a cost centre code
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the Department belongs.
$code = 'code_example'; // string
try {
$result = $apiInstance->getCostCentre($employerId, $code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->getCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer to which the Department belongs. | |
| code | string |
\SynergiTech\Staffology\Model\CostCentre
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCostCentreCostCentre($employerId, $code): \SynergiTech\Staffology\Model\CostCentreGet Cost Centre
Gets the Cost Centres specified.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the Department belongs.
$code = 'code_example'; // string | The existing code of the Cost Centre you want to get.
try {
$result = $apiInstance->getCostCentreCostCentre($employerId, $code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->getCostCentreCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer to which the Department belongs. | |
| code | string | The existing code of the Cost Centre you want to get. | [optional] |
\SynergiTech\Staffology\Model\CostCentre
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
indexCostCentre($employerId): \SynergiTech\Staffology\Model\Item[]List Cost Centres
Lists all Cost Centres for an Employer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer for which you want to list Cost Centres
try {
$result = $apiInstance->indexCostCentre($employerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->indexCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer for which you want to list Cost Centres |
\SynergiTech\Staffology\Model\Item[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCostCentre($employerId, $code, $costCentre): \SynergiTech\Staffology\Model\CostCentreUpdate Cost Centre (deprecated)
Updates a Cost Centre for the Employer. Use the other Update endpoint that supports non-alphanumeric characters for a cost centre code
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string
$code = 'code_example'; // string
$costCentre = new \SynergiTech\Staffology\Model\CostCentre(); // \SynergiTech\Staffology\Model\CostCentre
try {
$result = $apiInstance->updateCostCentre($employerId, $code, $costCentre);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->updateCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | ||
| code | string | ||
| costCentre | \SynergiTech\Staffology\Model\CostCentre | [optional] |
\SynergiTech\Staffology\Model\CostCentre
- Content-Type:
application/*+json,application/json,application/json-patch+json,text/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCostCentreCostCentre($employerId, $code, $costCentre): \SynergiTech\Staffology\Model\CostCentreUpdate Cost Centre
Updates a Cost Centre for the Employer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\CostCentreApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the Cost Centre belongs.
$code = 'code_example'; // string | The existing code of the Cost Centre you want to get.
$costCentre = new \SynergiTech\Staffology\Model\CostCentre(); // \SynergiTech\Staffology\Model\CostCentre | The new values for the Cost Centre you want to update
try {
$result = $apiInstance->updateCostCentreCostCentre($employerId, $code, $costCentre);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->updateCostCentreCostCentre: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer to which the Cost Centre belongs. | |
| code | string | The existing code of the Cost Centre you want to get. | [optional] |
| costCentre | \SynergiTech\Staffology\Model\CostCentre | The new values for the Cost Centre you want to update | [optional] |
\SynergiTech\Staffology\Model\CostCentre
- Content-Type:
application/*+json,application/json,application/json-patch+json,text/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]