Get All Work Orders for a Job
  • 04 Jun 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Get All Work Orders for a Job

  • Dark
    Light
  • PDF

Article summary

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: 

  • NameTypeDescriptionExample
    jobsIdStringJobs Id to get WOs for. Must be 10 characters long0000000021


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:
      NameTypeDescriptionExample
      jobsidString10 character id for the job the work order is tied to0000000021
      woidString10 character id for a specific work order0000000022
      schedstarttmDateTimeDateTime of when the work order is scheduled to start2020-06-01T07:00:00
  • Or Error Message
    • {"errorCode":"-5","errorDesc":"No results found"}

What's Next