Trendsic Platform Service

<back to all web services

DispatchTrackRequest

The following routes are available for this service:
GET,OPTIONS/v1/dispatch/track/{Token}/json

export class DispatchTrackStepView
{
    public Name: string;
    public At?: string;
    public Done: boolean;
    public Current: boolean;

    public constructor(init?: Partial<DispatchTrackStepView>) { (Object as any).assign(this, init); }
}

export class DispatchTrackResponse
{
    public Kind: string;
    public Code: string;
    public What: string;
    public FromLoc: string;
    public ToLoc: string;
    public Bags?: number;
    public Fare?: number;
    public PayMode: string;
    public CardLast4: string;
    public Charged: boolean;
    public Stage: string;
    public Headline: string;
    public Sub: string;
    public IsClosed: boolean;
    public Eta: string;
    public DriverName: string;
    public CustomerName: string;
    public Steps: DispatchTrackStepView[] = [];
    public Expired: boolean;
    public Invalid: boolean;
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<DispatchTrackResponse>) { (Object as any).assign(this, init); }
}

export class DispatchTrackRequest
{
    public Token: string;

    public constructor(init?: Partial<DispatchTrackRequest>) { (Object as any).assign(this, init); }
}

TypeScript DispatchTrackRequest DTOs

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

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
			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
		}
	}
}