Postman collection
Items Read

pixiGetItemInfo2

Returns master data, prices, stock, tags and supplier information for one or more items found by item key, EAN, item numbers or an XML list.

Looks up items and returns one row per found item with master data, prices, stock and tags.

Input normalisation

  • ItemKey = 0 and empty strings in ItemNrInt, EANUPC, ItemNrSuppl, ItemXML and InternalItemNumber are treated as not given. An empty LocID is treated as NULL.
  • If none of ItemKey, ItemNrInt, EANUPC, ItemNrSuppl, ItemXML or InternalItemNumber is given, the call returns a single error row (Error, ErrorMsg). LocID alone is not enough.

Item search

  • The single parameters and every /ITEMS/ITEM element of ItemXML form a list of search criteria. Spaces are removed from ITEMKEY in the XML.
  • Items are searched in the item code table and all hits are combined (logical OR, duplicates removed):
    • ItemKey matches the item ID,
    • EANUPC / EAN matches a code of type 1 (EAN),
    • ItemNrInt matches a code of type 2,
    • InternalItemNumber matches a code of type 3,
    • ItemNrSuppl matches a code of type 4.

Output

  • One row per found item, sorted by ItemKey.
  • If LocID is given, MinStockQty, Quantity, SafetyStock and TargetStock come from the location-specific item data of that location; otherwise (or if there is no such data) MinStockQty and Quantity come from the item master and SafetyStock/TargetStock are 0.
  • With ConsiderFavouriteSupplier = 1, price, supplier number, supplier item number, EAN and minimum order quantity are taken from the active preferred supplier entry (supplier not disabled), falling back to the item master. With 0 (default), MinOrderQty and EANUPC come from the supplier entry of the item's main supplier, falling back to the item master.
  • VATLevel maps the VAT rate code 1/2/3 to MwSt_High/MwSt_Low/MwSt_Null.
  • ItemTAGs lists all tags of the item separated by |; ABC contains the system tag A, B or C of the item.

Notes

  • All reads use NOLOCK, so uncommitted data may be returned.
  • The search runs entirely over the item code table: an item is only found by ItemKey if it has at least one item code entry.
  • Although ConsiderFavouriteSupplier is commented as "Not used anymore", the code still evaluates it. With value 1 and no active preferred supplier, MinOrderQty is 0.
  • The output joins can produce more than one row per item, e.g. if an item has several internal item numbers (code type 3), several supplier entries for the main supplier, several preferred suppliers or several of the system tags A/B/C.
  • ITEMKEY values in the XML are converted to int; a non-numeric value causes a SQL conversion error. An invalid XML document also causes a SQL error.
  • ItemTAGs is read from the tag assignment table TagMatch, while ABC is read from ItemTagMatching; ItemTAGs is NULL if the item has no tags.
  • VATLevel is NULL for VAT rate codes other than 1, 2 and 3.

Parameters

Parameter Type Default Description
ItemKey
int NULL

Internal item key. 0 is treated as not given.

Example: 4711

ItemNrInt
varchar(50)
string
NULL

Internal item number (item code type 2). Empty string is treated as not given.

Example: ART-10045

EANUPC
varchar(13)
string
NULL

EAN/UPC of the item (item code type 1). Empty string is treated as not given.

Example: 4006381333931

ItemNrSuppl
varchar(50)
string
NULL

Supplier item number (item code type 4). Empty string is treated as not given.

Example: SUP-998877

LocID
varchar(3)
string
NULL

Location (warehouse) ID. If given, stock quantity, minimum stock, safety stock and target stock are taken from the location-specific item data. Not a search criterion.

Example: 001

ItemXML
varchar(max)
xml
NULL

XML list of items to look up. Each /ITEMS/ITEM element may contain ITEMKEY, ITEMNRSUPPL, ITEMNRINT, EAN and INTERNALITEMNUMBER. Combined with the single parameters.

Example:

<ITEMS>
  <ITEM>
    <ITEMKEY>4711</ITEMKEY>
    <ITEMNRSUPPL>SUP-998877</ITEMNRSUPPL>
    <ITEMNRINT>ART-10045</ITEMNRINT>
    <EAN>4006381333931</EAN>
    <INTERNALITEMNUMBER>INT-00045</INTERNALITEMNUMBER>
  </ITEM>
  <ITEM>
    <ITEMKEY/>
    <ITEMNRSUPPL/>
    <ITEMNRINT>ART-10046</ITEMNRINT>
    <EAN/>
    <INTERNALITEMNUMBER/>
  </ITEM>
</ITEMS>
InternalItemNumber
varchar(50)
string
NULL

Internal item number (item code type 3). Empty string is treated as not given.

Example: INT-00045

