| GET,OPTIONS | /v1/dispatch/track/{Token}/json |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Token | path | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Kind | form | string | No | |
| Code | form | string | No | |
| What | form | string | No | |
| FromLoc | form | string | No | |
| ToLoc | form | string | No | |
| Bags | form | int? | No | |
| Fare | form | decimal? | No | |
| PayMode | form | string | No | |
| CardLast4 | form | string | No | |
| Charged | form | bool | No | |
| Stage | form | string | No | |
| Headline | form | string | No | |
| Sub | form | string | No | |
| IsClosed | form | bool | No | |
| Eta | form | string | No | |
| DriverName | form | string | No | |
| CustomerName | form | string | No | |
| Steps | form | List<DispatchTrackStepView> | No | |
| Expired | form | bool | No | |
| Invalid | form | bool | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | No | |
| At | form | DateTime? | No | |
| Done | form | bool | No | |
| Current | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}