All URIs are relative to https://topal.vitan.ch:9001, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
fiscalYearDelete() | DELETE /api/v1/clients/{clientId}/fiscalyears/{id} | delete fiscal year by id |
fiscalYearGet() | GET /api/v1/clients/{clientId}/fiscalyears | Retreives list of fiscal years |
fiscalYearGet_0() | GET /api/v1/clients/{clientId}/fiscalyears/{id} | get fiscal year by id |
fiscalYearPost() | POST /api/v1/clients/{clientId}/fiscalyears | saves fiscal year |
fiscalYearDelete($id, $client_id): object
delete fiscal year by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\FiscalYearApi(
// 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()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->fiscalYearDelete($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FiscalYearApi->fiscalYearDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
client_id | string |
object
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fiscalYearGet($client_id): \Topal\Client\Model\FiscalYear[]
Retreives list of fiscal years
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\FiscalYearApi(
// 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()
);
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->fiscalYearGet($client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FiscalYearApi->fiscalYearGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
client_id | string |
\Topal\Client\Model\FiscalYear[]
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fiscalYearGet_0($id, $client_id): \Topal\Client\Model\FiscalYear
get fiscal year by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\FiscalYearApi(
// 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()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->fiscalYearGet_0($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FiscalYearApi->fiscalYearGet_0: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
client_id | string |
\Topal\Client\Model\FiscalYear
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fiscalYearPost($client_id, $fiscal_year): \Topal\Client\Model\FiscalYear
saves fiscal year
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\FiscalYearApi(
// 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()
);
$client_id = 'client_id_example'; // string
$fiscal_year = new \Topal\Client\Model\FiscalYear(); // \Topal\Client\Model\FiscalYear
try {
$result = $apiInstance->fiscalYearPost($client_id, $fiscal_year);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FiscalYearApi->fiscalYearPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
client_id | string | ||
fiscal_year | \Topal\Client\Model\FiscalYear |
\Topal\Client\Model\FiscalYear
No authorization required
- Content-Type:
application/json
,text/json
,application/xml
,text/xml
,application/x-www-form-urlencoded
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]