Go-to-Light Service 3.1.1.1547 - 97 - API License to GTL Cloud

<back to all web services

StockUpdate

Requires Authentication
Required role:admin
The following routes are available for this service:
All Verbs/UpdateStock
All Verbs/StockUpdate
StockUpdate Parameters:
NameParameterData TypeRequiredDescription
StockIDqueryintYesInternal DB identifier
GtinquerystringYesGlobal Trade Item Number : usually is the barcode of product (EAN, UPC, Gencode, etc...)
StockLocationquerystringNoLocation of main stock or stock address
PhysicalQuantityStockLocationquerydoubleNoQuantity physically stocked at this location
ReserveStockLocationquerystringNoLocation of reserve stock (2nd stock location address)
PhysicalQuantityReserveStockLocationquerydoubleNoQuantity physically stocked at this location
ProductIDquerystringNoProduct ID
ProductAttributeIDquerystringNoSecond product ID E.g. in case of variant
ReferencequerystringNoProduct reference
GtinAttributequerystringNoGTIN of variant
LabelquerystringNoProduct label
NbSKUInPackagequeryint?NoNbSKUInPackage
PackageReferencequerystringNoPackageReference
NbSKUInPackage2queryint?NoNbSKUInPackage2
PackageReference2querystringNoPackageReference2
WeightquerystringNoWeight
StockAdditionalsqueryList<StockAdditional>NoList of stock Additional
StockAdditional Parameters:
NameParameterData TypeRequiredDescription
StockIDformintNo
GtinformstringNo
StockLocationformstringNo
PhysicalQuantityStockLocationformdoubleNo

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 /UpdateStock HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<StockUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoToLightAPI">
  <Gtin>String</Gtin>
  <GtinAttribute>String</GtinAttribute>
  <Label>String</Label>
  <NbSKUInPackage>0</NbSKUInPackage>
  <NbSKUInPackage2>0</NbSKUInPackage2>
  <PackageReference>String</PackageReference>
  <PackageReference2>String</PackageReference2>
  <PhysicalQuantityReserveStockLocation>0</PhysicalQuantityReserveStockLocation>
  <PhysicalQuantityStockLocation>0</PhysicalQuantityStockLocation>
  <ProductAttributeID>String</ProductAttributeID>
  <ProductID>String</ProductID>
  <Reference>String</Reference>
  <ReserveStockLocation>String</ReserveStockLocation>
  <StockAdditionals>
    <StockAdditional>
      <Gtin>String</Gtin>
      <PhysicalQuantityStockLocation>0</PhysicalQuantityStockLocation>
      <StockID>0</StockID>
      <StockLocation>String</StockLocation>
    </StockAdditional>
  </StockAdditionals>
  <StockID>0</StockID>
  <StockLocation>String</StockLocation>
  <Weight>String</Weight>
</StockUpdate>