跳到主要内容

cbv.company.prices.price

获取指定条件下所有站点关联的线路协议价,按公司分组

  • 请求路由: cbv.company.prices.price
  • 交互模型: Response Stream
  • 访问限制: 无

请求​

RSocket.rs({
"route" : "cbv.company.prices.price",
"data" : {
"includeCompanyIds" : [
"CN1014",
"HK1045"
],
"priceType" : 1,
"portTypes" : [
0
],
"startMainArea" : "001",
"startMinorAreas" : [
"60",
"57",
"56"
],
"endMainArea" : "002",
"endMinorAreas" : [
"002006",
"002007",
"002008",
"002009",
"65",
"002004"
]
}
});

请求参数​

名称类型必须说明
excludeCompanyIdsString[]否排除的承运商列表
includeCompanyIdsString[]否包含的承运商列表
priceTypeNumber否类型:1-包车 2-专线
portTypesNumber[]否口岸列表 字典
startMainAreaString否开始城市编号
startMinorAreasString[]否开始区域编号列表
endMainAreaString否结束城市编号
endMinorAreasString[]否结束区域编号列表

返回​

结果列表

[
{
"companyId" : "HK1045",
"companyName" : "测试公司1",
"priceConfigs" : [
{
"hourlyRate" : {
"HKD" : 1.0,
"MOP" : 1.0,
"RMB" : 1.0
},
"specificSingleFare" : {
"HKD" : 11.0,
"MOP" : 1.0,
"RMB" : 1.0
},
"specificReturnFares" : {
"HKD" : 1.0,
"MOP" : 11.0,
"RMB" : 11.0
}
},
{
"hourlyRate" : {
"HKD" : 0.0,
"MOP" : 0.0,
"RMB" : 0.0
},
"specificSingleFare" : {
"HKD" : 0.0,
"MOP" : 0.0,
"RMB" : 0.0
},
"specificReturnFares" : {
"HKD" : 0.0,
"MOP" : 0.0,
"RMB" : 0.0
}
},
{
"hourlyRate" : {
"HKD" : 0.0,
"MOP" : 0.0,
"RMB" : 0.0
},
"specificSingleFare" : {
"HKD" : 0.0,
"MOP" : 0.0,
"RMB" : 0.0
},
"specificReturnFares" : {
"HKD" : 0.0,
"MOP" : 0.0,
"RMB" : 0.0
}
}
]
}
]

返回属性​

名称类型说明
priceConfigsObject[]价格相关信息列表
priceConfigs.[].startMinorAreasTextString开始站点名称 按、分割
priceConfigs.[].endMinorAreasTextString结束站点名称 按、分割
priceConfigs.[].portTypesTextString口岸名称 按、分割
priceConfigs.[].hourlyRateObject时租单价
priceConfigs.[].specificSingleFareObject点对点单程价
priceConfigs.[].specificReturnFaresObject点对点往返价
priceConfigs.[].fareOtherInfoObject票价其他信息
companyIdString公司id
companyNameString公司名称

下载结果模型定义