Non-Powered Assets Update API
Operations for finding the latest reported location of a non-powered asset by its asset number, for one asset or up to 50 at a time.
Get the last location for each of the requested assetNumbers
Because multiple assetNumbers can be requested, the response will indicate the success status of the Asset and if the Asset is found, its respective location.
For each distinct requested Asset, the response will have a Status of
- 200 if the assetNumber was found for the account
- 400 if the assetNumber was invalid (empty, whitespace only, or longer than 96 characters)
- 404 if the assetNumber was not found for the account
For each successfully found Asset of assetNumbers, the last location will have a Status of
- 200 if the last location was successfully found for the respective Asset
- 404 if no last location was found (within the account Data Plan) for the respective Asset
- 500 if something else went wrong while fetching the last location of the Asset
Notes:
- A location may be not found (location Status 404) if the Asset has not yet reported a location, or if it has but the last time it reported was outside the DataPlan of the account
- Duplicate assetNumbers are ignored. assetNumbers are compared case-insensitively and ignoring trailing whitespace
- assetNumbers may have a maximum of 50 entries per request, counted before duplicates are removed. If this is exceeded, a 400 response will be returned
- The order of the response items is not guaranteed to match the order of the request
- If the asset or location lookup fails for the whole request, a 500 response is returned instead of per-Asset statuses
Sample request:
POST /ast/v1/assets/locations
[
"A10001",
"A10002",
"X99999"
]
Body
Body
A list of up to 50 assetNumbers for which to retrieve the last location. Duplicate assetNumbers are ignored.
Response
Response
If the request was successful
The AssetNumber called in the request, returned within the response.
Example:A10001
The last location lookup result. null unless Status is 200.
Show Child Parameters
The status code indicating whether the AssetNumber could be found. 200 if found; 400 if the AssetNumber is invalid (empty, whitespace only, or longer than 96 characters); 404 if no Asset with that AssetNumber exists in the account.
Allowed values:200400404
Get the last location of the assetNumber
Extracts the last recorded location of a specified asset.
Notes:
- A location may be not found (204 No Content) if the Asset has not yet reported a location, or if it has but the last time it reported was outside the DataPlan of the account
Sample request:
GET /ast/v1/assets/A10001/location
Path Parameters
The AssetNumber for which to get the last location.
Example:A10001
Response
Response
If the request was successful
AssetGeoLocation
Designed for Asset last Location requests
/v1/assets/{assetnumber}/location
Geofence is a place configured within a REVEAL account to easily identify particular locations. An empty string if the GPS plot does not occur within a Geofence.
Example:VZC
Address contains the global standards for address components
Show Child Parameters
The GPS device’s current time zone compared to UTC
Example:12
If the REVEAL account is set to acknowledge Daylight Savings Time then this value will return as TRUE. REVEAL accounts in the United States are automatically defaulted to True.
Example:false
The latitude of the last location
Example:-41
The longitude of the last location
Example:162
The date and time stamp when the GPS plot was received (YEAR-MONTH-DAY T HOURS-MINUTES-SECONDS)
Example:2020-05-07T19:56:06
ContentResource[AssetGeoLocation]
objectA data transfer object wrapper used to distinguish an Asset resource from that Asset’s Location resource.
The last location of the Asset. null unless Status is 200.
Show Child Parameters
The status code of the Location. 200 indicates a last location was successfully found for the Asset; 404 indicates no last location was found (within the account Data Plan); 500 indicates something else went wrong.
Allowed values:200404500
Address
objectAddress contains the global standards for address components
Location specific identification such as a house number
Example:2 Victoria Street, Christchurch Central City, Christchurch 8013, New Zealand
Additional information to identify location such as an apartment number
‘City’ is presented to the customer as ‘Locality’
Example:Christchurch
‘State’ is presented to the customer as ‘AdministrativeArea’
Example:Canterbury
Example:8013
Example:NZL