Get Stock Types
List all Stock Types or use optional parameters to filter by Stock Type Name or Id
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | StockTypes | Required |
StockTypeName | Int | Stock type name. | Optional |
StockTypeId | String | Unique stock type Id. | Optional |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | Invalid Format - stockTypeId | Integer value is invalid or was not specified (when required) |
2 | StockTypeId {stockTypeId} does not exist in JobWatch | No record found using the specified parameters |
2 | StockTypeName {stockTypeName} does not exist in JobWatch | No record found using the specified parameters |
2 | No stock types available for customer | No data returned or set-up in BigChange |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=StockTypes
Response Data
{ "Code": 0, "Result": [ { "StockTypeId": 77192, "StockTypeName": "NEW STOCK NAME 1" }, { "StockTypeId": 77193, "StockTypeName": "NEW STOCK NAME 2" }, { "StockTypeId": 77194, "StockTypeName": "NEW STOCK NAME 3" }, { "StockTypeId": 77195, "StockTypeName": "NEW STOCK NAME 4" }, { "StockTypeId": 77196, "StockTypeName": "NEW STOCK NAME 5" } ] }