All URIs are relative to https://topal.vitan.ch:9001, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| payTermDelete() | DELETE /api/v1/clients/{clientId}/payTerms/{id} | Delete payTerm |
| payTermGet() | GET /api/v1/clients/{clientId}/payterms | Retreives list of payterms |
| payTermGetByCode() | GET /api/v1/clients/{clientId}/payterms/bycode/{code} | Get payTerm by code |
| payTermGet_0() | GET /api/v1/clients/{clientId}/payterms/{id} | Get payTerm by id |
| payTermPost() | POST /api/v1/clients/{clientId}/payTerms | Save payTerm |
payTermDelete($id, $client_id): objectDelete payTerm
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\PayTermApi(
// 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->payTermDelete($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PayTermApi->payTermDelete: ', $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]
payTermGet($client_id): \Topal\Client\Model\PayTerm[]Retreives list of payterms
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\PayTermApi(
// 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->payTermGet($client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PayTermApi->payTermGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| client_id | string |
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]
payTermGetByCode($code, $client_id): \Topal\Client\Model\PayTermGet payTerm by code
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\PayTermApi(
// 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()
);
$code = 'code_example'; // string
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->payTermGetByCode($code, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PayTermApi->payTermGetByCode: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| code | string | ||
| client_id | string |
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]
payTermGet_0($id, $client_id): \Topal\Client\Model\PayTermGet payTerm by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\PayTermApi(
// 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->payTermGet_0($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PayTermApi->payTermGet_0: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ||
| client_id | string |
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]
payTermPost($client_id, $pay_term): \Topal\Client\Model\PayTermSave payTerm
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\PayTermApi(
// 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
$pay_term = new \Topal\Client\Model\PayTerm(); // \Topal\Client\Model\PayTerm
try {
$result = $apiInstance->payTermPost($client_id, $pay_term);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PayTermApi->payTermPost: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| client_id | string | ||
| pay_term | \Topal\Client\Model\PayTerm |
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]