Trendsic Platform Service

<back to all web services

CourierDriverPayRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/dispatch/od/pay
CourierDriverPayResponse Parameters:
NameParameterData TypeRequiredDescription
RowsformList<CourierDriverPayRow>No
TotalformdecimalNo
AvailableformboolNo
ServerUtcformDateTimeNo
ResponseStatusformResponseStatusNo
CourierDriverPayRow Parameters:
NameParameterData TypeRequiredDescription
DispatchLoadIDformintNo
CodeformstringNo
KindformstringNo
OrderCodeformstringNo
RunCodeformstringNo
QtyTextformstringNo
SourceLabelformstringNo
DestinationLabelformstringNo
StatusformstringNo
Payformdecimal?No
OpenedUtcformDateTime?No
ClosedUtcformDateTime?No
LinesformList<CourierPayLineView>No
CourierPayLineView Parameters:
NameParameterData TypeRequiredDescription
DispatchLoadIDformintNo
KindformstringNo
LabelformstringNo
Qtyformdecimal?No
Rateformdecimal?No
AmountformdecimalNo

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/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
		}
	}
}