Postman collection
Suppliers Read

pixiGetItemSuppliers

Returns the supplier assignments of items (supplier item number, EAN, purchase price, minimum order quantity, delivery times), filtered by item or supplier.

Reads the item/supplier assignments from AddItems joined with the master data in Suppliers. Only assignments whose supplier exists in Suppliers are returned.

Parameter normalisation

  • ItemKey = 0 and empty strings for EAN, ItemNrSuppl, ItemNrInt and SupplNr count as not set.

Validation

  1. At least one of ItemKey, EAN, ItemNrSuppl, ItemNrInt or SupplNr must be set. OnlyActiveSuppliers alone is not enough. Otherwise an error row is returned.
  2. If SupplNr is set, the supplier must exist. Otherwise an error row is returned.

Filter logic

  • The item filters ItemKey, EAN, ItemNrSuppl and ItemNrInt are combined with OR. A row matches if any of the given values matches. Each filter is compared with its column in AddItems: ItemRef, EANUPC, ItemNrSuppl and ItemNrInt.
  • SupplNr is combined with AND. It restricts the result to this one supplier.
  • If only SupplNr is given, all items assigned to that supplier are returned.
  • If OnlyActiveSuppliers = 1, only rows are returned where the supplier is not disabled and the item/supplier assignment is active (AddItems.Active = 1).

No sort order is defined.

Notes

  • All reads use NOLOCK, so uncommitted data may be returned.
  • EAN is compared with the supplier-specific EAN AddItems.EANUPC, not with any other EAN field of the item.
  • Errors are not raised as SQL errors. They come back as a normal row with the columns Error and ErrorMsg. Check for the column Error before you read the data columns.
  • If several item filters are given, the result is the union of all matches, not their intersection.
  • Calling the procedure with only SupplNr can return a large result set for suppliers with many items. No paging is available.

Tables used

AddItems · Read Suppliers · Read
SQL object:
dbo.pipiGetItemSuppliers
Updated at 2026-10-30