Trendsic Platform Service

<back to all web services

CourierDriverPayRequest

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


open class CourierDriverPayRequest
{
}

open class CourierDriverPayResponse
{
    open var Rows:ArrayList<CourierDriverPayRow> = ArrayList<CourierDriverPayRow>()
    open var Total:BigDecimal? = null
    open var Available:Boolean? = null
    open var ServerUtc:Date? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class CourierDriverPayRow
{
    open var DispatchLoadID:Int? = null
    open var Code:String? = null
    open var Kind:String? = null
    open var OrderCode:String? = null
    open var RunCode:String? = null
    open var QtyText:String? = null
    open var SourceLabel:String? = null
    open var DestinationLabel:String? = null
    open var Status:String? = null
    open var Pay:BigDecimal? = null
    open var OpenedUtc:Date? = null
    open var ClosedUtc:Date? = null
    open var Lines:ArrayList<CourierPayLineView> = ArrayList<CourierPayLineView>()
}

open class CourierPayLineView
{
    open var DispatchLoadID:Int? = null
    open var Kind:String? = null
    open var Label:String? = null
    open var Qty:BigDecimal? = null
    open var Rate:BigDecimal? = null
    open var Amount:BigDecimal? = null
}

Kotlin CourierDriverPayRequest 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/worker/dispatch/od/pay HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Rows":[{"DispatchLoadID":0,"Code":"String","Kind":"String","OrderCode":"String","RunCode":"String","QtyText":"String","SourceLabel":"String","DestinationLabel":"String","Status":"String","Pay":0,"OpenedUtc":"0001-01-01T00:00:00.0000000","ClosedUtc":"0001-01-01T00:00:00.0000000","Lines":[{"DispatchLoadID":0,"Kind":"String","Label":"String","Qty":0,"Rate":0,"Amount":0}]}],"Total":0,"Available":false,"ServerUtc":"0001-01-01T00:00:00.0000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}