HyperTrackDocs
WebhooksOrdersLifecycle

Orders Geofence Checked

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

HyperTrack sends this webhook when the app reads the on-device geofence status of an order (isInsideGeofence in the SDK), for example when the worker taps clock-in. The SDK makes the check on the phone and sends the result to HyperTrack. data.value is on_device_geofence_checked.

Orders Geofence Checked Payload

[
   {
      "created_at":"2026-11-10T13:58:41.512Z",
      "recorded_at":"2026-11-10T13:58:41.512Z",
      "device_id":"00112233-4455-6677-8899-AABBCCDDEEFF",
      "driver_handle":"Worker-1",
      "worker_handle":"Worker-1",
      "account_id":"6784e919-7168-4f61-b686-2020f547637f",
      "type":"order",
      "data":{
         "value":"on_device_geofence_checked",
         "order_handle":"DGC127092",
         "route_handle":"4359cc65-90dd-4b2b-875b-26e6d2eba11d",
         "status":"ongoing",
         "share_url":"https://trck.at/DqaybldkqY",
         "scheduled_at":"2026-11-10T14:00:00.000Z",
         "started_at":"2026-11-10T13:15:02.418Z",
         "is_inside":true,
         "location_accuracy":20,
         "metadata":{
            "storeId":"123490809808",
            "customerName":"Andrew"
         }
      },
      "version":"3.0.0",
      "location":{
         "type":"Point",
         "coordinates":[
            77.643271,
            12.94964
         ]
      }
   }
]

If the phone has an outage when the worker makes the check, data.outages shows the outage, and data.is_inside can be null:

Check made during an outage
"data":{
   "value":"on_device_geofence_checked",
   "order_handle":"DGC127092",
   "route_handle":"4359cc65-90dd-4b2b-875b-26e6d2eba11d",
   "status":"ongoing",
   "share_url":"https://trck.at/DqaybldkqY",
   "is_inside":null,
   "outages":[
      {
         "code":"location_services_disabled",
         "label":"Location services disabled",
         "category":"behavioural",
         "description":"The worker disabled location services globally in the phone. The worker should turn on location services in Settings > Location > Use location."
      }
   ]
}
NameTypeMandatoryDescription
device_idstringNoDevice ID (uppercase) of the phone that made the check. If the worker is signed in on two phones, this can be different from the device of the order. See the note below.
worker_handlestringNoHandle of the worker of the order
driver_handlestringNoSame value as worker_handle
created_atstringYesTime when HyperTrack sent the webhook
recorded_atstringYesTime when HyperTrack processed the check. It is not the time on the phone. If the phone sent the check late (for example, after it was offline), this time is later than the check
locationobjectNoGeoJSON Point of the phone at the check, as [longitude, latitude]. Not sent if the phone did not have a location
data.valuestringYeson_device_geofence_checked
data.order_handlestringYesUnique handle for the Order
data.is_insidebooleanYestrue if the phone was inside the order destination geofence, false if outside. Can be null when data.outages is present
data.location_accuracyintegerNoAccuracy in meters of the location that the phone used for the check
data.outagesarrayNoOutages of the phone at the time of the check. See List of outages
data.outages[].codestringYesOutage code, for example location_services_disabled
data.outages[].labelstringYesShort name of the outage
data.outages[].categorystringYesadversarial, behavioural, sporadic, os, reachability, or not_an_outage
data.outages[].descriptionstringYesWhat caused the outage and how the worker can fix it
data.route_handlestringYesUnique identifier of the route containing the order
data.statusstringYesStatus of the order when HyperTrack sent the webhook, for example ongoing or assigned
data.share_urlstringYesTracking URL of the order. Can be an empty string
data.scheduled_atstringNoScheduled arrival time for the order
data.started_atstringNoTime when the order started
data.fulfillment_attemptintegerNoFulfillment attempt number of the order
data.metadataobjectNoMetadata that you have assigned to this order

HyperTrack does not send this webhook when:

  • Tracking was paused or stopped on the phone at the time of the check.
  • data.is_inside is null and there is no outage.
  • The order was completed or cancelled more than 10 minutes before HyperTrack processed the check.

device_id is the phone that made the check. A worker can be signed in on two phones. The order tracks one of them (the device of the order). If the worker makes the check on the other phone, device_id and location come from the phone that made the check, not from the device of the order. To find the device of the order, use Get order or the Order Device Switched webhook.

Change on 2026-11-07 (UTC): before 2026-11-07 04:42 UTC, device_id in this webhook was always the device of the order, even when the check came from a different phone. location was always from the phone that made the check.