Get a List of Job Stock
Returns a list of the stock items associated with a specific job.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | JobStock | Required |
JobId | Int | Required | |
JobRef | String | Job reference | Required |
JobCustRef | Int | Job customer reference | Required |
note
Only one of JobId, JobRef and JobCustRef is required. If more than one is supplied the first in this order will be used. When calling the JobStock function the results can be different for different stages of the job lifecycle.
Before a job is completed the stock returned is the stock that is planned to be used on the job.
Once the job is completed the stock returned by this method will list the items actually used on the job.
You can differentiate between the two with the "Confirmed" field – when true the stock has actually been used, when false the stock is planned to be used.
Response Codes
Code | Message | Information |
---|---|---|
2 | Invalid job reference |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=jobstock
Response Data
{ "Code": 0, "Result": [ { "AssetCheckId": "12345" } ] }