| GET,OPTIONS | /v1/dispatch/courier/runs |
|---|
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 CourierItemView
Public Overridable Property CourierItemID As Integer
Public Overridable Property DispatchOdRequestID As Integer
Public Overridable Property Seq As Integer
Public Overridable Property TagCode As String
Public Overridable Property Custody As String
Public Overridable Property IsOpen As Boolean
Public Overridable Property IsMissing As Boolean
Public Overridable Property MissingReason As String
Public Overridable Property IsManual As Boolean
Public Overridable Property ReTagFlag As Boolean
Public Overridable Property Scanned As Boolean
End Class
Public Partial Class CourierRunResponse
Public Overridable Property Runs As List(Of CourierRunView) = New List(Of CourierRunView)
Public Overridable Property Run As CourierRunView
Public Overridable Property Message As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class CourierRunsRequest
Public Overridable Property Status As String
End Class
Public Partial Class CourierRunView
Public Overridable Property CourierRunID As Integer
Public Overridable Property Code As String
Public Overridable Property Status As String
Public Overridable Property CourierProfileId As Integer
Public Overridable Property ProfileName As String
Public Overridable Property CourierFacilityId As Integer
Public Overridable Property FacilityName As String
Public Overridable Property FacilityAddress As String
Public Overridable Property DriverContactId As Integer?
Public Overridable Property DriverName As String
Public Overridable Property EquipmentID As Integer?
Public Overridable Property VehicleUnit As String
Public Overridable Property UnitOne As String
Public Overridable Property UnitMany As String
Public Overridable Property Units As Integer
Public Overridable Property StopCount As Integer
Public Overridable Property StopsDone As Integer
Public Overridable Property Pay As Decimal?
Public Overridable Property BuiltUtc As Date?
Public Overridable Property StartedUtc As Date?
Public Overridable Property CompletedUtc As Date?
Public Overridable Property ToLoad As Integer
Public Overridable Property ToReturn As Integer
Public Overridable Property Stops As List(Of CourierStopView) = New List(Of CourierStopView)
End Class
Public Partial Class CourierStopView
Public Overridable Property Sequence As Integer
Public Overridable Property Status As String
Public Overridable Property DispatchOdRequestID As Integer
Public Overridable Property Code As String
Public Overridable Property CourierStep As String
Public Overridable Property Address As String
Public Overridable Property Unit As String
Public Overridable Property City As String
Public Overridable Property Zip As String
Public Overridable Property Lat As Decimal?
Public Overridable Property Lng As Decimal?
Public Overridable Property CustomerName As String
Public Overridable Property CustomerPhone As String
Public Overridable Property Handoff As String
Public Overridable Property GateCode As String
Public Overridable Property Instructions As String
Public Overridable Property Units As Integer
Public Overridable Property DueText As String
Public Overridable Property Note As String
Public Overridable Property Needs As List(Of String) = New List(Of String)
Public Overridable Property Items As List(Of CourierItemView) = New List(Of CourierItemView)
End Class
End Namespace
End Namespace
VB.NET CourierRunsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/dispatch/courier/runs HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Runs":[{"CourierRunID":0,"Code":"String","Status":"String","CourierProfileId":0,"ProfileName":"String","CourierFacilityId":0,"FacilityName":"String","FacilityAddress":"String","DriverContactId":0,"DriverName":"String","EquipmentID":0,"VehicleUnit":"String","UnitOne":"String","UnitMany":"String","Units":0,"StopCount":0,"StopsDone":0,"Pay":0,"BuiltUtc":"0001-01-01T00:00:00.0000000","StartedUtc":"0001-01-01T00:00:00.0000000","CompletedUtc":"0001-01-01T00:00:00.0000000","ToLoad":0,"ToReturn":0,"Stops":[{"Sequence":0,"Status":"String","DispatchOdRequestID":0,"Code":"String","CourierStep":"String","Address":"String","Unit":"String","City":"String","Zip":"String","Lat":0,"Lng":0,"CustomerName":"String","CustomerPhone":"String","Handoff":"String","GateCode":"String","Instructions":"String","Units":0,"DueText":"String","Note":"String","Needs":["String"],"Items":[{"CourierItemID":0,"DispatchOdRequestID":0,"Seq":0,"TagCode":"String","Custody":"String","IsOpen":false,"IsMissing":false,"MissingReason":"String","IsManual":false,"ReTagFlag":false,"Scanned":false}]}]}],"Run":{"CourierRunID":0,"Code":"String","Status":"String","CourierProfileId":0,"ProfileName":"String","CourierFacilityId":0,"FacilityName":"String","FacilityAddress":"String","DriverContactId":0,"DriverName":"String","EquipmentID":0,"VehicleUnit":"String","UnitOne":"String","UnitMany":"String","Units":0,"StopCount":0,"StopsDone":0,"Pay":0,"BuiltUtc":"0001-01-01T00:00:00.0000000","StartedUtc":"0001-01-01T00:00:00.0000000","CompletedUtc":"0001-01-01T00:00:00.0000000","ToLoad":0,"ToReturn":0,"Stops":[{"Sequence":0,"Status":"String","DispatchOdRequestID":0,"Code":"String","CourierStep":"String","Address":"String","Unit":"String","City":"String","Zip":"String","Lat":0,"Lng":0,"CustomerName":"String","CustomerPhone":"String","Handoff":"String","GateCode":"String","Instructions":"String","Units":0,"DueText":"String","Note":"String","Needs":["String"],"Items":[{"CourierItemID":0,"DispatchOdRequestID":0,"Seq":0,"TagCode":"String","Custody":"String","IsOpen":false,"IsMissing":false,"MissingReason":"String","IsManual":false,"ReTagFlag":false,"Scanned":false}]}]},"Message":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}