Add or Update a Stock Item's Custom Field Value
This service returns allows you to set stock custom field values.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | SetStockItemCustomFieldValue | Required |
ItemSerialNo | Int | Set the Serial Number parameter to find the stock item. This takes precedence over StockItemId. | Required |
StockItemId | String | If ItemSerialNo is set, StockItemId does not need to be set. | Required |
cust_custom field name | String | Pass cust_ followed by the caption of an existing custom field. | Required |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | Missing parameters | The StockItemId and ItemSerialNo 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=setstockitemcustomfieldvalue&ItemSerialNo=ABC12345&cust_Colour=Red
Response Data
{ "Code": 0 }