3. Slip export request
getinv returns the slips within the given date range that match the filters. Five fields are required; if any is missing, the request is rejected with 400.
POST {base_url}/api/v1/integ/invoices/getinv
Headers: Authorization: Bearer <token> and Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
doc_type | number | Yes | Slip type, 1–10 (table below) |
start_date | date | Yes | Start date, inclusive. The old dd-MM-yyyy format is not accepted. Format: 2026-10-01 or 2026-10-01T00:00:00 |
end_date | date | Yes | End date, exclusive. For October 1–31, send 2026-11-01 |
exported | number list | Yes | Transfer status: 0 = not yet retrieved, 1 = previously retrieved. [0,1] for both |
doc_status | number list | Yes | Slip status: 0 = Canceled, 1 = Approved (printed), 2 = Unapproved, 3 = Pending |
dist_codes | text list | No | Distributor codes. If empty, all distributors you are authorized for |
outlet_code | text | No | Customer code |
outlet_integ_code | text | No | Customer's integration code 1 |
outlet_integ_code_2 | text | No | Customer's integration code 2 |
vkn | text | No | Customer's tax number |
doc_no | text | No | Slip number (e.g. TST0001) |
e_inv | number list | No | E-document type: 0 = e-archive, 1 = e-invoice. Not applied if left empty |
ettn | text | No | ETTN number of the e-document |
dell_no | text | No | Shipment number |
limit | number | No | Maximum number of slips to return. 0 or empty = server upper limit (default 5000) |
update_exported | true/false | No | Default true: returned slips are marked as "exported". Send false to retrieve the same slips again |
Slip types (doc_type):
| Value | Slip type | English name |
|---|---|---|
| 1 | Sales invoice | Sales Invoice |
| 2 | Purchase invoice | Buy Invoice |
| 3 | Return invoice from customer (intact goods) | Return Invoice From Outlet |
| 4 | Return invoice from customer (damaged goods) | Corrupt Return Invoice From Outlet |
| 5 | Return invoice to headquarters (intact goods) | Return Invoice To Headquarter |
| 6 | Return invoice to headquarters (damaged goods) | Corrupt Return Invoice To Headquarter |
| 7 | Sales waybill | Sales Waybill |
| 8 | Shipment waybill | Shipment Waybill |
| 9 | Warehouse transfer (intact goods) | Stock Transfer |
| 10 | Warehouse transfer (damaged goods) | Corrupt Stock Transfer |
Warning:
update_exportedis on by default. When you pull new slips withexported: [0], those slips are marked and will not be returned by the next[0]query. If you only want to look, sendupdate_exported: false.
XML output (getinvxml). If you call {base_url}/api/v1/integ/invoices/getinvxml with the same body, the slips are returned as XML. The XML text is in the data field of the response; the fields and rules are the same as for getinv. Systems that transfer data to accounting software via XML can use this address.