All URIs are relative to https://api.iplicit.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createCostCentre() | POST /api/CostCentre | Create a cost centre |
getCostCentre() | GET /api/CostCentre/{costCentreRef} | Get a cost centre |
getCostCentres() | GET /api/CostCentre | Get a list of cost centres with a search filter |
lockCostCentre() | POST /api/CostCentre/{costCentreRef}/lock | Lock the cost centre |
unlockCostCentre() | POST /api/CostCentre/{costCentreRef}/unlock | Unlock the cost centre |
updateCostCentre() | PATCH /api/CostCentre/{costCentreRef} | Update a cost centre |
createCostCentre($costCentreCreate): string
Create a cost centre
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\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.
config: $config
);
$costCentreCreate = new \SynergiTech\Iplicit\Model\CostCentreCreate(); // \SynergiTech\Iplicit\Model\CostCentreCreate |
try {
$result = $apiInstance->createCostCentre($costCentreCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->createCostCentre: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
costCentreCreate | \SynergiTech\Iplicit\Model\CostCentreCreate | [optional] |
string
No authorization required
- Content-Type:
application/json
,text/json
,application/*+json
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCostCentre($costCentreRef, $include): \SynergiTech\Iplicit\Model\CostCentreRead
Get a cost centre
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\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.
config: $config
);
$costCentreRef = 'costCentreRef_example'; // string | Id or code of the cost centre
$include = 'include_example'; // string | Comma separated list of detail to include: `resources`, `subCostCentres`. Default is no detail returned.
try {
$result = $apiInstance->getCostCentre($costCentreRef, $include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->getCostCentre: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
costCentreRef | string | Id or code of the cost centre | |
include | string | Comma separated list of detail to include: `resources`, `subCostCentres`. Default is no detail returned. | [optional] |
\SynergiTech\Iplicit\Model\CostCentreRead
No authorization required
- Content-Type: Not defined
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCostCentres($descriptionContains, $codeContains, $parentCostCentre, $legalEntity, $isActive, $includeClosed, $take, $skip): \SynergiTech\Iplicit\Model\CostCentreSearch[]
Get a list of cost centres with a search filter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\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.
config: $config
);
$descriptionContains = 'descriptionContains_example'; // string | Use to only search cost centres where the description contains the text
$codeContains = 'codeContains_example'; // string | Use to only search cost centres where the code contains the text
$parentCostCentre = 'parentCostCentre_example'; // string | Use to only search cost centres with the parent cost centre. Accepts id or code.
$legalEntity = 'legalEntity_example'; // string | Use to only search cost centres with the legal entity. Accepts id or code.
$isActive = True; // bool | Use to only search cost centres with the active state
$includeClosed = True; // bool | Use to only search cost centres with the open state
$take = 100; // int | The number of records to return
$skip = 0; // int | The number of records to skip
try {
$result = $apiInstance->getCostCentres($descriptionContains, $codeContains, $parentCostCentre, $legalEntity, $isActive, $includeClosed, $take, $skip);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->getCostCentres: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
descriptionContains | string | Use to only search cost centres where the description contains the text | [optional] |
codeContains | string | Use to only search cost centres where the code contains the text | [optional] |
parentCostCentre | string | Use to only search cost centres with the parent cost centre. Accepts id or code. | [optional] |
legalEntity | string | Use to only search cost centres with the legal entity. Accepts id or code. | [optional] |
isActive | bool | Use to only search cost centres with the active state | [optional] |
includeClosed | bool | Use to only search cost centres with the open state | [optional] |
take | int | The number of records to return | [optional] [default to 100] |
skip | int | The number of records to skip | [optional] [default to 0] |
\SynergiTech\Iplicit\Model\CostCentreSearch[]
No authorization required
- Content-Type: Not defined
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
lockCostCentre($costCentreRef): string
Lock the cost centre
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\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.
config: $config
);
$costCentreRef = 'costCentreRef_example'; // string | Id or code of the cost centre
try {
$result = $apiInstance->lockCostCentre($costCentreRef);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->lockCostCentre: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
costCentreRef | string | Id or code of the cost centre |
string
No authorization required
- Content-Type: Not defined
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unlockCostCentre($costCentreRef): string
Unlock the cost centre
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\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.
config: $config
);
$costCentreRef = 'costCentreRef_example'; // string | `Id` or `Code` of the cost centre
try {
$result = $apiInstance->unlockCostCentre($costCentreRef);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->unlockCostCentre: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
costCentreRef | string | `Id` or `Code` of the cost centre |
string
No authorization required
- Content-Type: Not defined
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCostCentre($costCentreRef, $costCentreUpdate): string
Update a cost centre
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\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.
config: $config
);
$costCentreRef = 'costCentreRef_example'; // string | Id or code of the cost centre
$costCentreUpdate = new \SynergiTech\Iplicit\Model\CostCentreUpdate(); // \SynergiTech\Iplicit\Model\CostCentreUpdate |
try {
$result = $apiInstance->updateCostCentre($costCentreRef, $costCentreUpdate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CostCentreApi->updateCostCentre: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
costCentreRef | string | Id or code of the cost centre | |
costCentreUpdate | \SynergiTech\Iplicit\Model\CostCentreUpdate | [optional] |
string
No authorization required
- Content-Type:
application/json
,text/json
,application/*+json
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]