Skip to content

List of invoices

Request

Returns the list of invoices with basic information. The list of invoices supports Paging

The code (code) is the invoice identifier. Although this is usually a number, it is necessary to take into account that this might also include letters, a dash, etc. Filtering uses string comparison with >=, <= operators.

Security
shoptetAccessToken or shoptetPrivateApiToken
Query
isValidboolean

filtering according to document validity

Example:isValid=true
proformaInvoiceCodestring

filtering according to number of proforma invoice

Example:proformaInvoiceCode=2017000017
creationTimeFromstring

filtering according to date of invoice issue

Example:creationTimeFrom=2017-02-28T17:04:47+0100
creationTimeTostring

filtering according to date of invoice issue

Example:creationTimeTo=2028-02-28T17:04:47+0100
taxDateFromstring

filtering according to tax date of invoice

Example:taxDateFrom=2017-02-28T17:04:47+0100
orderCodestring

filtering according to order code of invoice

Example:orderCode=2018000012
codeFromstring

filtering according to code of invoice

Example:codeFrom=2018000001
codeTostring

filtering according to code of invoice

Example:codeTo=2018000012
varSymbolstring

filtering according to variable symbol of invoice

Example:varSymbol=666
itemsPerPageinteger

Returned items per page. Default value is 20. Max value is 1000.

Example:itemsPerPage=888
pageinteger

Page number to return. Default value is 1.

Example:page=3
Headers
Content-Typestringrequired
Default:"application/json"
curl -i -X GET \
  'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/invoices?isValid=true&proformaInvoiceCode=2017000017&creationTimeFrom=2017-02-28T17%3A04%3A47%2B0100&creationTimeTo=2028-02-28T17%3A04%3A47%2B0100&taxDateFrom=2017-02-28T17%3A04%3A47%2B0100&orderCode=2018000012&codeFrom=2018000001&codeTo=2018000012&varSymbol=666&itemsPerPage=888&page=3' \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "invoices": [], "paginator": {} }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }