export_internal_invoices ()
This function returns list of internal invoices for a specific month.
This function is only available to administrators.
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | session id* |
month | specific month* | |
year | specific year* | |
Returns: | HTTP code | 200 (OK) |
invoice_id | unique invoice identifier | |
uid | subject ID | |
business_name | Business name of the subject | |
issued | date of issue | |
payment_date | date of payment | |
description | description of specific item | |
from | start of settlement | |
to | end of settlement | |
price | specific price (without VAT) | |
currency | specific currency |
Return errors
Error code | HTTP response code | Description |
---|---|---|
1 | 400 (Bad request) | Function was not performed, because all required parameters were not entered. Reply portion reply is empty. |
3 | 403 (Forbidden) | Function call failed, invalid sid parameter. Create new sid using /api/login function. Reply portion reply is empty. |
CURL
curl "https://admin.systems90.cz/api/export_internal_invoices?sid=%sid%&month=%from%&year=%year%"
PHP Library
$api->export_internal_invoices(array(
'month' => %from%,
'year' => %year%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<invoice_items>
<invoice_item>
<invoice_id>1700300001</invoice_id>
<uid>137327</uid>
<business_name>John Doe</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of VPS nr. 76409 in plan VPS SSD 2GB Windows from 1.6.2017 to 5.6.2017
</description>
<from/>
<to/>
<price>62.50</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300001</invoice_id>
<uid>137327</uid>
<business_name>John Doe</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of VPS nr. 80424 in plan VPS SSD 2GB from 16.6.2017 to 19.6.2017
</description>
<from/>
<to/>
<price>30.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300001</invoice_id>
<uid>137327</uid>
<business_name>John Doe</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Backups of the virtual server nr. 76409 of the total size 80 GB from 1.6.2017 to 5.6.2017
</description>
<from/>
<to/>
<price>6.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300001</invoice_id>
<uid>137327</uid>
<business_name>John Doe</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Virtual server image (image_17041800) of the total size 20GB from 1.6.2017 to 30.6.2017
</description>
<from/>
<to/>
<price>9.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300001</invoice_id>
<uid>137327</uid>
<business_name>John Doe</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>Rounding</description>
<from/>
<to/>
<price>0.17</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of VPS nr. 78546 in plan VPS SSD 8GB Windows from 1.6.2017 to 8.6.2017
</description>
<from/>
<to/>
<price>400.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of VPS nr. 79249 in plan VPS SSD 4GB Windows from 1.6.2017 to 8.6.2017
</description>
<from/>
<to/>
<price>200.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of VPS nr. 80049 (Server č.7 CONTROL 45.1) in plan VPS 4GB from 12.6.2017 to 30.6.2017
</description>
<from/>
<to/>
<price>237.50</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of Microsoft Windows Server Standard Edition (8x Core) - 9EM-00562 VPS č. 79860 (Server c.2 APPS 45.102) for period 6/2017
</description>
<from/>
<to/>
<price>500.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
10x Service of Remote Desktop Service SAL - 6WC-00002 VPS č. 79884 (Server c.5 TS 45.105) for period 6/2017
</description>
<from/>
<to/>
<price>1430.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of Microsoft Windows Server Standard Edition (8x Core) - 9EM-00562 VPS č. 79884 (Server c.5 TS 45.105) for period 6/2017
</description>
<from/>
<to/>
<price>500.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Service of network data storage nr. č. 1767 with size of 3000 GB from 23.6.2017 to 30.6.2017
</description>
<from/>
<to/>
<price>960.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Backups of the virtual server nr. 78546 of the total size 240 GB from 1.6.2017 to 8.6.2017
</description>
<from/>
<to/>
<price>28.80</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>
Backups of the virtual server nr. 78564 of the total size 240 GB from 1.6.2017 to 7.6.2017
</description>
<from/>
<to/>
<price>25.20</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>Nextcloud UID 138126 from 1.6.2017 to 8.6.2017</description>
<from/>
<to/>
<price>664.00</price>
<currency>CZK</currency>
</invoice_item>
<invoice_item>
<invoice_id>1700300002</invoice_id>
<uid>138126</uid>
<business_name>Peter Smith</business_name>
<issued>2017-06-30 00:00:00</issued>
<payment_date>2017-07-01</payment_date>
<description>Rounding</description>
<from/>
<to/>
<price>0.36</price>
<currency>CZK</currency>
</invoice_item>
</invoice_items>
</reply>