Postman collection
Items Read

pixiGetItemLogisticsEAN

Returns the EANs of enabled non-bundle items page by page, plus the EANs of single-item bundles that act as packaging units (VPE).

Provides item EAN data for a fulfillment provider, including EANs of packaging units that are modelled as bundles.

Paging

  1. Selects the first @RowCount items with ItemKey greater than @StartKey, ordered by ItemKey ascending.
  2. Only items with Enabled = 1 and IsBundle = 0 are included in the page.

Result rows

  • For every item in the page there is one row with the item's own EANUPC and VPE = 1.
  • In addition, the call looks for packaging-unit bundles: bundles that have exactly one bundle line, where the line quantity equals the component item's OrderUnit (cast to int). For each such bundle whose component item is in the current page, a row is returned with:
    • ItemKey = the component item,
    • EANUPC = the EAN of the bundle,
    • VPE = the OrderUnit of the component item.

The two parts are combined with UNION (exact duplicates removed) and sorted by ItemKey.

Paging through all items

Start with StartKey = 0 and pass the highest ItemKey of the last response as the next StartKey. Stop when a call returns no rows.

Notes

  • The same ItemKey can appear in several rows (own EAN plus one row per packaging-unit bundle). The number of rows can therefore exceed @RowCount; @RowCount limits the number of distinct items, not rows.
  • The bundle itself is not filtered by Enabled; disabled bundles that meet the packaging-unit criteria are also returned.
  • Bundles with more than one bundle line, or whose quantity does not match the component's OrderUnit, are ignored.
  • Reads use NOLOCK for most joins (dirty reads possible); the join for the item's own EAN does not use a locking hint.
  • EANUPC may be empty or NULL if no EAN is maintained.
  • The exact data type of VPE depends on the column type of Items.OrderUnit, which is not visible in the code.

Tables used

Items · Read BundleItems · Read
SQL object:
dbo.pipiGetItemLogisticsEAN
Updated at 2026-10-30