Postman collection
Invoices Read

pixiEmillInvoicesList

Returns all invoices of a date range, optionally limited to one shop, with customer data and the related order, for the eMill integration.

Lists invoices for the eMill integration.

  • ShopID: if empty or omitted, invoices of all shops are returned; otherwise only invoices whose InvShopID equals ShopID.
  • DateFrom: if omitted or earlier than 1990-01-01, the start of the current day (00:00:00) is used.
  • DateTo: if omitted or earlier than 1990-01-01, the end of the current day (23:59:59.997) is used.
  • An invoice is returned if its InvDate lies between DateFrom and DateTo (both inclusive).

For each invoice the call adds:

  • customer data (external customer number, salutation, names, e-mail) from the customer referenced by the invoice; these columns are empty if no customer is found;
  • order data (OrderNr, OrderNrExternal, OrdShopID, OrderDate) from the order line with the highest key among the invoice lines of the invoice.

The result has no defined sort order.

Notes

  • All tables are read WITH (NOLOCK); uncommitted data may appear.
  • Invoices without invoice lines, or whose highest referenced order line does not exist, are not returned (inner join on the order line).
  • If only one date is passed, the other defaults to today: passing only a DateTo in the past results in DateFrom = today and therefore an empty result.
  • DateTo without time part means midnight, so invoices later on that day are excluded; pass the end of the day explicitly.
  • Only one order is reported per invoice, even if the invoice covers lines of several orders.

Tables used

Invoices · Read Customers · Read Orderlines · Read Invlines · Read
SQL object:
dbo.pipiEmillInvoicesList
Updated at 2026-10-30