All URIs are relative to https://api.billit.be
Method | HTTP request | Description |
---|---|---|
accountantDeleteFeeds | DELETE /v1/accountant/feeds/{feedName} | Delete the feed |
accountantGetFeeds | GET /v1/accountant/feeds | |
accountantGetIndex | GET /v1/accountant/feeds/{feedName} | Get A list of all feeds to download. Only query this once per minute |
accountantPostConfirm | POST /v1/accountant/feeds/{feedName}/{feedItemID}/confirm | Confirm each succesfully downloaded feed item to remove it from the feedlist |
accountantPostFeeds | POST /v1/accountant/feeds | Register a new feed. All newly exported orders or documents will be available in this new feed. |
accountantDeleteFeeds($feed_name)
Delete the feed
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AccountantApi(
// 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()
);
$feed_name = "feed_name_example"; // string |
try {
$apiInstance->accountantDeleteFeeds($feed_name);
} catch (Exception $e) {
echo 'Exception when calling AccountantApi->accountantDeleteFeeds: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
feed_name | string |
void (empty response body)
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]
\Swagger\Client\Model\Feed[] accountantGetFeeds()
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AccountantApi(
// 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->accountantGetFeeds();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountantApi->accountantGetFeeds: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
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]
\Swagger\Client\Model\FeedItem[] accountantGetIndex($feed_name)
Get A list of all feeds to download. Only query this once per minute
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AccountantApi(
// 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()
);
$feed_name = "feed_name_example"; // string |
try {
$result = $apiInstance->accountantGetIndex($feed_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountantApi->accountantGetIndex: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
feed_name | string |
\Swagger\Client\Model\FeedItem[]
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]
object accountantPostConfirm($feed_name, $feed_item_id, $confirm_request)
Confirm each succesfully downloaded feed item to remove it from the feedlist
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AccountantApi(
// 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()
);
$feed_name = "feed_name_example"; // string |
$feed_item_id = 56; // int |
$confirm_request = new \Swagger\Client\Model\ConfirmRequest(); // \Swagger\Client\Model\ConfirmRequest |
try {
$result = $apiInstance->accountantPostConfirm($feed_name, $feed_item_id, $confirm_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountantApi->accountantPostConfirm: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
feed_name | string | ||
feed_item_id | int | ||
confirm_request | \Swagger\Client\Model\ConfirmRequest |
object
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]
accountantPostFeeds($feed)
Register a new feed. All newly exported orders or documents will be available in this new feed.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AccountantApi(
// 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()
);
$feed = new \Swagger\Client\Model\Feed(); // \Swagger\Client\Model\Feed |
try {
$apiInstance->accountantPostFeeds($feed);
} catch (Exception $e) {
echo 'Exception when calling AccountantApi->accountantPostFeeds: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
feed | \Swagger\Client\Model\Feed |
void (empty response body)
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]