Trendsic Platform Service

<back to all web services

DispatchIncidentsRequest

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


open class DispatchIncidentsRequest
{
    open var Days:Int? = null
}

open class DispatchIncidentsResponse
{
    open var Incidents:ArrayList<DispatchIncidentView> = ArrayList<DispatchIncidentView>()
    open var EmptyTrucks:ArrayList<DispatchIncidentTruckView> = ArrayList<DispatchIncidentTruckView>()
    open var Trucks:ArrayList<DispatchIncidentTruckView> = ArrayList<DispatchIncidentTruckView>()
    open var TransloadTruckCode:String? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class DispatchIncidentView
{
    open var IncidentId:Int? = null
    open var Code:String? = null
    open var Kind:String? = null
    open var KindDetail:String? = null
    open var LoadId:Int? = null
    open var LoadCode:String? = null
    open var LoadStatus:String? = null
    open var SourceLabel:String? = null
    open var DestinationLabel:String? = null
    open var QtyText:String? = null
    open var TruckCode:String? = null
    open var TruckLabel:String? = null
    open var LocationText:String? = null
    open var Lat:BigDecimal? = null
    open var Lng:BigDecimal? = null
    open var DriverPref:String? = null
    open var OpenedBy:String? = null
    open var OpenedVia:String? = null
    open var Resolver:String? = null
    open var Status:String? = null
    open var TruckRecovery:String? = null
    open var TruckRecoveredUtc:Date? = null
    open var LoadRecovery:String? = null
    open var LoadRecoveredUtc:Date? = null
    open var TransloadTruckCode:String? = null
    open var HoldId:Int? = null
    open var HoldCode:String? = null
    open var PhotoCount:Int? = null
    open var OpenedUtc:Date? = null
    open var ResolvedUtc:Date? = null
    open var ResolvedBy:String? = null
    open var ReopenedUtc:Date? = null
    open var Messages:ArrayList<DispatchIncidentMessageView> = ArrayList<DispatchIncidentMessageView>()
}

open class DispatchIncidentMessageView
{
    open var MessageId:Int? = null
    open var Who:String? = null
    open var Role:String? = null
    open var Msg:String? = null
    open var AtUtc:Date? = null
}

open class DispatchIncidentTruckView
{
    open var Code:String? = null
    open var DriverName:String? = null
    open var Stage:String? = null
    open var OpenLoadCode:String? = null
}

Kotlin DispatchIncidentsRequest 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/dispatch/incidents HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Incidents":[{"IncidentId":0,"Code":"String","Kind":"String","KindDetail":"String","LoadId":0,"LoadCode":"String","LoadStatus":"String","SourceLabel":"String","DestinationLabel":"String","QtyText":"String","TruckCode":"String","TruckLabel":"String","LocationText":"String","Lat":0,"Lng":0,"DriverPref":"String","OpenedBy":"String","OpenedVia":"String","Resolver":"String","Status":"String","TruckRecovery":"String","TruckRecoveredUtc":"0001-01-01T00:00:00.0000000","LoadRecovery":"String","LoadRecoveredUtc":"0001-01-01T00:00:00.0000000","TransloadTruckCode":"String","HoldId":0,"HoldCode":"String","PhotoCount":0,"OpenedUtc":"0001-01-01T00:00:00.0000000","ResolvedUtc":"0001-01-01T00:00:00.0000000","ResolvedBy":"String","ReopenedUtc":"0001-01-01T00:00:00.0000000","Messages":[{"MessageId":0,"Who":"String","Role":"String","Msg":"String","AtUtc":"0001-01-01T00:00:00.0000000"}]}],"EmptyTrucks":[{"Code":"String","DriverName":"String","Stage":"String","OpenLoadCode":"String"}],"Trucks":[{"Code":"String","DriverName":"String","Stage":"String","OpenLoadCode":"String"}],"TransloadTruckCode":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}