简要描述:

  • 产品列表

请求URL:

  • productlist

请求参数:

参数名 是否必须 类型 说明
pageIndex int32 页码,默认1
pageSize int32 分页数据量,最大100,默认10
lineName string 线路名称
startCity string 出发城市
destCity string 目的地城市
displayCate string 线路类别默认是空,全部(包含1,2,3,4,80,90,100) 1笛风 2众信 3收客易 4自我游 80前台销售 90B2B 100B2C,多个用,号拼接后传入
teamPrefix string 团号前缀 (仅用于印迹产品)
departDateStart string 出发日期开始 (仅用于印迹产品)
departDateEnd string 出发日期结束 (仅用于印迹产品)
days string 行程天数 (仅用于印迹产品)
theme string 线路主题(单个)

入参示例:

  1. {
  2. apiKey : "test1",
  3. Apisecret : "78FBB3D68B40A347644619ACF902CED3",
  4. currentTimeStamp : "20171128134215",
  5. sign : "147C2CEEC3C0F19A854A55B90F26DB8C",
  6. uri “: "http://localhost:39450/yjapi/createOrder",
  7. data :
  8. {
  9. pageIndex : 1,
  10. pageSize : 10,
  11. startCity: "广州",
  12. lineName: "北京三日游",
  13. destCity: "北京"
  14. teamPrefix"TGMG05"
  15. }
  16. }

返回示例:

正确时返回:

  1. {
  2. Code : 0,
  3. Success: true,
  4. Message: "",
  5. Data :
  6. productList :
  7. [
  8. {
  9. LineId : 8655,
  10. LineName : "新年快乐",
  11. StartCity : "晋城,河东,运城,锦州",
  12. DestCity : "",
  13. TradePrice : 1200,
  14. RetailPrice : null,
  15. LineCate : 3,
  16. OriginalId : "210002916",
  17. LineCharacter : "ComprehensiveAmusementPark",
  18. teamPrefix:"",
  19. LineCatetory : "中国广东省线"
  20. },
  21. {
  22. LineId : 8669,
  23. LineName : "金牌法瑞意3国12日",
  24. StartCity : "成都",
  25. DestCity : "北京,赫尔辛基,罗马,佛罗伦萨,威尼斯,意大利小镇,戛纳,尼斯,五渔村,法国小镇,摩纳哥,因特拉肯,巴塞尔,卢塞恩,巴黎",
  26. TradePrice : 29000,
  27. RetailPrice : 30000,
  28. LineCate : 1,
  29. OriginalId : "210004016",
  30. LineCharacter : "ComprehensiveAmusementPark",
  31. TeamPrefix:"",
  32. LineCatetory : "中国广东省线"
  33. }
  34. ]
  35. }

错误时返回:

  1. {
  2. "Code" : 100002,
  3. "Success" : false,
  4. "Message" : "应用认证错误",
  5. "Data" : ""
  6. }

返回参数说明:

参数名 类型 说明
Code int 代码
Success bool 请求是否成功
Message string 错误信息,成功时返回空
Data string 请求的数据结果

Data数据说明

参数名 类型 说明
LineId int 线路Id
LineName string 线路名称
StartCity string 出发城市
DestCity string 目的地城市
TradePrice decimal 分销价
RetailPrice decimal 门市价
LineCate int 线路分类 (1笛风; 2众信; 3收客易; 4自我游; 80前台销售;90B2B; 100B2C)
OriginalId string 原Id
LineCharacter string 线路特色(所有线路特色从公共接口中拿Codeype=LineCharacter的数据)
TeamPrefix string 团号前缀 (仅用于印迹产品)
LineCatetory string 线路类型 (只有lineCate=80,90,100时才有)
Days int 行程天数 (只有lineCate=100才有)

备注:

  • 更多返回错误代码请看首页的错误代码描述