文档中心 > API类目 > 阿里体育场馆服务API

alibaba.alisports.gymnasium.order.detail.get (获取订单详情)

获取订单详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
token String 必须 123 sso_token
order_no String 必须 123 订单号

响应参数

名称 类型 示例值 描述
model OrderInfoRepDto 134523^4351232 model
  • └ order_no
  • String
  • 2312341212
  • 订单号
  • └ product_class_type
  • Number
  • 3
  • 订单类型
  • └ stadium_name
  • String
  • 五台山银联体育馆
  • 场馆名称
  • └ qr_code_pic
  • String
  • http://oss.alisports.com/pic/qr/
  • 二维码图片地址
  • └ pay_fail_reason
  • String
  • demo
  • 支付失败原因
  • └ order_state
  • Number
  • 2
  • 订单状态
  • └ alipay_no
  • String
  • 202021223213
  • 支付单号
  • └ buyer_phone
  • String
  • 159******01
  • 下单人联系电话(脱敏)
  • └ stadium_id_encode
  • String
  • PNDY1Ng==
  • 场馆id(密文)
  • └ price
  • Number
  • 50
  • 订单金额
  • └ qr_code_url
  • String
  • http://oss.alisports.com/pic/qr/
  • 二维码链接地址
  • └ payment
  • Number
  • 48
  • 订单支付金额
  • └ open_area_name
  • String
  • 南京市
  • 区域名称
  • └ open_area_id
  • Number
  • 320100
  • 城市编码
  • └ product_id
  • String
  • Pda2=
  • 商品id(密文)
  • vc_list
  • OrderProductVcRespDto []
  • []
  • 二维码相关属性
  • └ validate_code
  • String
  • 23124
  • 二维码code
  • └ use_state
  • Number
  • 0
  • 使用状态
  • └ use_time
  • Number
  • 1620563400
  • 使用时间
  • └ use_start_time
  • Number
  • 1620556200
  • 开始使用时间
  • └ use_end_time
  • Number
  • 1620563400
  • 使用结束时间
  • └ refund_state
  • Number
  • 0
  • 退款状态
  • └ ground_booking_id
  • String
  • 20210509183019302947187_0,20210509193020302947188_0
  • 场馆预定id,多个“,”分隔
  • └ created_at
  • Number
  • 1567777009
  • 下单时间(秒)
  • └ refund_status
  • Number
  • 1
  • 退款状态,0:未退款,1:退款中,2:退款成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsGymnasiumOrderDetailGetRequest req = new AlibabaAlisportsGymnasiumOrderDetailGetRequest();
req.setToken("123");
req.setOrderNo("123");
AlibabaAlisportsGymnasiumOrderDetailGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alisports_gymnasium_order_detail_get_response>
    <model>
        <order_no>2312341212</order_no>
        <product_class_type>3</product_class_type>
        <stadium_name>五台山银联体育馆</stadium_name>
        <qr_code_pic>http://oss.alisports.com/pic/qr/</qr_code_pic>
        <pay_fail_reason>demo</pay_fail_reason>
        <order_state>2</order_state>
        <alipay_no>202021223213</alipay_no>
        <buyer_phone>159******01</buyer_phone>
        <stadium_id_encode>PNDY1Ng==</stadium_id_encode>
        <price>50</price>
        <qr_code_url>http://oss.alisports.com/pic/qr/</qr_code_url>
        <payment>48</payment>
        <open_area_name>南京市</open_area_name>
        <open_area_id>320100</open_area_id>
        <product_id>Pda2=</product_id>
        <vc_list>
            <order_product_vc_resp_dto>
                <validate_code>23124</validate_code>
                <use_state>0</use_state>
                <use_time>1620563400</use_time>
                <use_start_time>1620556200</use_start_time>
                <use_end_time>1620563400</use_end_time>
                <refund_state>0</refund_state>
                <ground_booking_id>20210509183019302947187_0,20210509193020302947188_0</ground_booking_id>
            </order_product_vc_resp_dto>
        </vc_list>
        <created_at>1567777009</created_at>
        <refund_status>1</refund_status>
    </model>
</alibaba_alisports_gymnasium_order_detail_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部