Skip to main content

Add a New Stock Item

Add new stock items to BigChange.

Query String Parameters

NameTypeDescriptionRequired
ActionStringAddStockRequired
StockTypeNameString(100)Name of stock type category e.g. Cars, Vans, bicyclesRequired
StockMakeString(100)Make of stock e.g. BMWRequired
StockModelString(100)Model of stock e.g. 6-SeriesRequired
ItemSerialNoString(120)Serial number of a physical stock itemRequired
StockModelNumberString(100)Model number of stock e.g. 6-Series GTI.Optional
QuantityIntQuantity of stock. Defaults to 1.Optional
UsageDoubleAmount of stock usage. For Stock items that record a usage value such as hours used, mileage, days remaining etc.Optional
NotesString(250)Notes for stock.Optional
CreatedDateDate stock added. Defaults to 'Now'.Optional
ReplaceQtyBoolIf set to true overwrites the stock qty rather than default operation of accumulating. Default is false.Optional
SellingPriceDoubleSelling price of the stock item.Optional
SizeDoubleSize of stock item.Optional
WeightDoubleWeight of stock Item.Optional
SupplierNameString(50)Name of supplier.Optional
SupplierRefString(40)Reference of supplier.Optional
SupplierCostDoubleSuppliers charge for stock item.Optional
SupplierCurrencyStringSuppliers currency code, e.g. Uk Stirling = "GBP".Optional
ContactNameString(50)Name of contact to add stock.Optional
ContactReferenceString(40)The reference of the contact to add stock to. Used to identify the correct contact.Optional
VehicleRegistrationString(40)Registration of vehicle. Used if stock is to be placed in to van stock. Must be a valid existing vehicle registered on BigChange.Optional
StockCodeString(100)Identifies tha code for the stock itemOptional
StockBatchCodeString(100)Identifies tha batch code for the stock item.Optional
IsEquipmentBoolSignifies if the stock item is equipment.Optional
SoldDateDateTimeSet the "sold date".Optional
CurrentStockItemRefString(120)Optional reference to a part stock item. If supplied, this stock item is treated as a "part"Optional
CustomerSerialNumberString(120)Customer serial number.Optional
SupplierSerialNumberString(120)Suppliers serial number.Optional
AltSerialNumberString (120)Alternative serial number.Optional
tip

Please note, subsequent calls will not update Size, Weight or Selling Price.

Response Codes

CodeMessageInformation
0Response DataSee 'Response' example tab
2Invalid contactidInteger value is invalid or was not specified (when required)
2Invalid currentstockitemrefNo record found using the specified parameters
2{parameter} too long Max length is : {parameter} characters : {x} Submission is : {x} characters in length "The parameter value for the named parameter shown in the response is too long

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=AddStock&StockTypeName=Test Stock Type Name&StockMake=Test Stock Make&StockModel=Test Stock Model&ItemSerialNo=123456789