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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"StockID":0,"Gtin":"String","StockLocation":"String","PhysicalQuantityStockLocation":0,"ReserveStockLocation":"String","PhysicalQuantityReserveStockLocation":0,"ProductID":"String","ProductAttributeID":"String","Reference":"String","GtinAttribute":"String","Label":"String","NbSKUInPackage":0,"PackageReference":"String","NbSKUInPackage2":0,"PackageReference2":"String","Weight":"String","StockAdditionals":[{"StockID":0,"Gtin":"String","StockLocation":"String","PhysicalQuantityStockLocation":0}]}