Discussions
ServiceM8Trigger when a new quote is generated, sending job data to Google Sheets
We have developed a custom integration between ServiceM8 and Google Sheets. A webhook is set to trigger when a new quote is generated, sending job data to Google Sheets. However, the webhook is causing issues, and the integration stopped due to an "Invalid Token" error.
We initially set up the integration on July 30, and it worked perfectly from July 30 to August 8. The issue began occurring after August 8.
Note: We are passing the refresh token when calling the API to refresh the access token, and it works fine most of the time. However, occasionally, we encounter the following error. We developed the integration using PHP. If needed, we are willing to share our script with you.
Note: The script functions without any time limitations if we do not use the webhook.
The API returns the following error:
json
{ "error": "invalid_request", "error_description": "Missing parameter: "refresh_token" is required", "current_date": "2024-08-13 08:42:48" }