PartnerHub

<back to all web services

PartsInventoryChange

To override the Content-type in your clients 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 /json/reply/PartsInventoryChange HTTP/1.1 
Host: partnerhub.pbsdealers.com 
Content-Type: application/json
Content-Length: length

{"PartInfo":{"Id":"string/00000000-0000-0000-0000-000000000000","PartId":"00000000000000000000000000000000","SerialNumber":"String","PartNumber":"String","StrippedNumber":"String","SupersessionPart":"String","AlternateParts":["String"],"Description":"String","Comments":"String","Bin1":"String","Bin2":"String","Group":"String","Class":"String","Source":"String","Manufacturer":"String","Supplier":"String","PartMaster":"String","Status":"String","PackageQuantity":0,"Pricing":{"OriginalPrice":0,"ListPrice":0,"TradePrice":0,"ExchangePrice":0,"CostPrice":0,"JobberPrice":0,"FlatPrice":0},"Stocking":{"BestStockingLevel":0,"Minimum":0,"Maximum":0},"ManufacturerSuggestedStocking":{"ManufacturerManaged":false,"BestStockingLevel":0,"ReOrderPoint":0,"MaximumStockLevel":0,"AdditionalInformation":"String","ProgramType":"String","ManufacturerObsolete":false,"ManufacturerInfo":[{"Key":"String","Value":"String"}]},"OnHand":{"Total":0,"Allocated":0,"Available":0,"OpenWork":0},"OnOrder":{"Total":0,"Allocated":0,"Available":0,"Pending":0,"BackOrder":0},"SalesHits":[{"Month":0,"Year":0,"Value":0,"LineCount":0}],"LastReceipt":"0001-01-01T00:00:00.0000000Z","LastSale":"0001-01-01T00:00:00.0000000Z","EntryDate":"0001-01-01T00:00:00.0000000Z","LastUpdate":"0001-01-01T00:00:00.0000000Z","LastOrderDate":"0001-01-01T00:00:00.0000000Z","LastPhysicalInventoryDate":"0001-01-01T00:00:00.0000000Z","LastReceiptedQuantity":0,"OrderQuantityReceivedMTD":0,"LastAdjusted":"0001-01-01T00:00:00.0000000Z","LastLostSale":"0001-01-01T00:00:00.0000000Z","LastClosedSaleDate":"0001-01-01T00:00:00.0000000Z","PerJobQuantity":0,"ReturnCode":"String","CustomFields":[{"Key":"String","Value":"String","Type":"String"}],"NextSupersessionPart":"00000000000000000000000000000000"},"IsAsynchronous":false,"UserRequest":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"WasSuccessful":false,"Message":"String","ReferenceId":"String","ReferenceNumber":"String"}