Get All Work Orders for a Job
Type
- Get
Example:
- https://ws.cenpoint.com/cpwc.wc?custcode=bogusCustCode&token=bogusToken&appName=sweetAppName&prg=cpapi&proc=getJobWOList&jobsId=0000000021
Base URL (includes authentication + end point)
- https://ws.cenpoint.com/cpwc.wc?custcode=<<Company Code>>&token=<<API Key>>&appName=<<YourAppName>>&prg=cpapi&proc=getJobWOList
Parameters:
Name Type Description Example jobsId String Jobs Id to get WOs for. Must be 10 characters long 0000000021
Returns:
- Array of Work Orders for the specified jobs id
- NOTE: all dates / times are returned in the time zone of the branch.
- NOTE: All times are returned in 24 hour format
{"VFPData":{"rows":[{"jobsid":"0000000021","woid":"0000000022","schedstarttm":"2020-06-01T07:00:00"},{"jobsid":"0000000021","woid":"0000000023","schedstarttm":"2020-06-02T10:00:00"}]}}
- Returned Fields:
Name Type Description Example jobsid String 10 character id for the job the work order is tied to 0000000021 woid String 10 character id for a specific work order 0000000022 schedstarttm DateTime DateTime of when the work order is scheduled to start 2020-06-01T07:00:00
- Or Error Message
- {"errorCode":"-5","errorDesc":"No results found"}
- {"errorCode":"-5","errorDesc":"No results found"}