I'm trying to push some notes from ServiceM8 to Zoho CRM. This triggers when a job is created or updated. I need to get the contact/client's email address first to match if it exist in the CRM.
Now, my problem is, I don't know how to get the contact/client details. What is the correct endpoint and parameters to use?
Please let me know what I need to do as I am new to all of this stuff, especially when it comes APIs. Thank you!
I tried the below screenshot, but getting an error. enter image description here
End point for Job Contacts is
https://api.servicem8.com/api_1.0/jobcontact.json and you will need to do a filter to 'job_uuid' which will return a json with all contacts for that job. 'email' is the field.
$filter=job_uuid eq 'caf8ac40-609d-4163-b5de-1f02a417079b'
So query will look like:
https://api.servicem8.com/api_1.0/jobcontact.json?$filter=job_uuid eq 'caf8ac40-609d-4163-b5de-1f02a417079b'
Structure like below:
End point for the actual CLIENT is:
https://api.servicem8.com/api_1.0/companycontact.json
and once again the email field is simply 'email'
and structure is like below: