Discussions

Ask a Question

bearer token not working with api call

I am getting this error below when I try to use a bearer token in my custom add on Error:"Account trial has expired. Please select an account plan and try again." the format of the API call is as follows url: 'https://api.servicem8.com/api_1.0/material.json?%24filter=active%20eq%201', headers: { accept: 'application/json', authorization : 'Bearer '+event.auth.accessToken }

booking reminders

When trying to apply the badge to each client to send booking reminders it keeps saying the name must be unique and is unable to apply the badge. I have included all last names etc so that there is no duplicates of names. How do I make a unique name so that the badge can e applied?

Delete/Change Booking through API

Is there a way to delete or change a booking through the API? I can create a new appointment booking, but I can't seem to find a way to change it, resulting in multiple appointments getting booked in some instances

Quoting Calculator

One of my clients who uses Service M8 is looking to quote for bathrooms whilst with a customer. He is initially going to start with a limited range of bathroom options and this will grow over time. He has considered the possibility of creating an e-commerce website which could integrate with Service M8 or whether Service M8 has the functionality now or needs further development. Your help would be appreciated, please. My telephone number is 07709 247 560 and I feel it would be easier to explain the requirements via telephone rather than email. I thank you for your kind assistance with this.

API end point stopped working

Job/Clent API end points stopped working. The error says the following: DataFormat.Error: We found extra characters at the end of JSON input. Details: Value= Position=181461 I already had this type of error before and it seems to clear on the following day without me doing anything. Are there times when API's do not work due to maintenance or something like that? Thanks

s_auth URL Parameter where to get or assign value?

Hello, I have a question regarding the s_auth parameter in every URL. example https://eu-west-2.go.servicem8.com/dbo_display_v2?&s_strObjectName=company&s_auth=1ea6b7b228a250cecdc483b118242877 Is there a way where I can set or make the value static, or maybe any endpoint that will return me the value for s_auth? I'm having a trouble redirecting into a page the project I'm working on since the value of s_auth changes every time I log in. I hope that make sense. Thank you in advance.

Bulk Upload API of Jobs

Good day sir/ma'am, May I ask, is there an API for bulk upload of jobs? along with attachments if possible? I can't find any API for this one. If none, is it OK to use this API (https://developer.servicem8.com/reference#post-job-create) with multiple requests like around 50-100 jobs? and I am thinking during those iterating requests, our system will call the API for attachments as well? Additionally, on your Client UI, is there a bulk upload for Jobs? if the above is not possible, i am thinking to sync the data in reverse (towards to our system) instead. Hoping for your quick response. Thank you, Renz

CRM interface

I have a customer using a cloud base Unified Communications phone system which can interface with a number of CRMs using API's. Can ServiceM8 interface with a cloud base phone service to provide one click to call from ServiceM8 and one incoming calls open ServiceM8 with the customers info?

API / System integration

Hi, I am working with one of your existing customers who has asked me to contact you on their behalf. Our HR system which your customer is using would like to be able to input your systems clocking in/out etc into ours via an API or a push mechanism if you have one. I hope that you are able to assist me in some way. I look forward to hearing from you.

Help with No 'Access-Control-Allow-Origin' header is present on the requested resource

Hi, I was wondering if someone could point me in the right direction. When fetching an image via the API "https://api.servicem8.com/api_1.0/attachment/image_uuid.file" I am getting this response. Access to fetch at 'service-m8-image-url' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. When clicking the "service-m8-image-url" in the error it takes me to the image but I would like to download the image. I have a python script that has the same functionality and is working but I can't get it to work in javascript. I have tried to set "mode: no-cors" but a login window pops up instead of using the creds sent in the header. I am only facing this issue when requesting an image using the .file extension. All other endpoints work as expected. Thank you for any help in advance. Ashley