Trendsic Platform Service

<back to all web services

FleetLiveRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/fleet/live
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class FleetLiveRequest
{
    open var Date:String? = null
    open var Status:String? = null
    open var CrewID:Int? = null
    open var Zip:String? = null
    open var BranchId:UUID? = null
    open var Search:String? = null
    open var Page:Int? = null
    open var PageSize:Int? = null
}

open class FleetLiveResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Rows:ArrayList<FleetRowDto> = ArrayList<FleetRowDto>()
    open var ActiveWorkers:Int? = null
    open var EnRoute:Int? = null
    open var OnSite:Int? = null
    open var Waiting:Int? = null
    open var Done:Int? = null
    open var RunningLate:Int? = null
    open var PageTotal:Int? = null
    open var Page:Int? = null
    open var PageSize:Int? = null
}

open class FleetRowDto
{
    open var ContactID:Int? = null
    open var WorkerName:String? = null
    open var CrewID:Int? = null
    open var CrewName:String? = null
    open var BranchId:UUID? = null
    open var LiveStatus:String? = null
    open var WorkerScheduleItemID:Int? = null
    open var JobID:Int? = null
    open var CurProperty:String? = null
    open var CurAddress:String? = null
    open var CurZip:String? = null
    open var EnRouteAt:String? = null
    open var StartedAt:String? = null
    open var LastLat:BigDecimal? = null
    open var LastLng:BigDecimal? = null
    open var LastLocAt:String? = null
    open var NextProperty:String? = null
    open var DoneVisits:Int? = null
    open var TotalVisits:Int? = null
}

Kotlin FleetLiveRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/fleet/live HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Rows":[{"ContactID":0,"WorkerName":"String","CrewID":0,"CrewName":"String","BranchId":"00000000000000000000000000000000","LiveStatus":"String","WorkerScheduleItemID":0,"JobID":0,"CurProperty":"String","CurAddress":"String","CurZip":"String","EnRouteAt":"String","StartedAt":"String","LastLat":0,"LastLng":0,"LastLocAt":"String","NextProperty":"String","DoneVisits":0,"TotalVisits":0}],"ActiveWorkers":0,"EnRoute":0,"OnSite":0,"Waiting":0,"Done":0,"RunningLate":0,"PageTotal":0,"Page":0,"PageSize":0}