Take.API

<back to all web services

RouteModelRequest

The following routes are available for this service:
GET,POST/route/SearchRouteById根据ID获取提货路线信息
RouteModelRequest Parameters:
NameParameterData TypeRequiredDescription
IDbodyintYes编号
RouteModelResponse Parameters:
NameParameterData TypeRequiredDescription
RouteModelsformRouteModelYes详情
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformintYes返回编码,200之外的值都表示有错误
ErrorMsgformstringYes返回的消息
RouteModel Parameters:
NameParameterData TypeRequiredDescription
IDformintYes主键
RouteIDformstringYes路线编号
DriverIDformstringYes司机编号
WarehouseCodeformstringYes终点仓库编号
StartAddressformstringYes车辆起点地址
EndAddressformstringYes车辆终点地址
StartDTformDateTime?Yes车辆到达起点时间
EndDTformDateTime?Yes车辆到达终点时间
Statusformint?Yes路线状态(0:待确认 1:进行中 2:已完成 3:已拒绝)
RemarksformstringYes备注
CostStatusformintYes 费用确认状态(-1:司机拒绝确认 1:司机待确认,2:待请款,3:请款待审核,4:请款已拒绝,5:请款已审核,6:已请款)
BasicCostRemarkformstringNo备注
FileStatusformintYes文件状态

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

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/RouteModelRequest HTTP/1.1 
Host: bookinglogin.hart-worldwide.com 
Content-Type: application/xml
Content-Length: length

<RouteModelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinJo.Framing.DTO">
  <ID>0</ID>
</RouteModelRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RouteModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinJo.Framing.DTO">
  <ErrorCode>0</ErrorCode>
  <ErrorMsg>String</ErrorMsg>
  <RouteModels>
    <BasicCostRemark>String</BasicCostRemark>
    <CostStatus>0</CostStatus>
    <DriverID>String</DriverID>
    <EndAddress>String</EndAddress>
    <EndDT>0001-01-01T00:00:00</EndDT>
    <FileStatus>0</FileStatus>
    <ID>0</ID>
    <Remarks>String</Remarks>
    <RouteID>String</RouteID>
    <StartAddress>String</StartAddress>
    <StartDT>0001-01-01T00:00:00</StartDT>
    <Status>0</Status>
    <WarehouseCode>String</WarehouseCode>
  </RouteModels>
</RouteModelResponse>