Skip to content

Latest commit

 

History

History
168 lines (121 loc) · 4.99 KB

UtilApi.md

File metadata and controls

168 lines (121 loc) · 4.99 KB

Swagger\Client\UtilApi

All URIs are relative to https://api.billingo.hu/v3

Method HTTP request Description
checkTaxNumber GET /utils/check-tax-number/{tax_number} Check tax number.
getId GET /utils/convert-legacy-id/{id} Convert legacy ID to v3 ID.
getServerTime GET /utils/time Get the server time

checkTaxNumber

\Swagger\Client\Model\TaxNumber checkTaxNumber($tax_number)

Check tax number.

Check the given tax number format, and NAV validate.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\UtilApi(
    // 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
);
$tax_number = "tax_number_example"; // string | 

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

Parameters

Name Type Description Notes
tax_number string

Return type

\Swagger\Client\Model\TaxNumber

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

getId

\Swagger\Client\Model\Id getId($id)

Convert legacy ID to v3 ID.

Retrieves the API v3 ID.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\UtilApi(
    // 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 | 

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

Parameters

Name Type Description Notes
id int

Return type

\Swagger\Client\Model\Id

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

getServerTime

\Swagger\Client\Model\ServerTime getServerTime()

Get the server time

Return the server time.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\UtilApi(
    // 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
);

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

Parameters

This endpoint does not need any parameter.

Return type

\Swagger\Client\Model\ServerTime

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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