简要描述:

  • 创建订单

请求URL:

  • createOrder

请求参数:

此数据为业务数据,作为调用参数中data字段的内容。

订单信息表 data

参数名 是否必须 类型 说明
arriveidTime string 预计最晚达到时间,整点,如:18点,为 18
endTravelDate string 游玩结束日期,日期格式: yyyy-MM-dd
getType string 配送方式
infoId int 产品编码
linkAddress string 联系人地址
linkCreditNo string 联系人证件号码
linkCreditType int 联系人证件类型
linkEmail string 联系人邮件
linkMan string 联系人姓名
linkPhone string 联系人手机
memberId string 会员(可对于外部会员id)
orderCustId int 分销商编号
orderMemo string 订单备注
orderSourceId string 分销渠道订单ID(外部订单号)
seat string 所占位数,酒店的晚数
unit string 单位
ticketNum int 门票张数,酒店间数
price decimal 产品分销价
salePrice decimal 零售价
travelDate string 游玩日期,日期格式: yyyy-MM-dd
orderId int 自我游订单Id
state int 订单状态:0新订单,1,已确认,2已成功,3已取消,4 已完成
status int 0待确认,1已确认
SaleId int 销售员Id

入参示例:

  1. {
  2. apiKey : "test1",
  3. apisecret : "78FBB3D68B40A347644619ACF902CED3",
  4. currentTimeStamp : "20210714174905",
  5. sign : "832CD49FE9C37DED02E6FAE3043624A2",
  6. uri : "http://localhost:39450/tours/createOrderZWY",
  7. data :
  8. {
  9. arriveidTime : "2021-04-05",
  10. endTravelDate : "2021-06-07",
  11. getType :11,
  12. infoId : 11,
  13. linkAddress : 22,
  14. linkCreditNo : 33,
  15. linkCreditType : 2,
  16. linkEmail : "123564@qq.com",
  17. linkMan : "张三丰",
  18. linkPhone : "13512361234",
  19. memberId :"yoo",
  20. orderCustId : null,
  21. orderMemo : null,
  22. orderSourceId : null,
  23. seat : null,
  24. unit : null,
  25. ticketNum : null,
  26. price : null,
  27. salePrice : null,
  28. travelDate : null,
  29. orderId : null,
  30. state : null,
  31. status : null,
  32. SaleId : null
  33. }
  34. }

返回示例:

正确时返回:

  1. {
  2. Code : 0,
  3. Success : true,
  4. Message : "",
  5. Data : null
  6. }

错误时返回:

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

返回参数说明:

参数名 是否必须 类型 说明
Success boolean 是否成功,成功返回true,失败返回false
Message String 错误信息,成功返回空
Data String 订单编号,成功返回订单编号,失败返回空

备注:

-