All URIs are relative to https://tripletex.no/v2
Method | HTTP request | Description |
---|---|---|
openPost | GET /ledger/openPost | Find open posts corresponding with sent data. |
search | GET /ledger | Get ledger (hovedbok). |
\Tripletex\Model\ListResponseLedgerAccount openPost($date, $account_id, $supplier_id, $customer_id, $employee_id, $department_id, $project_id, $product_id, $from, $count, $sorting, $fields)
Find open posts 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\LedgerApi(
// 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
);
$date = "date_example"; // string | Invoice date. Format is yyyy-MM-dd (to and excl.).
$account_id = 56; // int | Element ID
$supplier_id = 56; // int | Element ID
$customer_id = 56; // int | Element ID
$employee_id = 56; // int | Element ID
$department_id = 56; // int | Element ID
$project_id = 56; // int | Element ID
$product_id = 56; // int | Element ID
$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->openPost($date, $account_id, $supplier_id, $customer_id, $employee_id, $department_id, $project_id, $product_id, $from, $count, $sorting, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LedgerApi->openPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
date | string | Invoice date. Format is yyyy-MM-dd (to and excl.). | |
account_id | int | Element ID | [optional] |
supplier_id | int | Element ID | [optional] |
customer_id | int | Element ID | [optional] |
employee_id | int | Element ID | [optional] |
department_id | int | Element ID | [optional] |
project_id | int | Element ID | [optional] |
product_id | int | Element ID | [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\ListResponseLedgerAccount
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Tripletex\Model\ListResponseLedgerAccount search($date_from, $date_to, $open_postings, $account_id, $supplier_id, $customer_id, $employee_id, $department_id, $project_id, $product_id, $from, $count, $sorting, $fields)
Get ledger (hovedbok).
<?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\LedgerApi(
// 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
);
$date_from = "date_from_example"; // string | Format is yyyy-MM-dd (from and incl.).
$date_to = "date_to_example"; // string | Format is yyyy-MM-dd (to and excl.).
$open_postings = "open_postings_example"; // string | Deprecated
$account_id = 56; // int | Element ID
$supplier_id = 56; // int | Element ID
$customer_id = 56; // int | Element ID
$employee_id = 56; // int | Element ID
$department_id = 56; // int | Element ID
$project_id = 56; // int | Element ID
$product_id = 56; // int | Element ID
$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($date_from, $date_to, $open_postings, $account_id, $supplier_id, $customer_id, $employee_id, $department_id, $project_id, $product_id, $from, $count, $sorting, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LedgerApi->search: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
date_from | string | Format is yyyy-MM-dd (from and incl.). | |
date_to | string | Format is yyyy-MM-dd (to and excl.). | |
open_postings | string | Deprecated | [optional] |
account_id | int | Element ID | [optional] |
supplier_id | int | Element ID | [optional] |
customer_id | int | Element ID | [optional] |
employee_id | int | Element ID | [optional] |
department_id | int | Element ID | [optional] |
project_id | int | Element ID | [optional] |
product_id | int | Element ID | [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\ListResponseLedgerAccount
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]