Discussions

Ask a Question
Back to All

Duplicate job response.

Hi, I have set up webhook to get the JOb data. whenever I create a job in my serviceM8 account. It will give me the job data and then I use it further to add in some other platform.
But I am facing some issue. when I create a new job I got a duplicate response. For the same job I have got two responses :
Here is an example:-

{"object":"JOB","entry":[{"uuid":"97c332a1-b904-473f-9cbf-dfb7c8cd201b","changed_fields":["active","billing_address","job_address","purchase_order_number","category_uuid","edit_date","company_uuid"],"time":"2020-02-04 01:59:03"}],"resource_url":"https://api.servicem8.com/api_1.0/JOB/97c332a1-b904-473f-9cbf-dfb7c8cd201b.json"}

{"object":"JOB","entry":[{"uuid":"97c332a1-b904-473f-9cbf-dfb7c8cd201b","changed_fields":["edit_date","payment_received","payment_received_stamp"],"time":"2020-02-04 01:59:04"}],"resource_url":"https://api.servicem8.com/api_1.0/JOB/97c332a1-b904-473f-9cbf-dfb7c8cd201b.json"}

I have got duplicate entries for the same job.
Can anyone help?I can provide you more details.
Thanks