Skip to content

Latest commit

 

History

History
1024 lines (766 loc) · 34.8 KB

File metadata and controls

1024 lines (766 loc) · 34.8 KB

Tripletex\DocumentArchiveApi

All URIs are relative to https://tripletex.no/v2

Method HTTP request Description
accountPost POST /documentArchive/account/{id} [BETA] Upload file to Account Document Archive.
customerPost POST /documentArchive/customer/{id} [BETA] Upload file to Customer Document Archive.
delete DELETE /documentArchive/{id} [BETA] Delete document archive.
employeePost POST /documentArchive/employee/{id} [BETA] Upload file to Employee Document Archive.
getAccount GET /documentArchive/account/{id} [BETA] Find documents archived associated with account object type.
getCustomer GET /documentArchive/customer/{id} [BETA] Find documents archived associated with customer object type.
getEmployee GET /documentArchive/employee/{id} [BETA] Find documents archived associated with employee object type.
getProduct GET /documentArchive/product/{id} [BETA] Find documents archived associated with product object type.
getProject GET /documentArchive/project/{id} [BETA] Find documents archived associated with project object type.
getProspect GET /documentArchive/prospect/{id} [BETA] Find documents archived associated with prospect object type.
getSupplier GET /documentArchive/supplier/{id} [BETA] Find documents archived associated with supplier object type.
productPost POST /documentArchive/product/{id} [BETA] Upload file to Product Document Archive.
projectPost POST /documentArchive/project/{id} [BETA] Upload file to Project Document Archive.
prospectPost POST /documentArchive/prospect/{id} [BETA] Upload file to Prospect Document Archive.
put PUT /documentArchive/{id} [BETA] Update document archive.
receptionPost POST /documentArchive/reception [BETA] Upload a file to the document archive reception. Send as multipart form.
supplierPost POST /documentArchive/supplier/{id} [BETA] Upload file to Supplier Document Archive.

accountPost

\Tripletex\Model\ResponseWrapperDocumentArchive accountPost($file, $id)

[BETA] Upload file to Account Document Archive.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 
$id = 56; // int | Element ID

