Discussions
New Client - x-record-uuid
We are trying to use the API to assist our business workflow. We have been doing some test for creating a new client and part of the API reference states :
If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the response header as x-record-uuid.
However, when we submit a new client via the api the only response headers that can be accessed are.
cache-control: max-age=0
content-length: 183
content-type: text/html;charset=UTF-8
expires: Thu, 06 May 2021 09:23:53 GMT
This is because the access control for the headers does not allow the x-record-uuid to be exposed. Only content-range and content-length.
access-control-expose-headers: Content-Range, Content-Length
This means that we are unable to to use the newly created uuid. Is it possible to have the x-record-uuid exposed in the access-control-expose-headers list so it can be used.
Thanks
Posted by Elias Oostveen over 3 years ago
API Error when updating specific jobs
We have noticed a new error occurring when we try to update certain Job Records in ServiceM8 via the API
The error is ‘PUT on 'material' returned status 400. 400 Bad Request. Bad Request. Item Number must be unique. ServiceM8/1.0.’
But the error message is misleading.
It only affects specific jobs.
As well as updating the Quote with line items we also try to send PDFs to the job diary – this fails for these jobs as well with the error ‘No JSON object could be decoded’. But only for these jobs.
All their other jobs work fine, as do all the other transactions we perform (hundreds a day)
After a week or so, a couple of these jobs no longer had the problem and the failed transactions were able to be processed via the API without error.
It seems to me that something in ServiceM8 is locking the specific Job record and not allowing us to update them.
Can you offer any insight?
Posted by dave tar over 3 years ago
Multilingual Custom Booking Form
Hello,
We are really interested in ServiceM8 and we are exploring whether we can create our own custom booking forms and sync the data with ServiceM8 using APIs. We are in the cleaning industry and the custom booking forms would include standard fields such as recurring bookings, address, price, extras, etc. Is the API flexible enough to allow such customizations?
The other requirement we have is we want to build our own custom notifications whether SMS or Transactional Emails (i.e, invoices, job confirmations, etc.), and have them triggered with APIs. The reason behind this is we have a multilingual requirement. We serve customers in English and French and we want communication to be configured based on the user profile language preference. Is this something that can also be achieved?
Regards,
Lyes
Posted by Lyes D. over 3 years ago
Shift data via the API
Is there any way to get shift data via the API? I can't see any endpoints that look relevant.
The information I'm looking for is available on the Activity Timesheet report, but we want to automate this for a payroll integration.
I know Wink Reports has this information and Deputy seems to as well, but not sure if they're screen scraping or using APIs that aren't documented.
Thanks
Posted by Data Integration over 3 years ago
AddOn Directory query
We are a reporting addOn in the Xero Marketplace (https://apps.xero.com/au/app/datasights) , and we also have a growing number of ServiceM8 clients.Would you be able to confirm we can follow your documentation to be added to the AddOns Directory, pending the necessary approval of course?
We don't want to extend the ServiceM8 UI, just allow customers to automate ServiceM8 data to Excel / Power BI / Google Sheets from ServiceM8 via your API.
Happy to build an Auth2 integration into our platform if available, or whatever other requirements you have, just let us know!
Any help or assistance would be much appreciated.
Kev Wiegand
0481501763
Posted by Kevin Wiegand over 3 years ago
Receiving 400 error when posting file attachment data
I'm able to create the file attachment and get a UUID back correctly. When I do the next call to upload the PDF binary data, I get an error back, 400 - No data received in POST.
I've got the file type set as .pdf in the first call and I can see that data is present in the body of the outgoing call so I'm not sure what is happening. I've tried fiddling a bunch of settings but it's a consistent error coming back.
Thanks,
Alan
Posted by Alan Uhe over 3 years ago
Which scope need to create job notes in Oauth?
In API documentation, could not provide the details about the scope for job notes creation.
Please, check the documentation and update. Then provide scope value for job notes creation.
Posted by Mickey P over 3 years ago
ServiceM8 client database interface with FreePBX phone directory/contact manager
Hi All,
I just wanted to share that I have created an interface between ServiceM8 and FreePBX for the purpose of loading Client records from ServiceM8 into the phone directory on our FreePBX system.
This is extremely useful for anyone using FreePBX for their own hosted phone system as it allows for customer details to display on incoming calls.
Contact via www.techfixed.net.au
Posted by Tim Curtis over 3 years ago
Integromat Create Job Customer name
Hi.
In Integromat under 'create job' its states in the 'Customer Name' entry "The name of the Customer to whom this job is assigned. Leave this blank to automatically create a new customer from the job contact details."
When we do this, it doesnt create the customer and therefore creates a job which is not attached to a client.
Any ideas on why this may be?
Thanks
Posted by Kingsley over 3 years ago
Retrieve a form document
Good day,
Is there any functionality for an API to retrieve a form document. I can see a document_uuid in the list of forms, but no API to retrieve the physical form?
Kind Regards
Jeandre Jonker
Posted by Jeandre over 3 years ago