Trendsic Platform Service

<back to all web services

DispatchTrackRequest

The following routes are available for this service:
GET,OPTIONS/v1/dispatch/track/{Token}/json
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 DispatchTrackRequest
            Public Overridable Property Token As String
        End Class

        Public Partial Class DispatchTrackResponse
            Public Overridable Property Kind As String
            Public Overridable Property Code As String
            Public Overridable Property What As String
            Public Overridable Property FromLoc As String
            Public Overridable Property ToLoc As String
            Public Overridable Property Bags As Integer?
            Public Overridable Property Fare As Decimal?
            Public Overridable Property PayMode As String
            Public Overridable Property CardLast4 As String
            Public Overridable Property Charged As Boolean
            Public Overridable Property Stage As String
            Public Overridable Property Headline As String
            Public Overridable Property [Sub] As String
            Public Overridable Property IsClosed As Boolean
            Public Overridable Property Eta As String
            Public Overridable Property DriverName As String
            Public Overridable Property CustomerName As String
            Public Overridable Property Steps As List(Of DispatchTrackStepView) = New List(Of DispatchTrackStepView)
            Public Overridable Property Expired As Boolean
            Public Overridable Property Invalid As Boolean
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class DispatchTrackStepView
            Public Overridable Property Name As String
            Public Overridable Property At As Date?
            Public Overridable Property Done As Boolean
            Public Overridable Property Current As Boolean
        End Class
    End Namespace
End Namespace

VB.NET DispatchTrackRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/dispatch/track/{Token}/json HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Kind":"String","Code":"String","What":"String","FromLoc":"String","ToLoc":"String","Bags":0,"Fare":0,"PayMode":"String","CardLast4":"String","Charged":false,"Stage":"String","Headline":"String","Sub":"String","IsClosed":false,"Eta":"String","DriverName":"String","CustomerName":"String","Steps":[{"Name":"String","At":"0001-01-01T00:00:00.0000000","Done":false,"Current":false}],"Expired":false,"Invalid":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}