Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

send_checkin – Sending Check In Data

The check in data sent will always include the latitude, longitude, and timestamp. The accuracy, high accuracy and misc_data may not always be available based on the type of check in for the work order. The standard PPW check in will not have data in msic_data. Work orders set to AGS or ServiceLink check in, will contain additional data in JSON format.

The details of the JSON object are described below.

Field NameDescription
dst_report_idThe report_id file is being uploaded to.
checkin_dataList of check in data points

Check In Data

Field NameDescription
bg_check_id The ID of the check in on your system.
checkin_ts Date/time of the check in.
gps_lat Latitude of check in.
gps_lng Longitude of check in.
gps_accuracy Accuracy of the check in. In meters.
gps_high_accuracyWas GPS high accuracy on. Will not be set for iOS devices. Varies by device on Android.
misc_data For AGS check in, contains the data sent to AGS. Test completing orders with AGS check ins to check format.

Request payload JSON - send_checkin

{
  "username": "demo",
  "password": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
  "site_id": "dcc363d0-8ed1-48a2-ba2e-f638275db4f",
  "event_name": "send_checkin",
  "event_data": " {\"dst_report_id\":\"12249481\",\"checkin_data\":{\"bg_check_id\":null,\"ch eckin_ts\":\"2019-02-01 06:42:17\",\"gps_lat\":\"38.2078462\",\"gps_lng\":\"-65.1647053\",\"gps_accuracy\":\"23\",\"gps_high_accuracy\":\"\",\"misc_data \":\"\"}}"
}
curl -X POST \
  --data 'payload={
    "username": "demo",
    "password": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "site_id": "dcc363d0-8ed1-48a2-ba2e-f638275db4f",
    "event_name": "send_checkin",
    "event_data": "{\"dst_report_id\":\"12249481\",\"checkin_data\":{\"bg_check_id\":null,\"checkin_ts\":\"2019-02-01 06:42:17\",\"gps_lat\":\"38.2078462\",\"gps_lng\":\"-65.1647053\",\"gps_accuracy\":\"23\",\"gps_high_accuracy\":\"\",\"misc_data\":\"\"}}"
  }' \
  https://www.propertypreswizard.com/api/link/receiver.php

Reponse JSON

{
  "remote_site_id": "1fc25d06-72bd-42f8-ad34-ecbdc5f1a4a4",
  "success": true,
  "return_error_msg": null,
  "result_data": null,
  "remote_org_id": 283,
  "error": false
}