ConsiderFavouriteSupplier
bit
boolean
0

If 1, supplier price, supplier number, supplier item number, EAN and minimum order quantity are taken from the active preferred supplier. Commented as no longer used, but still evaluated by the code.

Allowed values

  • 0 – Use main supplier data of the item (default).
  • 1 – Use data of the active preferred supplier.

Example: 0

Response

Result set 1 · If none of the search parameters is given

Error row.

Column Type Description
Error varchar(5)
string

Constant Error.

ErrorMsg varchar(37)
string

Error message text.

Result set 2 · If at least one search parameter is given

One row per found item, sorted by ItemKey.

Column Type Description
ItemKey int

Internal item key.

SupplPrice
Nullable
money
decimal

Purchase price (preferred supplier if requested, otherwise item master).

ItemName
Nullable
string

Item name.

VPE decimal

Packaging unit, 0 if not set.

OrderUnit decimal

Order unit, 0 if not set.

MinStockQty
Nullable
int

Minimum stock (location-specific if LocID given and data exist, otherwise item master).

MinOrderQty int

Minimum order quantity, 0 if not set.

SupplNr
Nullable
varchar(4)
string

Supplier number.

Category
Nullable
string

Text of the item's configuration type.

ItemNrInt
Nullable
string

Internal item number.

ItemNrSuppl varchar(50)
string

Supplier item number, empty string if not set.

Quantity
Nullable
int

Stock quantity (location quantity if LocID given and data exist, otherwise item master).

PriceVK
Nullable
decimal

Sales price.

VATLevel
Nullable
nvarchar(9)
string

VAT level: MwSt_High, MwSt_Low or MwSt_Null; NULL for other codes.

Enabled
Nullable
boolean

Whether the item is enabled.

ItemTAGs
Nullable
nvarchar(1000)
string

All tags of the item separated by |; NULL if none.

EANUPC
Nullable
varchar(13)
string

EAN/UPC (preferred supplier, main supplier entry or item master).

ABC string

ABC classification from system tag A, B or C; empty string if none.

ExportEstimatedDelivery
Nullable
string

Estimated delivery information for export.

PicLinkLarge
Nullable
string

Link to the large item picture.

PicLinkSmall
Nullable
string

Link to the small item picture.

InternalItemNumber
Nullable
string

Item code of type 3 (internal item number).

SafetyStock int

Location-specific safety stock, 0 if not available.

TargetStock int

Location-specific target stock, 0 if not available.

ItemDescription
Nullable
string

Item description.

Error messages

Status Message Cause
Error Please specify at least one parameter None of `ItemKey`, `ItemNrInt`, `EANUPC`, `ItemNrSuppl`, `ItemXML` or `InternalItemNumber` was given (or all were 0/empty). Pass at least one search criterion.

Examples

POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
Authorization: Basic BASE64(USERNAME:PASSWORD)

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://apigateway.descartes.com/tms/pixi/">
  <SOAP-ENV:Body>
    <ns1:pixiGetItemInfo2>
      <!-- <ItemKey>4711</ItemKey> -->
      <!-- <ItemNrInt>ART-10045</ItemNrInt> -->
      <!-- <EANUPC>4006381333931</EANUPC> -->
      <!-- <ItemNrSuppl>SUP-998877</ItemNrSuppl> -->
      <!-- <LocID>001</LocID> -->
      <!-- <ItemXML><![CDATA[<ITEMS><ITEM><ITEMKEY>4711</ITEMKEY><ITEMNRSUPPL>SUP-998877</ITEMNRSUPPL><ITEMNRINT>ART-10045</ITEMNRINT><EAN>4006381333931</EAN><INTERNALITEMNUMBER>INT-00045</INTERNALITEMNUMBER></ITEM><ITEM><ITEMKEY></ITEMKEY><ITEMNRSUPPL></ITEMNRSUPPL><ITEMNRINT>ART-10046</ITEMNRINT><EAN></EAN><INTERNALITEMNUMBER></INTERNALITEMNUMBER></ITEM></ITEMS>]]></ItemXML> -->
      <!-- <InternalItemNumber>INT-00045</InternalItemNumber> -->
      <!-- <ConsiderFavouriteSupplier>0</ConsiderFavouriteSupplier> -->
    </ns1:pixiGetItemInfo2>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Tables used

ItemCode · Read AddItems · Read Suppliers · Read TagMatch · Read Tag · Read Items · Read TontrArten · Read ItemLocationSpecific · Read Item_EstimatedDelivery · Read ItemTagMatching · Read
SQL object:
dbo.pipiGetItemInfo2
Procedure last changed on 2026-10-05
Documentation written by claude-opus-5-5 on 2026-10-30