All URIs are relative to https://tripletex.no/v2
Method | HTTP request | Description |
---|---|---|
delete | DELETE /travelExpense/accommodationAllowance/{id} | [BETA] Delete accommodation allowance. |
get | GET /travelExpense/accommodationAllowance/{id} | [BETA] Get travel accommodation allowance by ID. |
post | POST /travelExpense/accommodationAllowance | [BETA] Create accommodation allowance. |
put | PUT /travelExpense/accommodationAllowance/{id} | [BETA] Update accommodation allowance. |
search | GET /travelExpense/accommodationAllowance | [BETA] Find accommodation allowances corresponding with sent data. |
delete($id)
[BETA] Delete accommodation allowance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\TravelExpenseaccommodationAllowanceApi(
// 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
);
$id = 56; // int | Element ID
try {
$apiInstance->delete($id);
} catch (Exception $e) {
echo 'Exception when calling TravelExpenseaccommodationAllowanceApi->delete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | Element ID |
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]
\Tripletex\Model\ResponseWrapperAccommodationAllowance get($id, $fields)
[BETA] Get travel accommodation allowance by ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\TravelExpenseaccommodationAllowanceApi(
// 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
);
$id = 56; // int | Element ID
$fields = "fields_example"; // string | Fields filter pattern
try {
$result = $apiInstance->get($id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TravelExpenseaccommodationAllowanceApi->get: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | Element ID | |
fields | string | Fields filter pattern | [optional] |
\Tripletex\Model\ResponseWrapperAccommodationAllowance
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ResponseWrapperAccommodationAllowance post($body)
[BETA] Create accommodation allowance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\TravelExpenseaccommodationAllowanceApi(
// 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
);
$body = new \Tripletex\Model\AccommodationAllowance(); // \Tripletex\Model\AccommodationAllowance | JSON representing the new object to be created. Should not have ID and version set.
try {
$result = $apiInstance->post($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TravelExpenseaccommodationAllowanceApi->post: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Tripletex\Model\AccommodationAllowance | JSON representing the new object to be created. Should not have ID and version set. | [optional] |
\Tripletex\Model\ResponseWrapperAccommodationAllowance
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ResponseWrapperAccommodationAllowance put($id, $body)
[BETA] Update accommodation allowance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\TravelExpenseaccommodationAllowanceApi(
// 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
);
$id = 56; // int | Element ID
$body = new \Tripletex\Model\AccommodationAllowance(); // \Tripletex\Model\AccommodationAllowance | Partial object describing what should be updated
try {
$result = $apiInstance->put($id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TravelExpenseaccommodationAllowanceApi->put: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | Element ID | |
body | \Tripletex\Model\AccommodationAllowance | Partial object describing what should be updated | [optional] |
\Tripletex\Model\ResponseWrapperAccommodationAllowance
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ListResponseAccommodationAllowance search($travel_expense_id, $rate_type_id, $rate_category_id, $rate_from, $rate_to, $count_from, $count_to, $amount_from, $amount_to, $location, $address, $from, $count, $sorting, $fields)
[BETA] Find accommodation allowances corresponding with sent data.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\TravelExpenseaccommodationAllowanceApi(
// 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
);
$travel_expense_id = "travel_expense_id_example"; // string | Equals
$rate_type_id = "rate_type_id_example"; // string | Equals
$rate_category_id = "rate_category_id_example"; // string | Equals
$rate_from = 8.14; // float | From and including
$rate_to = 8.14; // float | To and excluding
$count_from = 56; // int | From and including
$count_to = 56; // int | To and excluding
$amount_from = 8.14; // float | From and including
$amount_to = 8.14; // float | To and excluding
$location = "location_example"; // string | Containing
$address = "address_example"; // string | Containing
$from = 0; // int | From index
$count = 1000; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern
try {
$result = $apiInstance->search($travel_expense_id, $rate_type_id, $rate_category_id, $rate_from, $rate_to, $count_from, $count_to, $amount_from, $amount_to, $location, $address, $from, $count, $sorting, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TravelExpenseaccommodationAllowanceApi->search: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
travel_expense_id | string | Equals | [optional] |
rate_type_id | string | Equals | [optional] |
rate_category_id | string | Equals | [optional] |
rate_from | float | From and including | [optional] |
rate_to | float | To and excluding | [optional] |
count_from | int | From and including | [optional] |
count_to | int | To and excluding | [optional] |
amount_from | float | From and including | [optional] |
amount_to | float | To and excluding | [optional] |
location | string | Containing | [optional] |
address | string | Containing | [optional] |
from | int | From index | [optional] [default to 0] |
count | int | Number of elements to return | [optional] [default to 1000] |
sorting | string | Sorting pattern | [optional] |
fields | string | Fields filter pattern | [optional] |
\Tripletex\Model\ListResponseAccommodationAllowance
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]