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
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class CourierDriverPayRequest
            Public Overridable Property Range As String
        End Class

        Public Partial Class CourierDriverPayResponse
            Public Overridable Property Rows As List(Of CourierDriverPayRow) = New List(Of CourierDriverPayRow)
            Public Overridable Property Total As Decimal
            Public Overridable Property Available As Boolean
            Public Overridable Property ServerUtc As Date
            Public Overridable Property Range As String
            Public Overridable Property IsHourly As Boolean
            Public Overridable Property TodayTotal As Decimal
            Public Overridable Property WeekTotal As Decimal
            Public Overridable Property TipsToday As Decimal
            Public Overridable Property TipsWeek As Decimal
            Public Overridable Property WeekStartUtc As Date?
            Public Overridable Property WeekStartDay As Integer
            Public Overridable Property Today As List(Of CourierEarnRow) = New List(Of CourierEarnRow)
            Public Overridable Property Earlier As List(Of CourierEarnRow) = New List(Of CourierEarnRow)
            Public Overridable Property Tips As List(Of CourierEarnRow) = New List(Of CourierEarnRow)
            Public Overridable Property Plan As CourierEarnPlan
            Public Overridable Property PickupsWeek As Integer
            Public Overridable Property StopsWeek As Integer
            Public Overridable Property HoursToday As Decimal?
            Public Overridable Property HoursWeek As Decimal?
            Public Overridable Property ClockOn As Boolean
            Public Overridable Property ClockSinceText As String
            Public Overridable Property HideAddresses As Boolean
            Public Overridable Property Detailed As Boolean
            Public Overridable Property UnitOne As String
            Public Overridable Property UnitMany As String
            Public Overridable Property UnitOneEs As String
            Public Overridable Property UnitManyEs As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class CourierDriverPayRow
            Public Overridable Property DispatchLoadID As Integer
            Public Overridable Property Code As String
            Public Overridable Property Kind As String
            Public Overridable Property OrderCode As String
            Public Overridable Property RunCode As String
            Public Overridable Property QtyText As String
            Public Overridable Property SourceLabel As String
            Public Overridable Property DestinationLabel As String
            Public Overridable Property Status As String
            Public Overridable Property Pay As Decimal?
            Public Overridable Property OpenedUtc As Date?
            Public Overridable Property ClosedUtc As Date?
            Public Overridable Property Lines As List(Of CourierPayLineView) = New List(Of CourierPayLineView)
        End Class

        Public Partial Class CourierEarnPlan
            Public Overridable Property Name As String
            Public Overridable Property WorkerClass As String
            Public Overridable Property PerPickup As Decimal
            Public Overridable Property PerStop As Decimal
            Public Overridable Property PerMissed As Decimal
            Public Overridable Property PerCancel As Decimal
            Public Overridable Property WaitAfterMin As Integer
            Public Overridable Property WaitPerMin As Decimal
            Public Overridable Property MaxPaidWaitMin As Integer?
            Public Overridable Property MileageOn As Boolean
            Public Overridable Property PerMile As Decimal
            Public Overridable Property MinPerJob As Decimal
            Public Overridable Property TipsPct As Decimal
        End Class

        Public Partial Class CourierEarnRow
            Public Overridable Property Kind As String
            Public Overridable Property LineKind As String
            Public Overridable Property AtUtc As Date?
            Public Overridable Property TimeText As String
            Public Overridable Property DayIdx As Integer?
            Public Overridable Property FromDayIdx As Integer?
            Public Overridable Property ToDayIdx As Integer?
            Public Overridable Property OnToday As Boolean
            Public Overridable Property Count As Integer
            Public Overridable Property Units As Integer?
            Public Overridable Property Seq As Integer?
            Public Overridable Property Street As String
            Public Overridable Property City As String
            Public Overridable Property Zip As String
            Public Overridable Property Amount As Decimal?
            Public Overridable Property Hours As Decimal?
            Public Overridable Property Code As String
            Public Overridable Property RunCode As String
            Public Overridable Property Qty As Decimal?
            Public Overridable Property Rate As Decimal?
            Public Overridable Property Label As String
        End Class

        Public Partial Class CourierPayLineView
            Public Overridable Property DispatchLoadID As Integer
            Public Overridable Property Kind As String
            Public Overridable Property Label As String
            Public Overridable Property Qty As Decimal?
            Public Overridable Property Rate As Decimal?
            Public Overridable Property Amount As Decimal
        End Class
    End Namespace
End Namespace

VB.NET CourierDriverPayRequest 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/worker/dispatch/od/pay HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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","Range":"String","IsHourly":false,"TodayTotal":0,"WeekTotal":0,"TipsToday":0,"TipsWeek":0,"WeekStartUtc":"0001-01-01T00:00:00.0000000","WeekStartDay":0,"Today":[{"Kind":"String","LineKind":"String","AtUtc":"0001-01-01T00:00:00.0000000","TimeText":"String","DayIdx":0,"FromDayIdx":0,"ToDayIdx":0,"OnToday":false,"Count":0,"Units":0,"Seq":0,"Street":"String","City":"String","Zip":"String","Amount":0,"Hours":0,"Code":"String","RunCode":"String","Qty":0,"Rate":0,"Label":"String"}],"Earlier":[{"Kind":"String","LineKind":"String","AtUtc":"0001-01-01T00:00:00.0000000","TimeText":"String","DayIdx":0,"FromDayIdx":0,"ToDayIdx":0,"OnToday":false,"Count":0,"Units":0,"Seq":0,"Street":"String","City":"String","Zip":"String","Amount":0,"Hours":0,"Code":"String","RunCode":"String","Qty":0,"Rate":0,"Label":"String"}],"Tips":[{"Kind":"String","LineKind":"String","AtUtc":"0001-01-01T00:00:00.0000000","TimeText":"String","DayIdx":0,"FromDayIdx":0,"ToDayIdx":0,"OnToday":false,"Count":0,"Units":0,"Seq":0,"Street":"String","City":"String","Zip":"String","Amount":0,"Hours":0,"Code":"String","RunCode":"String","Qty":0,"Rate":0,"Label":"String"}],"Plan":{"Name":"String","WorkerClass":"String","PerPickup":0,"PerStop":0,"PerMissed":0,"PerCancel":0,"WaitAfterMin":0,"WaitPerMin":0,"MaxPaidWaitMin":0,"MileageOn":false,"PerMile":0,"MinPerJob":0,"TipsPct":0},"PickupsWeek":0,"StopsWeek":0,"HoursToday":0,"HoursWeek":0,"ClockOn":false,"ClockSinceText":"String","HideAddresses":false,"Detailed":false,"UnitOne":"String","UnitMany":"String","UnitOneEs":"String","UnitManyEs":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}