Get a Stock Item by Serial Number
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | FindStockItem | Required |
ItemSerialNo | String | Serial number of item to find. | Required |
StockItemId | Int | Id of item to find. | Required |
WithCurrentLocInfo | Int | Include current contact location in the response. Value of 1 includes the location detail, 0 excludes the location detail. | Optional |
IncludeDeleted | Int | Include deleted items in the response. Value of 1 includes deleted items, 0 excludes deleted items. | Optional |
IncludeCustomFields | Int | Include custom fields in the response. Value of 1 includes custom fields, 0 excludes custom fields. | Optional |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | Missing parameters | The ItemSerialNo and StockItemId parameters are missing. |
2 | Invalid stockitemId | Integer value is invalid or was not specified (when required) |
2 | Invalid stock item. | No record found using the specified parameters |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=FindStockItem&ItemSerialNo=00627221
Response Data
{ "Code": 0, "Result": { "ItemId": 3039441, "StockId": 866599, "Make": "", "Model": "Big Lights", "Number": "", "CurrentAssetId": 76656, "CurrentAssetReg": "XY17 ABC", "IsEquipment": true, "Usage": 1, "SerialNumber": "00627221", "CreationDate": "2019-03-29 10:34:08", "StockQuantity": 1, "Location": "XY17 ABC", "LocationType": "On Vehicle", "LocationTypeOrdinal": 1, "Notes": "", "SupplierSerialNumber": "", "CustomerSerialNumber": "" } }