Get a List of Stock Makes and Models
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | ListStockMakeModel | Required |
DisplayCount | Int | Filter the number of stock items to display. | Optional |
StockColumn | String | The stock column name to sort on, defaults to StockMake if not specified. | Optional |
Direction | String | Specify the direction of list items sorting, asc or desc. | Optional |
ProductGroup | String | Filter by the product group name. | Optional |
SearchTerm | String | Filter by a search term. | Optional |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | The display count is in an invalid format. | Integer value is invalid or was not specified (when required) |
2 | The product group specified does not exist. | No record found using the specified parameters |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=ListStockMakeModel
Response Data
{ "Code": 0, "Result": [ { "StockId": 564567, "StockTypeName": "PARTS", "StockMake": "", "StockModel": ">0.75 5C PVC Glex 50mm (50)", "StockNumber": "", "StockConsumable": false, "StockNotes": "", "StockSellingPrice": 46, "StockCurrency": "GBP" }, { "StockId": 564558, "StockTypeName": "Parts", "StockMake": "", "StockModel": ">0.75 5C PVC Glex 50mm (50)", "StockNumber": "", "StockConsumable": false, "StockNotes": "", "StockCurrency": "" }, { "StockId": 564559, "StockTypeName": "Parts", "StockMake": "", "StockModel": "0.25 10 Core Cable", "StockNumber": "", "StockConsumable": false, "StockNotes": "", "StockCurrency": "" } ] }