JOB in our system error

Hi

We are getting calls from estuart via ** Webhook V2 URL ** from * Job updated event *

Our system returns controlled error, it does not find a data that you send us because it has been deleted.

How can we stop you from calling so continuously?

The example case is as follows.
There is a JOB created in the “busy” state that in our system there is no longer any related data,
but stuart keeps sending us information about the state (always in “busy”) but if it does not exist,
we want to stop receiving information about this work, How can we do this?

We receive this JOB, and we do not have it anywhere

Received: {
“event”:“driver”,
“type”:“update”,
“data”:{
“status”:“busy”,
“latitude”:40.4216,
“longitude”:-3.67628,
“name”:“Dagmar Rohan”,
“firstname”:“Carter”,
“lastname”:“Lindgren”,
“phone”:“+33232466472”,
“picture_path_imgix”:null,
“transportType”:{
“code”:“motorbike”
},
“job”:{
“id”:110747,
“currentDelivery”:{
“id”:111034,
“driver”:{
“status”:“busy”,
“latitude”:40.4216,
“longitude”:-3.67628,
“name”:“Dagmar Rohan”,
“firstname”:“Carter”,
“lastname”:“Lindgren”,
“phone”:“+33232466472”,
“picture_path_imgix”:null,
“transportType”:{
“code”:“motorbike”
}
},
“transportType”:{
“code”:“motorbike”
},
“packageType”:null,
“etaToDestination”:“2018-09-17T13:04:52.000+02:00”,
“trackingUrl”:“https://stuart.sandbox.followmy.delivery/111034/f66e4914e206ec18c959c6dbac3d72a3”,
“etaToOrigin”:“2018-09-17T12:46:52.000+02:00”,
“status”:“picking”,
“clientReference”:null
},
“transportType”:{
“code”:“motorbike”
},
“packageType”:null,
“status”:“in_progress”,
“comment”:null,
“pickupAt”:“2018-09-17T09:56:33.000+02:00”,
“dropoffAt”:null,
“createdAt”:“2018-09-17T09:27:02.000+02:00”,
“endedAt”:null,
“originComment”:null,
“destinationComment”:null,
“jobReference”:null
}
}
}

Hi @carlosMshop,

I confirm you that this job was “stuck” in the simulator. That’s why you are receiving this much webhooks.
So I just finished it manually for you.

However in production you will receive all the webhooks related to your Job during his whole lifecycle.
As of today you simply cannot stop receiving some information as we send all the webhooks events to your url (there is no subscription system).

OK thanks

Do you expect an answer from us?

No we don’t expect any answer from you.

OK and… is posible that stuart only call us when job stuart had changed status?

that is, every time Stuart changes his state, he calls us informing about it.

No it is not possible yet. It is all webhooks or none. But on your side you can filter the events you want. If you are only interested in the delivery updated event you can for example consider the webhook if:

  "event": "delivery",
  "type": "update",

and just ignore the one you don’t want.

Sorry again …

The “Webhooks (V1)” “Job status changed” to be used?

Is It to indicate the change of state of “job”?

and too this service is called continuously/always?

No problem,
The Webhooks V1 are also continuous and they are the first version of our webhook system so we do not recommend you to use them anymore.

OK , only Webhooks V2

thanks you very much

1 Like