Trendsic Platform Service

<back to all web services

DispatchRequestsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/dispatch/requests
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 DispatchCarrierPickView
            Public Overridable Property VendorID As Integer
            Public Overridable Property VendorName As String
        End Class

        Public Partial Class DispatchRequestEventView
            Public Overridable Property EventId As Integer
            Public Overridable Property Kind As String
            Public Overridable Property Detail As String
            Public Overridable Property AtUtc As Date
            Public Overridable Property ByWho As String
        End Class

        Public Partial Class DispatchRequestsRequest
            Public Overridable Property Days As Integer?
        End Class

        Public Partial Class DispatchRequestsResponse
            Public Overridable Property Requests As List(Of DispatchRequestView) = New List(Of DispatchRequestView)
            Public Overridable Property Request As DispatchRequestView
            Public Overridable Property RigCounts As List(Of DispatchRigCountView) = New List(Of DispatchRigCountView)
            Public Overridable Property Carriers As List(Of DispatchCarrierPickView) = New List(Of DispatchCarrierPickView)
            Public Overridable Property QuoteLink As String
            Public Overridable Property Delivery As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class DispatchRequestView
            Public Overridable Property RequestId As Integer
            Public Overridable Property Code As String
            Public Overridable Property CustomerName As String
            Public Overridable Property CustomerPhone As String
            Public Overridable Property CustomerEmail As String
            Public Overridable Property Cargo As String
            Public Overridable Property Units As Integer
            Public Overridable Property FromLoc As String
            Public Overridable Property ToLoc As String
            Public Overridable Property Miles As Integer?
            Public Overridable Property WindowText As String
            Public Overridable Property IsUrgent As Boolean
            Public Overridable Property Notes As String
            Public Overridable Property Source As String
            Public Overridable Property Status As String
            Public Overridable Property RequiredRig As String
            Public Overridable Property UnitsPerTruck As Integer?
            Public Overridable Property RatePerLoad As Decimal?
            Public Overridable Property UrgencyPct As Decimal
            Public Overridable Property CostPerLoad As Decimal?
            Public Overridable Property LoadsNeeded As Integer?
            Public Overridable Property QuoteTotal As Decimal?
            Public Overridable Property QuoteVersion As Integer
            Public Overridable Property QuotedUtc As Date?
            Public Overridable Property QuotedBy As String
            Public Overridable Property AcceptTokenExpiresUtc As Date?
            Public Overridable Property AcceptedUtc As Date?
            Public Overridable Property AcceptedVia As String
            Public Overridable Property DeclinedUtc As Date?
            Public Overridable Property DeclinedBy As String
            Public Overridable Property DeclineReason As String
            Public Overridable Property JobsCreated As Integer
            Public Overridable Property JobsDone As Integer
            Public Overridable Property JobsNeedDriver As Integer
            Public Overridable Property CreatedUtc As Date
            Public Overridable Property CreatedBy As String
            Public Overridable Property Events As List(Of DispatchRequestEventView) = New List(Of DispatchRequestEventView)
        End Class

        Public Partial Class DispatchRigCountView
            Public Overridable Property RigType As String
            Public Overridable Property Rigs As Integer
        End Class
    End Namespace
End Namespace

VB.NET DispatchRequestsRequest 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/dispatch/requests HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Requests":[{"RequestId":0,"Code":"String","CustomerName":"String","CustomerPhone":"String","CustomerEmail":"String","Cargo":"String","Units":0,"FromLoc":"String","ToLoc":"String","Miles":0,"WindowText":"String","IsUrgent":false,"Notes":"String","Source":"String","Status":"String","RequiredRig":"String","UnitsPerTruck":0,"RatePerLoad":0,"UrgencyPct":0,"CostPerLoad":0,"LoadsNeeded":0,"QuoteTotal":0,"QuoteVersion":0,"QuotedUtc":"0001-01-01T00:00:00.0000000","QuotedBy":"String","AcceptTokenExpiresUtc":"0001-01-01T00:00:00.0000000","AcceptedUtc":"0001-01-01T00:00:00.0000000","AcceptedVia":"String","DeclinedUtc":"0001-01-01T00:00:00.0000000","DeclinedBy":"String","DeclineReason":"String","JobsCreated":0,"JobsDone":0,"JobsNeedDriver":0,"CreatedUtc":"0001-01-01T00:00:00.0000000","CreatedBy":"String","Events":[{"EventId":0,"Kind":"String","Detail":"String","AtUtc":"0001-01-01T00:00:00.0000000","ByWho":"String"}]}],"Request":{"RequestId":0,"Code":"String","CustomerName":"String","CustomerPhone":"String","CustomerEmail":"String","Cargo":"String","Units":0,"FromLoc":"String","ToLoc":"String","Miles":0,"WindowText":"String","IsUrgent":false,"Notes":"String","Source":"String","Status":"String","RequiredRig":"String","UnitsPerTruck":0,"RatePerLoad":0,"UrgencyPct":0,"CostPerLoad":0,"LoadsNeeded":0,"QuoteTotal":0,"QuoteVersion":0,"QuotedUtc":"0001-01-01T00:00:00.0000000","QuotedBy":"String","AcceptTokenExpiresUtc":"0001-01-01T00:00:00.0000000","AcceptedUtc":"0001-01-01T00:00:00.0000000","AcceptedVia":"String","DeclinedUtc":"0001-01-01T00:00:00.0000000","DeclinedBy":"String","DeclineReason":"String","JobsCreated":0,"JobsDone":0,"JobsNeedDriver":0,"CreatedUtc":"0001-01-01T00:00:00.0000000","CreatedBy":"String","Events":[{"EventId":0,"Kind":"String","Detail":"String","AtUtc":"0001-01-01T00:00:00.0000000","ByWho":"String"}]},"RigCounts":[{"RigType":"String","Rigs":0}],"Carriers":[{"VendorID":0,"VendorName":"String"}],"QuoteLink":"String","Delivery":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}