Postman collection
Invoices Read

pixiGetDatevExportInvoices

Returns the DATEV export data for invoices in a date range, optionally filtered by shop, country, invoice number, external order number, account and cost center.

Provides the DATEV export file "Invoices" through the API.

  1. The call reads the setting BookExportDatevActive (shown in Pixi as "DATEV API Calls").
  2. If the setting is 1, it passes all parameters unchanged to the internal procedure Pixi_DatevExportInvoices and returns that procedure's result. It also passes @SetStartAndEndOfDay = 0.
  3. If the setting is not 1, the call does not run an export. It returns one status row with Status = ERROR and a message saying that the setting is not enabled.

Parameters:

  • DateFrom and DateTo are required and define the period of the export.
  • All other parameters are optional filters. If a filter is left out (NULL), no restriction is applied on that criterion. This assumes that the internal procedure treats NULL this way.
  • ShowOnlySums asks for a summed output instead of individual lines.

Notes

  • The actual export logic, the filter semantics and the columns of the export result set are in Pixi_DatevExportInvoices. Its definition is not attached, so the columns and any side effects of the export cannot be documented here.
  • Because @SetStartAndEndOfDay = 0 is passed, DateFrom and DateTo are presumably used exactly as sent and are not extended to 00:00 / 23:59:59. To cover whole days, send explicit times, e.g. 2024-01-31T23:59:59.
  • The setting is read through fpixi_GetSetting. If the setting does not exist, this function returns 0, so the call returns the error row. A setting value that cannot be converted to BIT causes a conversion error.
  • The setting is read from Settings with NOLOCK.

Tables used

Settings · Read
SQL object:
dbo.pipiGetDatevExportInvoices
Updated at 2026-10-30