TeleportService

<back to all web services

Catalog_UpdateStocks

Requires Authentication
The following routes are available for this service:
POST/Catalog_UpdateStocks
Catalog_UpdateStocks Parameters:
NameParameterData TypeRequiredDescription
ItemsbodyList<CatalogStock>No
CatalogStock Parameters:
NameParameterData TypeRequiredDescription
uidformstringNo
stockformdecimalNo
in_way_stockformdecimalNo
receipt_dateformDateTimeNo
StockDestinationformList<StockDestination>No
StockDestination Parameters:
NameParameterData TypeRequiredDescription
DestinationformstringNo
StockformdecimalNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Catalog_UpdateStocks HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<Catalog_UpdateStocks xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <Items>
    <CatalogStock>
      <StockDestination>
        <StockDestination>
          <Destination>String</Destination>
          <Stock>0</Stock>
        </StockDestination>
      </StockDestination>
      <in_way_stock>0</in_way_stock>
      <receipt_date>0001-01-01T00:00:00</receipt_date>
      <stock>0</stock>
      <uid>String</uid>
    </CatalogStock>
  </Items>
</Catalog_UpdateStocks>