HyperTrackDocs
WebhooksOrdersLifecycle

Orders Geofence Checked

Webhook payload sent when the device checks if the worker is inside the order destination geofence.

Orders Geofence Checked Payload

[
   {
      "created_at":"2021-01-01T14:01:00.000000Z",
      "recorded_at":"2021-01-01T14:00:00.000000Z",
      "device_id":"00112233-4455-6677-8899-AABBCCDDEEFF",
      "worker_handle":"Worker-1",
      "account_id":"6784e919-7168-4f61-b686-2020f547637f",
      "type":"order",
      "data":{
         "is_inside":true,
         "metadata":{
            "storeId":"123490809808",
            "customerName":"Andrew"
         },
         "order_handle":"DGC127092",
         "route_handle":"4359cc65-90dd-4b2b-875b-26e6d2eba11d",
         "share_url":"https://trck.at/DqaybldkqY",
         "status":"ongoing",
         "value":"on_device_geofence_checked",
         "location_accuracy":20
      },
      "version":"3.0.0",
      "location":{
         "coordinates":[
            77.643271,
            12.94964
         ],
         "type":"Point"
      }
   }
]
NameTypeMandatoryDescription
data.valuestringYeson_device_geofence_checked
data.order_handlestringYesUnique handle for the Order
data.is_insidebooleanYesIndication if the checkin was done inside or outside the order destination geofence; null if worker was in outage during check
data.outagesarrayNoif worker was in an outage during the check, this is set with details about the outage
data.outages[].outage_categoryenumYesadversarial, behavioural, sporadic, os, reachability
data.outages[].outage_labelstringYes
data.outages[].outage_codestringYes
data.outages[].outage_descriptionstringYes
data.location_accuracyintegerNoAccuracy of the location used to check whether it is inside order destination geofence or not
data.route_handlestringNoUnique identifier of the route containing the order
data.statusstringYesStatus of the order - ongoing| assigned
data.share_urlstringNoContains tracking url of the order to provide real time visibility of worker on route of this order
data.metadataobjectNoMetadata that you have assigned to this order