Browse developer docs
List R-series missions
POSTcar-mission-list
Request
Send POST to /open/service with serviceName=car-mission-list and the common signing parameters.
Send extra fields in the JSON body
Date filters are in seconds. Maximum page size is 100.
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 POST \
'https://open.xa.com/open/service' \
--url-query 'serviceName=car-mission-list' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token" \
--header 'Content-Type: application/json' \
--data '{
"sn": "YOUR_ROVER_SN",
"start_day": 1788134400,
"end_day": 1788739200,
"page_no": 1,
"page_size": 20
}'| Parameter | Requirement | Meaning |
|---|---|---|
start_day | Required | Start of the work date range in Unix seconds. |
end_day | Required | End of the work date range in Unix seconds. |
sn | Required | Authorized equipment serial number. |
mission_guid | Optional | Rover mission identifier. |
page_size | Required | Number of records per page. |
page_no | Required | Page number, starting at 1. |
Response
data.records contains mission_guid and the work_type. The documented work types include travel (0), spraying (1) and mowing (4).
Show example response fields and types
{
"success": "boolean",
"data": {
"total": "number",
"size": "number",
"current": "number",
"records": [
{
"mission_guid": "string",
"user_guid": "string",
"sn": "string",
"start_time": "number",
"end_time": "number",
"work_type": "number"
}
]
},
"message": "string",
"status": "number"
}