Take.API

<back to all web services

RouteCostRequest

The following routes are available for this service:
GET,POST/route/SearchRouteCostList分页获取提货路线中提货点费用列表
RouteCostRequest Parameters:
NameParameterData TypeRequiredDescription
RouteIDbodystringYes路线编号
RouteCostResponse Parameters:
NameParameterData TypeRequiredDescription
RouteIDformstringYes路线编号
StartAddressformstringYes路线起点地址
EndAddressformstringYes路线终点地址
FleetNameformstringYes提货车队名称
DriverNameformstringYes提货司机名称
DriverTelformstringYes提货司机电话
LicenseNumberformstringYes提货车辆车牌
StartDTformDateTimeYes车辆到达起点时间
EndDTformDateTimeYes车辆到达终点时间
PrepareCountformintYes路线提货点总数
CostformdecimalYes路线基础费用
CostUploadpathformstringYes路线基础费用文件
PrepareCostModelsformList<PrepareCostModel>Yes路线每个提货点费用列表
CostStatusformintYes路线基础费用状态
BasicCostRemarkformstringNo备注
FileStatusformintYes文件状态
CreateTimeformDateTimeYes路线创建时间
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformintYes返回编码,200之外的值都表示有错误
ErrorMsgformstringYes返回的消息
PrepareCostModel Parameters:
NameParameterData TypeRequiredDescription
IDformintYes自增ID
RouteIDformstringYes提货路线编号
PrepareIDformintYes提货点ID
SortformintYes提货点排序
TakeAddressformstringYes提货点完整地址
CostTypeformintYes费用类型
CostAmountformdecimal?Yes费用金额
UploadPathformstringYes凭证上传路径
IsUploadformintYes是否已上传凭证(0:否 1:是)
IsAuditingformintYes是否已经确认(0:否 1:是)
AuditingByformstringYes确认人
AuditingDTformDateTime?Yes确认时间
CostClassformintYes其它费用类别
RouteCostRemarkformstringNo备注
IsAbnormalCostformintYes是否异常费用 1-是,0-否

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.

POST /jsv/reply/RouteCostRequest HTTP/1.1 
Host: bookinglogin.hart-worldwide.com 
Content-Type: text/jsv
Content-Length: length

{
	RouteID: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RouteID: String,
	StartAddress: String,
	EndAddress: String,
	FleetName: String,
	DriverName: String,
	DriverTel: String,
	LicenseNumber: String,
	StartDT: 0001-01-01,
	EndDT: 0001-01-01,
	PrepareCount: 0,
	Cost: 0,
	CostUploadpath: String,
	PrepareCostModels: 
	[
		{
			ID: 0,
			RouteID: String,
			PrepareID: 0,
			Sort: 0,
			TakeAddress: String,
			CostType: 0,
			CostAmount: 0,
			UploadPath: String,
			IsUpload: 0,
			IsAuditing: 0,
			AuditingBy: String,
			AuditingDT: 0001-01-01,
			CostClass: 0,
			RouteCostRemark: String,
			IsAbnormalCost: 0
		}
	],
	CostStatus: 0,
	BasicCostRemark: String,
	FileStatus: 0,
	CreateTime: 0001-01-01,
	ErrorCode: 0,
	ErrorMsg: String
}