try {
    $result = $apiInstance->accountPost($file, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->accountPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string
id int Element ID

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

customerPost

\Tripletex\Model\ResponseWrapperDocumentArchive customerPost($file, $id)

[BETA] Upload file to Customer Document Archive.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 
$id = 56; // int | Element ID

try {
    $result = $apiInstance->customerPost($file, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->customerPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string
id int Element ID

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete

delete($id)

[BETA] Delete document archive.

Example

<?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\DocumentArchiveApi(
    // 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 DocumentArchiveApi->delete: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID

Return type

void (empty response body)

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

employeePost

\Tripletex\Model\ResponseWrapperDocumentArchive employeePost($file, $id)

[BETA] Upload file to Employee Document Archive.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 
$id = 56; // int | Element ID

try {
    $result = $apiInstance->employeePost($file, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->employeePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string
id int Element ID

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getAccount

\Tripletex\Model\ListResponseDocumentArchive getAccount($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields)

[BETA] Find documents archived associated with account object type.

Example

<?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\DocumentArchiveApi(
    // 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
$period_date_from = "period_date_from_example"; // string | From and including
$period_date_to = "period_date_to_example"; // string | To and excluding
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getAccount($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->getAccount: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
period_date_from string From and including [optional]
period_date_to string To and excluding [optional]
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCustomer

\Tripletex\Model\ListResponseDocumentArchive getCustomer($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields)

[BETA] Find documents archived associated with customer object type.

Example

<?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\DocumentArchiveApi(
    // 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
$period_date_from = "period_date_from_example"; // string | From and including
$period_date_to = "period_date_to_example"; // string | To and excluding
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getCustomer($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->getCustomer: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
period_date_from string From and including [optional]
period_date_to string To and excluding [optional]
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getEmployee

\Tripletex\Model\ListResponseDocumentArchive getEmployee($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields)

[BETA] Find documents archived associated with employee object type.

Example

<?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\DocumentArchiveApi(
    // 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
$period_date_from = "period_date_from_example"; // string | From and including
$period_date_to = "period_date_to_example"; // string | To and excluding
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getEmployee($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->getEmployee: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
period_date_from string From and including [optional]
period_date_to string To and excluding [optional]
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getProduct

\Tripletex\Model\ListResponseDocumentArchive getProduct($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields)

[BETA] Find documents archived associated with product object type.

Example

<?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\DocumentArchiveApi(
    // 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
$period_date_from = "period_date_from_example"; // string | From and including
$period_date_to = "period_date_to_example"; // string | To and excluding
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getProduct($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->getProduct: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
period_date_from string From and including [optional]
period_date_to string To and excluding [optional]
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getProject

\Tripletex\Model\ListResponseDocumentArchive getProject($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields)

[BETA] Find documents archived associated with project object type.

Example

<?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\DocumentArchiveApi(
    // 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
$period_date_from = "period_date_from_example"; // string | From and including
$period_date_to = "period_date_to_example"; // string | To and excluding
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getProject($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->getProject: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
period_date_from string From and including [optional]
period_date_to string To and excluding [optional]
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getProspect

\Tripletex\Model\ListResponseDocumentArchive getProspect($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields)

[BETA] Find documents archived associated with prospect object type.

Example

<?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\DocumentArchiveApi(
    // 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
$period_date_from = "period_date_from_example"; // string | From and including
$period_date_to = "period_date_to_example"; // string | To and excluding
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getProspect($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->getProspect: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
period_date_from string From and including [optional]
period_date_to string To and excluding [optional]
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSupplier

\Tripletex\Model\ListResponseDocumentArchive getSupplier($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields)

[BETA] Find documents archived associated with supplier object type.

Example

<?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\DocumentArchiveApi(
    // 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
$period_date_from = "period_date_from_example"; // string | From and including
$period_date_to = "period_date_to_example"; // string | To and excluding
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getSupplier($id, $period_date_from, $period_date_to, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->getSupplier: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
period_date_from string From and including [optional]
period_date_to string To and excluding [optional]
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

productPost

\Tripletex\Model\ResponseWrapperDocumentArchive productPost($file, $id)

[BETA] Upload file to Product Document Archive.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 
$id = 56; // int | Element ID

try {
    $result = $apiInstance->productPost($file, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->productPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string
id int Element ID

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

projectPost

\Tripletex\Model\ResponseWrapperDocumentArchive projectPost($file, $id)

[BETA] Upload file to Project Document Archive.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 
$id = 56; // int | Element ID

try {
    $result = $apiInstance->projectPost($file, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->projectPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string
id int Element ID

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

prospectPost

\Tripletex\Model\ResponseWrapperDocumentArchive prospectPost($file, $id)

[BETA] Upload file to Prospect Document Archive.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 
$id = 56; // int | Element ID

try {
    $result = $apiInstance->prospectPost($file, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->prospectPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string
id int Element ID

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

put

\Tripletex\Model\ResponseWrapperDocumentArchive put($id, $body)

[BETA] Update document archive.

Example

<?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\DocumentArchiveApi(
    // 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\DocumentArchive(); // \Tripletex\Model\DocumentArchive | Partial object describing what should be updated

try {
    $result = $apiInstance->put($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->put: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int Element ID
body \Tripletex\Model\DocumentArchive Partial object describing what should be updated [optional]

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

receptionPost

\Tripletex\Model\ResponseWrapperDocumentArchive receptionPost($file)

[BETA] Upload a file to the document archive reception. Send as multipart form.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 

try {
    $result = $apiInstance->receptionPost($file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->receptionPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

supplierPost

\Tripletex\Model\ResponseWrapperDocumentArchive supplierPost($file, $id)

[BETA] Upload file to Supplier Document Archive.

Example

<?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\DocumentArchiveApi(
    // 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
);
$file = "file_example"; // string | 
$id = 56; // int | Element ID

try {
    $result = $apiInstance->supplierPost($file, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentArchiveApi->supplierPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
file string****string
id int Element ID

Return type

\Tripletex\Model\ResponseWrapperDocumentArchive

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]