Discussions

Ask a Question

Is there a timing problem with registering a webhook on addon registration?

I seem to have a problem where if I register a webhook during the initial Addon Install/Registration, that whil the webhook subscribe request comes back as success=true, but the callback_url is stored wrong within ServiceM8 as a constant. (ADDON_CALLBACK_URL) You can see that by doing a get to the webhook_subscriptions URL... This is the JSON response to a get request to <https://api.servicem8.com/webhook_subscriptions> after successfully registering the webhook during the addon install... (i.e. I'm doing this in my callback code after authorisation) \[ { "object": "job", "callback_url": "ADDON_CALLBACK_URL", "fields": [ "status" ], "unique_id": "", "active": true } ] If I wait a minute and then try, the registration also returns success as well, but does store the correct callback_url. Has this been a problem for anyone else? I need to do this on registration as it's the only time I have the vendor ID. (Calls to the vendor.json REST work fine, so data is already populated.) I'd hate to have to put in some kind of delay/variable that's variable in duration depending on circumstances.
ANSWERED

Open ServiceM8 Job window via link

Hello, I am have developed a custom add on for my client for their franchisees. When they accept the job to be theirs, it creates a job with the customer information within their ServiceM8 account, I would then like to offer them a link to open the job, by clicking a simple button (same solution that is in Xero, when ServiceM8 sends an invoice to Xero, there is a button in Xero that allows me to open the ServiceM8 job) I assume I just need to use the OAUTH token from the API connection, the job UUID and know and understand the URL structure to achieve this.

Job auto recurring pushed forward

when a job is completed for a recurring 2 weekly cycle, say, one day late, the app pushes the next job to 2 weeks from the completion date instead of keeping the original cycle. For our mowing business, the original two week cycle needs to be kept, otherwise it throws the roster out of whack

Is there an API for GoodNotes

A customer has asked this question

QR Code data field

I need to find the matching data field between the ServiceM8 QR code and the Wink connector fields for a custom report. Thx [Jo.packham@bsds.com.au](mailto:Jo.packham@bsds.com.au)
ANSWERED

Use API to add Maintenance form PDF smart attachments to email

My client wants to be able to create a job in Service M8 with maintenance forms that are provided as smart attachments to the email as PDFs. We cannot see a way to do this using the API, am I missing something - is there some way of doing it? Otherwise, could you possibly design an API endpoint for us to allow us to do this?

Gmail spam

Hi, My replies to customers are going straight to their Gmail spam. Why?

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