Discussions

Ask a Question

revenue mismatch from service8 UI and API fields

Hello, I trust this message finds you well. I've encountered a discrepancy in the revenue calculation while using a Python script to call the <https://api.servicem8.com/api_1.0/job.json> endpoint. The specific field I'm utilizing for this calculation is named 'total_invoice_amount.' However, upon comparing the numbers generated by my script with the ServiceM8 UI, I've noticed variations in the monthly revenue figures. I'd appreciate your guidance in identifying any potential oversights or discrepancies in my approach. For your reference, I have attached a screenshot from the ServiceM8 UI, showcasing the place from where I am taking revenue numbers per month that I am comparing. Your assistance in resolving this matter is highly valued. Please let me know if you require any additional information or if there's a specific aspect I should reevaluate. Thank you for your time and support. ![](https://files.readme.io/76b0b63-image.png)

How can I get data inside My Clients(Partner Support) using API.

I can get data from the developer account using App ID and App Secret Key but in My clients option there is no such option to find App ID or App secret key. If any solution is there please let me know.

Is anyone else experiencing problems connecting to theb API 'GET on 'job' returned status 401. {"error":"invalid_token","error_description":"The access token provided has expired"}.'

The problem began to occur about 5:15pm Sydney time and is spreading to more and more of my sm8 customers GET on 'job' returned status 401. {"error":"invalid_token","error_description":"The access token provided has expired"}. It happens both reading and writing via the API

How to add custom field in Servicem8?

How to add a custom field in Servicem8?

I am not able to authenticate via OAuth authentication to ServiceM8 api. Getting invalid client credentials

Hi ServiceM8 api team. I am a freelancer. My client want to build his own app to jobs and some other stuff. Now to get the jobs, staff and customers data into that app we need to use servicem8 api. Because of 2fa we have to use OAuth authentication. Our app will access the api on a PHP(Laravel) backend server. So we are not able to use authenticate via Oauth. please help. I have created add-on and followed all the step described in api reference. Please help as soon as possible.
ANSWERED

ssue with Creating Clients via API - "Invalid value for badges, must be a JSON array"; error Message

I've been encountering an issue when attempting to create a client via the API. Specifically, I am consistently receiving an error related to the "badges" field, stating "Invalid value for badges, must be a JSON array," regardless of the format I use in the field. Here is an example of the JSON body I am sending: { "id": "<UUID>", "name": "<name>", "badges": [ "badges_UUID"; ], "address": {} } It's important to note that the error consistently occurs, even when I try different formats for the "badges" field, whether it is a string or an array. Surprisingly, the API call is successful when the "badges" field is left empty. If there are any specific requirements or changes needed in the API call, please provide guidance. Additionally, if there are any known issues or updates related to this matter, I would be grateful for that information.

Badge disappearing after adding service

I have just secured a contact with homecare. I was to add a badge to signify its a homecare client. so have used the 2 persdon job badge and renamed it. Its there when job is created but leaves when service is added. how can I make it permanent for that client.

Issues with the custom template

I have created custom invoice/receipts/quote templates and it's such a hit and miss. I follow the instructions and use the available fields as per the list provided and yet the template doesn't come out the way it needs to be. For example: I input «job.contact_first» «job.contact_last» and I get the whole thing including the job site address and main billing contact details. I have downloaded multiple different documents to copy and paste from, I have created it from scratch and it's just so temperamental. I can download the template and upload the exact same one untouched and it will add fields that I did not request for. Can you please guide to someone who can explain this or is it a software glitch? Thanks, Lyn

Any way to get the Quote link?

When you send a quote to a client, there's a link to accept the quote on the e-mail, is there any way to get the link without manually pulling it from the e-mail? The closest thing to that that I can find is in the attachments request, however the link itself is not present. <https://api.servicem8.com/api_1.0/attachment.json>

Webhook subscription Assistance

I can't log in here using my developer access <https://api.servicem8.com/webhook_subscriptions> I need to set up a webhook