Skip to content

Latest commit

 

History

History
169 lines (112 loc) · 4.33 KB

File metadata and controls

169 lines (112 loc) · 4.33 KB

Cone\Vies\PublicApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
checkStatus() GET /check-status Check the status of each member states
checkVatNumber() POST /check-vat-number Check a Vat Number for a specific country
checkVatTestService() POST /check-vat-test-service Test the check vat service

checkStatus()

checkStatus(): \Cone\Vies\Model\StatusInformationResponse

Check the status of each member states

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Cone\Vies\Api\PublicApi(
    // 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()
);

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

Parameters

This endpoint does not need any parameter.

Return type

\Cone\Vies\Model\StatusInformationResponse

Authorization

No authorization required

HTTP request headers

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

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

checkVatNumber()

checkVatNumber($body): \Cone\Vies\Model\CheckVatResponse

Check a Vat Number for a specific country

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Cone\Vies\Api\PublicApi(
    // 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()
);
$body = new \Cone\Vies\Model\CheckVatRequest(); // \Cone\Vies\Model\CheckVatRequest | The request body

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

Parameters

Name Type Description Notes
body \Cone\Vies\Model\CheckVatRequest The request body

Return type

\Cone\Vies\Model\CheckVatResponse

Authorization

No authorization required

HTTP request headers

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

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

checkVatTestService()

checkVatTestService($body): \Cone\Vies\Model\CheckVatResponse

Test the check vat service

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Cone\Vies\Api\PublicApi(
    // 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()
);
$body = new \Cone\Vies\Model\CheckVatRequest(); // \Cone\Vies\Model\CheckVatRequest | The request body

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

Parameters

Name Type Description Notes
body \Cone\Vies\Model\CheckVatRequest The request body

Return type

\Cone\Vies\Model\CheckVatResponse

Authorization

No authorization required

HTTP request headers

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

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