Get Work Order Info / Status
Type
- Get
Example:
- https://ws.cenpoint.com/cpwc.wc?custcode=bogusCustCode&token=bogusToken&appName=sweetAppName&prg=cpapi&proc=getWOInfo&woId=0000000023
Base URL (includes authentication + end point)
- https://ws.cenpoint.com/cpwc.wc?custcode=<<Company Code>>&token=<<API Key>>&appName=<<YourAppName>>&prg=cpapi&proc=getWOInfo
Parameters:
Name Type Description Example woId String WO Id to get status for. Must be 10 characters long 0000000023
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":"0000000023","status":"Completed","statusinfo":"2018-06-15T09:33:00","createdbyname":"Admin Administrator","techid":"0000000006","techname":"John Smith"}]}}
- 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 0000000023 status String Either:
- Scheduled
- Started
- Arrived
- Departed
- Completed
- Job Cancelled
- Job DeletedCompleted statusinfo String Additional info about the status, may be the date / time of the status or some other information about it 2018-06-15T09:33:00 createdbyname String Name of the CenPoint user that created the wo Admin Administrator techid String 10 character id for the CenPoint user that is scheduled to perform the work 0000000006 techname String Name of the CenPoint user that is scheduled to perform the work John Smith
- Or Error Message
- {"errorCode":"-5","errorDesc":"No results found"}