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

FieldTypeRequiredDescription
doc_typenumberYesSlip type, 1–10 (table below)
start_datedateYesStart date, inclusive. The old dd-MM-yyyy format is not accepted. Format: 2026-10-01 or 2026-10-01T00:00:00
end_datedateYesEnd date, exclusive. For October 1–31, send 2026-11-01
exportednumber listYesTransfer status: 0 = not yet retrieved, 1 = previously retrieved. [0,1] for both
doc_statusnumber listYesSlip status: 0 = Canceled, 1 = Approved (printed), 2 = Unapproved, 3 = Pending
dist_codestext listNoDistributor codes. If empty, all distributors you are authorized for
outlet_codetextNoCustomer code
outlet_integ_codetextNoCustomer's integration code 1
outlet_integ_code_2textNoCustomer's integration code 2
vkntextNoCustomer's tax number
doc_notextNoSlip number (e.g. TST0001)
e_invnumber listNoE-document type: 0 = e-archive, 1 = e-invoice. Not applied if left empty
ettntextNoETTN number of the e-document
dell_notextNoShipment number
limitnumberNoMaximum number of slips to return. 0 or empty = server upper limit (default 5000)
update_exportedtrue/falseNoDefault true: returned slips are marked as "exported". Send false to retrieve the same slips again

Slip types (doc_type):

ValueSlip typeEnglish name
1Sales invoiceSales Invoice
2Purchase invoiceBuy Invoice
3Return invoice from customer (intact goods)Return Invoice From Outlet
4Return invoice from customer (damaged goods)Corrupt Return Invoice From Outlet
5Return invoice to headquarters (intact goods)Return Invoice To Headquarter
6Return invoice to headquarters (damaged goods)Corrupt Return Invoice To Headquarter
7Sales waybillSales Waybill
8Shipment waybillShipment Waybill
9Warehouse transfer (intact goods)Stock Transfer
10Warehouse transfer (damaged goods)Corrupt Stock Transfer

Warning: update_exported is on by default. When you pull new slips with exported: [0], those slips are marked and will not be returned by the next [0] query. If you only want to look, send update_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.