pixi Developer & Integration Documentation

pixiSetStock

Description

API call to set stock of item in bin.


Request Parameters

# Name Type Required Example Description
1 EanUpc string 1 abcdefg EAN of the updated item.
2 BinName string 1 abcdefg Name of the updated bin.
3 LocId string 1 abcdefg Bin location(in case of same binnames on locations).
4 NewStockQty integer 1 123 New quantity on bin.
5 Username string 0 abcdefg User
6 SMORef integer 1 123 Stock movement operation key.
7 SMTref integer 1 123 Stock movement type key.
8 BatchNumber string 0 abcdefg Batch number for items tagged with Batch Number
9 BestBeforeDate string 0 YYYY-MM-DD hh:mm:ss Best before date for items tagged with Best Before Date

Request body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dem="https://api.pixi.eu/soap/demosandbox/">
   <soapenv:Header/>
   <soapenv:Body>
      <dem:pixiSetStock>
         <dem:EanUpc>abcdefg</dem:EanUpc>
         <dem:BinName>abcdefg</dem:BinName>
         <dem:LocId>abcdefg</dem:LocId>
         <dem:NewStockQty>123</dem:NewStockQty>
         <dem:Username>abcdefg</dem:Username>
         <dem:SMORef>123</dem:SMORef>
         <dem:SMTref>123</dem:SMTref>
         <dem:BatchNumber>abcdefg</dem:BatchNumber>
         <dem:BestBeforeDate>YYYY-MM-DD hh:mm:ss</dem:BestBeforeDate>
      </dem:pixiSetStock>
   </soapenv:Body>
</soapenv:Envelope>

Response


Body 1: Status output

# Name Type Description
1 Status string Execution status (OK/ERROR)
2 StatusMessage string Description of the status

Additional Notes

Parameters "BatchNumber" and "BestBeforeDate" are mandatory if items are tagged with those tags.
If parameter "Username" is not provided at all, "pipiSetStock" is used by default.
If it is provided but it is empty, the "Updated By" column in the Bin History stays empty.

Use the following API calls to get information about possible values for:

- SMORef = pixiGetStockMovementOperations (SMOKey)
- SMTref = pixiGetStockMovementTypes (SMTKey) or pixiGetStockMovementTypesForOperation (SMTKey)