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
        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 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 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 .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"}}}