Skip to main content

Add or Update a Stock Item

Add or update stock details on a stock item record.

Query String Parameters

NameTypeDescriptionRequired
ActionStringStockItemSaveRequired
StockItemIdIntFilter by Stock Item Id.Required
ItemSerialNumberStringFilter by Item Serial Number.Required
QuantityIntQuantity of the consumable stock item, where the item is set to consumable.Optional
NewItemSerialNumberStringEnter a new item serial number. Modifies an existing stock items serial number.Optional
CustomerSerialNumberStringRecord the customer serial number.Optional
SupplierSerialNumberStringRecord the supplier serial number.Optional
AltSerialNumberStringRecord the alt serial number.Optional
UsageDoubleModified the current usage of the stock item. Only available where the item is a serialised item.Optional
NotesStringChange the notes of the stock item record. Overwrites the existing stock note.Optional
IsEquipmentBoolModifies the switch to determine whether the stock item record is set as equipment or stock.Optional
cust_custom field namestringPass cust_ followed by the caption of an existing custom field.Optional

Response Codes

CodeMessageInformation
0Response DataSee 'Response' example tab
2Missing Parameter - routine requires at least stockitemid or serialnumberMandatory parameter was not supplied
2Invalid parameter format - stockItemIdInteger value is invalid or was not specified (when required)
2The stock item does not exist in JobWatch for the supplied parametersNo record found using the specified parameters
2The stock record associated with this stock item does not exist in JobWatchNo record found using the specified parameters
2Invalid parameter format - quantityDouble value is invalid or was not specified (when required)
2Invalid parameter format - usageDouble value is invalid or was not specified (when required)
2misc_noRightYou do not have the permissions to edit stock.

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=StockItemSave&StockItemId=1660704&Quantity=5