Create New Job
  • 04 Jun 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Create New Job

  • Dark
    Light
  • PDF

Article summary

Create New Job

Type

  • Post


Example:


Base URL (includes authentication + end point)

  •  https://ws.cenpoint.com/cpwc.wc?custcode=<<Company Code>>&token=<<API Key>>&appName=<<YourAppName>>&prg=cpapi&proc=createNewJob


Body Parameters (Required): (please see Escaping Body Parameters)

  • NameTypeDescriptionExample
    custIdStringThe 10 character custId to tie this job to0000000043
    tsDateDate (or String)The tentative start date for the job. Can be passed either as a date  (time will be ignored) or as a string with MM/DD/YYYY formatting2020-06-03T00:00:00 or 06/03/2020
    workDescStringDescription of work to be performed. No length limitScan and core 28 holes... rest of desc... contact Scott for questions
    siteContFNameStringFirst name of the site contact. Max of 15 charactersScott
    siteContLNameStringLast name of the site contact. Max of 25 charactersCenPoint

Body Parameters (Optional): 

  • NameTypeDescriptionExample
    addr1StringFirst line of the job address. Max length of 35 characters131314 S. 5800 W.
    addr2StringSecond line of the job address. Max length of 35 characters.Suite 204
    cityStringCity of the job address. Max length of 25 charactersHerriman
    stateStringState abbreviation of the job address. Max length of 2 charactersUT
    zipStringZip code of the job address. Max length of 10 characters84096
    poStringJob PO (if applicable). Max of 20 characters12345678910
    jobTitleStringJob Title / Desc. Max of 35 charactersWalmart Job
    siteContCellStringCell phone of the site contact. Only used if contact doesn't already exist. Formatting will be stripped away. Max of 10 characters8014786822

Returns:

  • Array of with the newly created jobsId
    • {"VFPData":{"rows":[{"jobsid":"0000000021"}]}}
    • Returned Fields:
      NameTypeDescriptionExample
      jobsidString10 character id for the job that was created0000000021
  • or Error Msg Object
    • {"errorCode":"-4","errorDesc":"CustId 0000000273 does not exist or is not available at the requested branch. Try creating a job request alert instead."}
      • Customer does not exist or is not available at the branch you authenticated with.
      • A user with access to CenPoint must open the customer -> Branch Availability -> Check the desired branch
    • {"errorCode":"-5","errorDesc":"New job alert department is not set up under branch settings"}
      • A user with access to CenPoint must go to File -> Company / Branch Info -> Pick Branch and Modify -> Misc. Tab -> Specify the 'New Job Alert' Department