Follow

API Changes

GetSite API

 /rest/contact/sites/{clientId}/{siteRef}/

By running this API you will have two additional fields in your response, this will show the dates against the job.

  • ReportedDateTime
  • CreatedDateTime

 

GetAppSlots

/rest/availability/getAppSlots/{jobRef}/{startDate}?allowSecondary={allowSecondary}&zoneCriteria={zoneCriteria}&teamId={id}

Team ID has been added to the GetAppSlots API so you can pass the Team ID to determine what availability you will see in the response. If you don't supply a team ID or its set to 0 it will use the default team assigned to the job

If you dont need to set the service or working area coverage you can add the team id after the startdate. 

/rest/availability/getAppSlots/{jobRef}/{startDate}?teamId={id}

 

Contact

/rest/contact/contact

If you enter a contact method that doesn't exist on your application it will default to be a home phone. Contact methods are mandatory therefore it will be required for all contacts where you are adding phone numbers or email address. For the API you will be looking for the fields called Contact1Type, this will affect type 2,3 and 4. 

 

    "clientRef":"1",
    "contactRef":"ahah",
    "salutation":"Mr",
    "forename":"Arthur",
    "surname":"Putey",
    "contact1":"08789 998778",
    "contact1Type":"2",
    "contact2":"aputey@email.com",
    "contact2Type":"3",
    "contact3":"arthur64",
    "contact3Type":"7",
    "contact4":"01395 278878",
    "contact4Type":"1",
    "preferredContact":"1",
    "address1":"7 Eve St",
    "address2":"Siydenham",
    "address3":"Oxon",
    "address4":"",
    "postCode":"OX7 7HG",
    "notes":"some notes",
    "considerations":"some considerations",
    "locations" : [
        { "locationRef":"dhsjsk21",
          "isPreferred":"false",
          "startDate":"12/12/2010",
          "endDate":"12/12/2099"
          "usageTypeId":"32" }
    ]
}
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request