Discussions
Creating a new client and contact
I am in the process of planning an integration between ServiceM8 and a popular form system.
I just want to do a simple process of creating a new contact in ServiceM8 but it seems like the process of doing this is cumbersome and perhaps prone to issues.
So it's my understanding to create a contact using the API you must first create a client as your API call to create a contact must have a company uuid.
So step 1: create the client, step 2 create the contact.
But the problem is that when creating a client there's no response reporting the created clients uuid. So therefore you need to make 3 API calls?!?!
So step 1: create a client, step 2: list all clients and do a lookup between the original company name and the company names provided in the API call, step 3: add the new contact to the client.
As I mentioned this process seems cumbersome, ideally you could just make 1 call to create a client and contact, or at worst on the first call it provides a response with the companies uuid. If I make these 3 API calls is the system fast enough to generate this newly created data in the later API calls? Is there a better way of doing this?
Thanks for your help,