| GET,OPTIONS | /v1/worker/dispatch/od/pay |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Rows | form | List<CourierDriverPayRow> | No | |
| Total | form | decimal | No | |
| Available | form | bool | No | |
| ServerUtc | form | DateTime | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DispatchLoadID | form | int | No | |
| Code | form | string | No | |
| Kind | form | string | No | |
| OrderCode | form | string | No | |
| RunCode | form | string | No | |
| QtyText | form | string | No | |
| SourceLabel | form | string | No | |
| DestinationLabel | form | string | No | |
| Status | form | string | No | |
| Pay | form | decimal? | No | |
| OpenedUtc | form | DateTime? | No | |
| ClosedUtc | form | DateTime? | No | |
| Lines | form | List<CourierPayLineView> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DispatchLoadID | form | int | No | |
| Kind | form | string | No | |
| Label | form | string | No | |
| Qty | form | decimal? | No | |
| Rate | form | decimal? | No | |
| Amount | form | decimal | 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/worker/dispatch/od/pay HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Rows:
[
{
DispatchLoadID: 0,
Code: String,
Kind: String,
OrderCode: String,
RunCode: String,
QtyText: String,
SourceLabel: String,
DestinationLabel: String,
Status: String,
Pay: 0,
OpenedUtc: 0001-01-01,
ClosedUtc: 0001-01-01,
Lines:
[
{
DispatchLoadID: 0,
Kind: String,
Label: String,
Qty: 0,
Rate: 0,
Amount: 0
}
]
}
],
Total: 0,
Available: False,
ServerUtc: 0001-01-01,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}