Skip to content

GetList

Returns a list for the customer whose key is sent. There is one list, AssetLocations: every open work order of the customer’s jobs, with the latest position reported for an asset on it, such as the truck that carries the container. A customer’s system uses it to show all its containers on a map at once. For one container, with the latest event the customer can see, use GetAssetLocation.

In TrakIT, assets are put on a work order in its Assets box, and the positions of a GPS asset are on the asset’s Positions tab.

How to send the key and read the response: Entity API keys, Responses.

GET /api/public/GetList?APIKey=your-entity-key&ListType=AssetLocations

Send the key in the APIKey query string parameter. It is the customer’s own key: the API Key shown on the entity’s page when Enable API Access is on for the entity (see entity fields). URL-encode it. The key is part of the address, so keep these URLs out of logs you share.

Parameter Required Meaning
APIKey Yes The customer’s entity key, for the current year.
ListType Yes The list to return: AssetLocations, the only one. Capitals don’t matter.

Both must be in the query string: without one, TrakIT answers HTTP 404.

Rule Info when it fails
APIKey is not empty. API Key is required
APIKey is a key that TrakIT issued. API Key is invalid
The key is this year’s key. Each entity’s key changes on 1 January: get the new one from the entity’s page. API Key expiry not found, API Key has expired. Please obtain new key.
The key is an entity’s key. Expecting numeric ID, Invalid Key Type
The entity exists. No such entity
Enable API Access is on for the entity. API access is disabled
ListType is AssetLocations. Invalid List Type

On success, Code is 1, RetInfo lists the open work orders of the jobs whose customer is the key’s entity, and RowsAffected is their number. Open means active or abandoned: closed and cancelled work orders are left out (see Close, cancel or re-open). The list is sorted by container number, then job reference.

A work order whose assets have reported no position is listed too, with null position fields. With no open work orders, RetInfo is an empty list and RowsAffected is 0.

{
"Code": 1,
"Info": "",
"RetInfo": [
{
"containerno": "ABCU1234560",
"bookingno": "EXL-2610-0042",
"gpsdate": "2026-10-20T09:42:00",
"gpslat": 5.6312,
"gpslong": -0.0174
},
{
"containerno": "ABCU7654321",
"bookingno": "EXL-2610-0042",
"gpsdate": null,
"gpslat": null,
"gpslong": null
}
],
"RowsAffected": 2,
"Scalar": null,
"Identity": 0
}
Field Meaning
containerno The container number of the work order.
bookingno The job reference.
gpsdate When the latest position of an asset on the work order was reported, in UTC. See Dates and times.
gpslat, gpslong That position’s latitude and longitude, in decimal degrees.