Browse developer docs

List legacy R150 runs

GETcar-sorties-list

Request

Send GET to /open/service with serviceName=car-sorties-list and the common signing parameters.

Send extra fields in the URL query

Set search to the serial number. Use milliseconds and a window of up to 60 days. The optional pagination fields are pageIndex and pageCount.

Request example
# Requires curl 7.87+, Python 3 and OpenSSL.
: "${XAG_APP_UID:?Set XAG_APP_UID}"
: "${XAG_APP_SECRET:?Set XAG_APP_SECRET}"
timestamp=$(python3 -c 'import time; print(time.time_ns() // 1000000)')
token=$(printf "%s" "$XAG_APP_UID$timestamp$XAG_APP_SECRET" | openssl dgst -sha1 -r | cut -d " " -f 1)

curl --silent --show-error --fail-with-body --max-time 30 --request GET \
  'https://open.xa.com/open/service' \
  --url-query 'serviceName=car-sorties-list' \
  --url-query 'search=YOUR_R150_SN' \
  --url-query 'startTime=1788134400000' \
  --url-query 'endTime=1788739200000' \
  --url-query 'pageIndex=1' \
  --url-query 'pageCount=20' \
  --url-query "appUid=$XAG_APP_UID" \
  --url-query "timestamp=$timestamp" \
  --url-query "token=$token"
ParameterRequirementMeaning
searchRequiredUse the authorized rover serial number.
pageIndexOptionalPage number, starting at 1.
pageCountOptionalNumber of records per page.
startTimeRequiredStart of the query window. Use seconds for farm facilities and milliseconds for legacy rover runs or aerial surveys.
endTimeRequiredEnd of the query window. Use seconds for farm facilities and milliseconds for legacy rover runs or aerial surveys.

Response

data contains runs and pageArg describes pagination. Keep device_id, start and stop for the legacy track query.

Show example response fields and types
{
  "status": "number",
  "pageArg": {
    "pageIndex": "number",
    "pageCount": "number",
    "totalPage": "number",
    "totalCount": "number"
  },
  "data": [
    {
      "owner_name": "string",
      "device_id": "string",
      "user_name": "string",
      "start": "number",
      "activate_time": "number",
      "owner_phone": "string",
      "stop": "number",
      "definition_name": "string",
      "name": "string",
      "user_phone": "string",
      "model": "string",
      "sn": "string",
      "id": "string"
    }
  ]
}

All Rovers operations

Location
Richmond Hill, Ontario, Canada