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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
			ClosedUtc: 0001-01-01,
			Lines: 
			[
				{
					DispatchLoadID: 0,
					Kind: String,
					Label: String,
					Qty: 0,
					Rate: 0,
					Amount: 0
				}
			]
		}
	],
	Total: 0,
	Available: False,
	ServerUtc: 0001-01-01,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}