kb:ws:sifarnici_stocklevel

StockLevel() metoda

Metod vraća kolekciju Inventory entiteta koji predstavljaju stanje jednog ili grupe artikala u određenom momentu, već prema ulaznim parametrima.

StockLevel (sessToken, stockID, stockType, [forDate], [itemID], [itemArticle], [itemType], [itemColor], [itemModel], [itemTitle],[priceListName],[priceListDate])

Kolekcija Inventory entiteta (List<Inventory>) ili null ukoliko prema zadatim parametrima nema stanja na lageru.

NazivVrstaOpisRevizija
sessTokenStringJedinstveni niz znakova dobijen metodom GetToken() koji identifikuje korisničku sesiju.19-6-11
stockIDintIdentifikator objekta dobijen metodom StocksAvailable. Ovo je obavezan parametar.19-6-11
stockTypeStockTypesVrednost koja se dobija preko metode GetStockTypes().19-6-11
forDateDateTimeDatum i vreme preseka stanja. Lager će biti izvučen prema poslednjim podacima u ovom momentu.19-6-11
itemIDintJedinstveni identifikator artikla za filtriranje rezultata. Ukoliko se preda 0 filter se ignoriše. Postavka vrednosti ovog parametra može rezultirati sa najviše jednom stavkom rezultata.19-6-11
itemArticleStringFilter po osnovnoj šifri artikla (polje Artikal). Ukoliko se preda ”%” filter se ignoriše.19-6-11
itemTypeStringFilter po tipu artikla (polje Tip). Ukoliko se preda ”%” filter se ignoriše.19-6-11
itemColorStringFilter po boji artikla (polje Boja). Ukoliko se preda ”%” filter se ignoriše.19-6-11
itemModelStringFilter po modelu artikla (polje Model). Ukoliko se preda ”%” filter se ignoriše.19-6-11
itemTitleStringFilter po nazivu artikla (polje Naziv). Ukoliko se preda ”%” filter se ignoriše.19-6-11
priceListNameStringNaziv traženog cenovnika19-6-11
priceListDateDateDatum do kada cenovnik važi19-6-11
POST https://ws.melany.rs:8191/Assets/Assets HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.bort.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:StockLevel>
         <sessToken>20010110584722719004</sessToken>
         <stockID>2</stockID>
         <stockType>AllStock</stockType>
         <forDate></forDate>
         <itemID>0</itemID>
         <itemArticle>%</itemArticle>
         <itemType>%</itemType>
         <itemColor>%</itemColor>
         <itemModel>%</itemModel>
         <itemTitle>%</itemTitle>
         <priceListName></priceListName>
         <priceDate></priceDate>
      </ser:StockLevel>
   </soapenv:Body>
</soapenv:Envelope>
HTTP/1.1 200 OK
Server: GlassFish Server Open Source Edition  4.1.2
X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition  4.1.2  Java/Oracle Corporation/1.8)
Server: grizzly/2.3.23
Content-Type: text/xml; charset=utf-8

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:StockLevelResponse xmlns:ns2="http://services.bort.com/">
         <return>
            <artCode>31981</artCode>
            <artColor/>
            <artModel/>
            <artTitle>Ciciban 440 navy 19-24</artTitle>
            <artType>20</artType>
            <dtUpd>2020-07-09T00:00:00+02:00</dtUpd>
            <invID>2791</invID>
            <maxQtt>0.0</maxQtt>
            <minQtt>0.0</minQtt>
            <price>2490.0</price>
            <priceCols/>
            <qtt>2.0</qtt>
            <resQtt>0.0</resQtt>
            <stockID>2</stockID>
            <uom>kom</uom>
         </return>
         <return>
            <artCode>31981</artCode>
            <artColor/>
            <artModel/>
            <artTitle>Ciciban 440 navy 19-24</artTitle>
            <artType>21</artType>
            <dtUpd>2020-07-09T00:00:00+02:00</dtUpd>
            <invID>2801</invID>
            <maxQtt>0.0</maxQtt>
            <minQtt>0.0</minQtt>
            <price>2490.0</price>
            <priceCols/>
            <qtt>1.0</qtt>
            <resQtt>0.0</resQtt>
            <stockID>2</stockID>
            <uom>kom</uom>
         </return>
      </ns2:StockLevelResponse>
   </S:Body>
</S:Envelope>
  • kb/ws/sifarnici_stocklevel.txt
  • Last modified: 2020/08/06 14:28
  • by aleksandar