Trendsic Platform Service

<back to all web services

DispatchLoadsRequest

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


open class DispatchLoadsRequest
{
    open var Hours:Int? = null
    open var Module:String? = null
}

open class DispatchLoadsResponse
{
    open var Loads:ArrayList<DispatchLoadView> = ArrayList<DispatchLoadView>()
    open var Hours:Int? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class DispatchLoadView
{
    open var LoadId:Int? = null
    open var Code:String? = null
    open var Module:String? = null
    open var TruckLabel:String? = null
    open var DriverLabel:String? = null
    open var CarrierLabel:String? = null
    open var SourceLabel:String? = null
    open var DestinationLabel:String? = null
    open var Qty:BigDecimal? = null
    open var Unit:String? = null
    open var QtyText:String? = null
    open var TicketCode:String? = null
    open var RateApplied:BigDecimal? = null
    open var RateBasis:String? = null
    open var Revenue:BigDecimal? = null
    open var PayPlanLabel:String? = null
    open var Pay:BigDecimal? = null
    open var Status:String? = null
    open var OpenedUtc:Date? = null
    open var ClosedUtc:Date? = null
    open var Photos:Int? = null
    open var Stages:ArrayList<DispatchLoadStageView> = ArrayList<DispatchLoadStageView>()
}

open class DispatchLoadStageView
{
    open var Stage:String? = null
    open var AtUtc:Date? = null
    open var Note:String? = null
}

Kotlin DispatchLoadsRequest DTOs

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

HTTP + OTHER

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

GET /v1/dispatch/loads HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Loads":[{"LoadId":0,"Code":"String","Module":"String","TruckLabel":"String","DriverLabel":"String","CarrierLabel":"String","SourceLabel":"String","DestinationLabel":"String","Qty":0,"Unit":"String","QtyText":"String","TicketCode":"String","RateApplied":0,"RateBasis":"String","Revenue":0,"PayPlanLabel":"String","Pay":0,"Status":"String","OpenedUtc":"0001-01-01T00:00:00.0000000","ClosedUtc":"0001-01-01T00:00:00.0000000","Photos":0,"Stages":[{"Stage":"String","AtUtc":"0001-01-01T00:00:00.0000000","Note":"String"}]}],"Hours":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}