Remove Job Stock
This web service removes a specific line of stock from a job.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | JobDeleteStock | Required |
JobId | Int | The unique identifier of the job, which can be retrieved using any of the methods listed under add something here. | See Note |
JobRef | String | The reference of the job that is input as free text. | See Note |
JobStockId | Int | Stock item Id. | Required |
note
Either the Job Id or Reference can be supplied. If both parameters are provided, the Job Id will take precedence.
Response Codes
Code | Message | Information |
---|---|---|
0 | null | |
2 | JobId or JobRef parameter expected | |
2 | Invalid parameter - jobId | |
2 | Missing or invalid parameter - jobStockId | |
2 | Job not found | |
2 | No Stock Items on Job | |
2 | Unable to locate Job Stock Item |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=jobdeletestock
Response Data
{ "Code": 0, "Result": [ { "AssetCheckId": "12345" } ] }