简要描述:

  • 订单详情

请求URL:

  • orderdetail

请求参数:

参数名 是否必须 类型 说明
orderId Integer 订单ID

入参示例:

  1. {
  2. apiKey : "test1",
  3. apisecret : "78FBB3D68B40A347644619ACF902CED3",
  4. currentTimeStamp : "20171221102131",
  5. sign : "E5896A01D1A882E402A738AE0C8D053D",
  6. uri : "http://localhost:39450/ticket/orderdetail",
  7. data :
  8. {
  9. orderId : "35185346"
  10. }
  11. }

返回示例:

正确时返回:

  1. {
  2. Code : 0,
  3. Success : true,
  4. Message : null,
  5. Data :
  6. {
  7. "orderInfo": {
  8. "canPay": "0",
  9. "scenicName": "",
  10. "productId": "5165355",
  11. "orderId": 33410703,
  12. "scenicId": "12",
  13. "amoutPrice": 0,
  14. "pickUpAddress": "",
  15. "orderStatus": "待确认",
  16. "planDate": "2017-01-01",
  17. "orderTime": "2016-12-30 11:30:30",
  18. "enterCertificate": {
  19. "enterCertificateTypeInfo": "邮件",
  20. "enterCertificateType": "换票入园"
  21. },
  22. "pickUpType": "门票自取",
  23. "bookNumber": 1,
  24. "contact": {
  25. "psptId": "",
  26. "contactEmail": "",
  27. "contactName": "途牛测试",
  28. "psptType": 0,
  29. "contactTel": "1234213421"
  30. }
  31. },
  32. "orderStatus": "待确认"
  33. }
  34. }

错误时返回:

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

返回参数说明:

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

以下结构体为data字段的内容。

参数名 类型 说明
orderId Integer 订单id
canPay Integer 支付开关 0.不可支付,1.可以支付;分销商系统需要控制,当canPay=1时,才调用【出票(代扣)接口】。
productId Integer 产品ID
scenicId Integer 景点ID
scenicName string 景点名称
orderStatus String 订单状态:待确认:订单正在校验/占位;待付款:订单在此状态下,同时满足“支付开关canPay=1.可支付”,则可以调用出票代扣接口进行付款;出票中:付款后出票中到此状态;已完成:表示出票成功;已取消:订单取消成功,或者退票成功,到此状态;
orderTime string 下单时间
planDate string 出游日期
bookNumber Integer 预订数量
amoutPrice Integer 总价
pickUpType string 取票方式
pickUpAddress string 取票地址
contact Contact 联系人信息
touristList Tourist[] 出游人信息
enterCertificate enterCertificate 入园方式及凭证信息
delivery Delivery 门票配送信息

业务参数定义

  1. Contact—取票人信息
参数名 必选 类型 说明
contactName string 取票人姓名
contactEmail string 取票人邮箱admissionVoucherCode=205、302时必传,否则不要传。
contactTel string 取票人手机号码(入园凭证会发送到此手机号码上,请务必保证手机号码真实有效)
psptType Integer 证件类型。custInfoLimit=4、6、7时必传;否则不要传。

选项参照certificateType字段。 |
|psptId| |string |证件号码。custInfoLimit=4、6、7时必传;否则不要传。 |

  1. Tourist—游客信息
参数名 必选 类型 说明
name string 游客姓名
psptType Integer 证件类型:1、二代身份证2、护照3、军官证4、港澳通行证7、台胞证8、回乡证9、户口簿10、出生证明11、台湾通行证
psptId string 证件号码
tel string 电话号码
email string 邮箱
sex Integer 0:女,1:男
  1. EnterCertificate—入园凭证
参数名 必选 类型 说明
enterCertificateType string 入园方式
enterCertificateTypeInfo string 入园凭证
enterCertificateTxt string 入园凭证文本说明
  1. Delivery—递送信息
参数名 必选 类型 说明
deliveryType Integer 1配送2自取
receiverName string 收件人;
telNum string 收件电话;
deliveryEndAddress string 收件地址;
zipCode string 邮编;

备注:

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