文档中心 > API类目 > 五道口API

alibaba.rex.skyeye.pos.order.detail.get (天眼pos订单详情查询)

天眼pos订单详情查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shop_code String 必须 8028 门店编码
merchant_code String 必须 HM 商家编码
need_detail Boolean 可选 true 是否需要商品详情
order_id String 可选 xx 订单号
payer_id String 可选 xx 支付id
relate_cabinet Boolean 可选 true 是否关联货架
user_id String 可选 xx 用户id
sid_list String 可选 bc45717d0663493ebda863379bfe56e5 交易流水id
path_code String 可选 xx path_code
start_time Number 可选 0 开始时间
end_time Number 可选 0 结束时间
path_code_list String 可选 [] path_code_list
member_id String 可选 xxx 会员id

响应参数

名称 类型 示例值 描述
result IotResult result
  • data
  • RexTradeDTO []
  • data
  • └ pos_type
  • String
  • auto
  • pos_type
  • └ merchant_code
  • String
  • HM
  • merchant_code
  • └ ou_code
  • String
  • 8028
  • ou_code
  • └ order_offline
  • String
  • false
  • order_offline
  • └ app_version
  • String
  • 9.1.0.2
  • app_version
  • └ trade_cost
  • Number
  • 49273
  • trade_cost
  • └ buyer_id
  • String
  • t134679015161403
  • buyer_id
  • └ sid
  • String
  • bc45717d0663493ebda863379bfe56e5
  • sid
  • └ origin_total_fee
  • Number
  • 3290
  • origin_total_fee
  • └ order_status
  • String
  • SUCCESS
  • order_status
  • └ subsidiary_code
  • String
  • 0571
  • subsidiary_code
  • └ device_name
  • String
  • 杭州亲橙里店-双屏自助收银-02
  • device_name
  • └ risk_op_log
  • String
  • [{"result":"success","code":"ABORT_BUSINESS","alias":"终止交易","description":"终止交易 成功 : ","happenedAt":"2024-07-15 19:32:16.544","cashierAssist":"false"}]
  • risk_op_log
  • └ pos_type_calib_flag
  • Boolean
  • true
  • pos_type_calib_flag
  • └ total_fee
  • Number
  • 2631
  • total_fee
  • └ cashier_assist
  • String
  • false
  • cashier_assist
  • └ device_id
  • String
  • AAMzXgBkxg0DAH3+jWG7PlqT
  • device_id
  • cart_items
  • RexCartItem []
  • cart_items
  • └ inv_unit
  • String
  • inv_unit
  • └ sale_unit
  • String
  • sale_unit
  • └ sale_quantity
  • Number
  • 1
  • sale_quantity
  • └ promotion_price
  • Number
  • 300
  • promotion_price
  • └ sid
  • String
  • bc45717d0663493ebda863379bfe56e5
  • sid
  • └ inv_quantity
  • String
  • 1.0
  • inv_quantity
  • └ origin_total_fee
  • Number
  • 300
  • origin_total_fee
  • └ is_weight
  • String
  • false
  • is_weight
  • └ price
  • Number
  • 300
  • price
  • └ total_fee
  • Number
  • 0
  • total_fee
  • └ sku_name
  • String
  • 盒马烘焙 原味蛋奶卷 45g
  • sku_name
  • └ pic_url
  • String
  • https://gd2.alicdn.com/imgextra/i2/263685747/O1CN016iuDgv1sKB9IcTJhq_!!263685747.jpg
  • pic_url
  • └ sku_code
  • String
  • 409990042
  • sku_code
  • └ barcode
  • String
  • 6937321014208
  • barcode
  • └ end_time
  • String
  • 2024-07-18 17:19:20
  • end_time
  • └ create_order_time
  • String
  • 2024-07-18 17:19:12
  • create_order_time
  • └ merchant_name
  • String
  • 盒马商家
  • merchant_name
  • └ ou_name
  • String
  • 杭州亲橙里店
  • ou_name
  • └ duty_code
  • String
  • 1852033782024071810042432634
  • duty_code
  • └ subsidiary_name
  • String
  • 浙江子公司
  • subsidiary_name
  • └ item_num
  • Number
  • 2
  • item_num
  • └ start_time
  • String
  • 2024-07-18 17:18:31
  • start_time
  • └ app_key
  • String
  • 24642325
  • app_key
  • pay_records
  • RexPay []
  • pay_records
  • └ pay_channel_name
  • String
  • 盒马APP
  • pay_channel_name
  • └ alipay_user_id
  • String
  • 2088602139331941
  • alipay_user_id
  • └ tao_user_id
  • String
  • t134679015161403
  • tao_user_id
  • └ pmt_pay_channel_name
  • String
  • alipay_facepay
  • pmt_pay_channel_name
  • └ pay_fee
  • Number
  • 2631
  • pay_fee
  • └ pay_code_source
  • String
  • HEMA
  • pay_code_source
  • └ order_id
  • String
  • 3973128985096313007
  • order_id
  • └ sid
  • String
  • bc45717d0663493ebda863379bfe56e5
  • sid
  • └ pmt_pay_channel_code
  • String
  • 1002
  • pmt_pay_channel_code
  • └ pay_time
  • String
  • 2024-07-18 17:19:20
  • pay_time
  • └ payer_id
  • String
  • a_2088602139331941
  • payer_id
  • └ order_num
  • Number
  • 2
  • order_num
  • └ order_id
  • String
  • 3973128985096313007
  • order_id
  • └ success
  • Boolean
  • true
  • success
  • └ msg_info
  • String
  • OK
  • 错误消息
  • └ msg_code
  • String
  • OK
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaRexSkyeyePosOrderDetailGetRequest req = new AlibabaRexSkyeyePosOrderDetailGetRequest();
req.setShopCode("8028");
req.setMerchantCode("HM");
req.setNeedDetail(true);
req.setOrderId("xx");
req.setPayerId("xx");
req.setRelateCabinet(true);
req.setUserId("xx");
req.setSidList("bc45717d0663493ebda863379bfe56e5");
req.setPathCode("xx");
req.setStartTime(0L);
req.setEndTime(0L);
req.setPathCodeList("[]");
req.setMemberId("xxx");
AlibabaRexSkyeyePosOrderDetailGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_rex_skyeye_pos_order_detail_get_response>
    <result>
        <data>
            <rex_trade_d_t_o>
                <pos_type>auto</pos_type>
                <merchant_code>HM</merchant_code>
                <ou_code>8028</ou_code>
                <order_offline>false</order_offline>
                <app_version>9.1.0.2</app_version>
                <trade_cost>49273</trade_cost>
                <buyer_id>t134679015161403</buyer_id>
                <sid>bc45717d0663493ebda863379bfe56e5</sid>
                <origin_total_fee>3290</origin_total_fee>
                <order_status>SUCCESS</order_status>
                <subsidiary_code>0571</subsidiary_code>
                <device_name>杭州亲橙里店-双屏自助收银-02</device_name>
                <risk_op_log>[{&quot;result&quot;:&quot;success&quot;,&quot;code&quot;:&quot;ABORT_BUSINESS&quot;,&quot;alias&quot;:&quot;终止交易&quot;,&quot;description&quot;:&quot;终止交易 成功 : &quot;,&quot;happenedAt&quot;:&quot;2024-07-15 19:32:16.544&quot;,&quot;cashierAssist&quot;:&quot;false&quot;}]</risk_op_log>
                <pos_type_calib_flag>true</pos_type_calib_flag>
                <total_fee>2631</total_fee>
                <cashier_assist>false</cashier_assist>
                <device_id>AAMzXgBkxg0DAH3+jWG7PlqT</device_id>
                <cart_items>
                    <rex_cart_item>
                        <inv_unit>盒</inv_unit>
                        <sale_unit>盒</sale_unit>
                        <sale_quantity>1</sale_quantity>
                        <promotion_price>300</promotion_price>
                        <sid>bc45717d0663493ebda863379bfe56e5</sid>
                        <inv_quantity>1.0</inv_quantity>
                        <origin_total_fee>300</origin_total_fee>
                        <is_weight>false</is_weight>
                        <price>300</price>
                        <total_fee>0</total_fee>
                        <sku_name>盒马烘焙 原味蛋奶卷 45g</sku_name>
                        <pic_url>https://gd2.alicdn.com/imgextra/i2/263685747/O1CN016iuDgv1sKB9IcTJhq_!!263685747.jpg</pic_url>
                        <sku_code>409990042</sku_code>
                        <barcode>6937321014208</barcode>
                    </rex_cart_item>
                </cart_items>
                <end_time>2024-07-18 17:19:20</end_time>
                <create_order_time>2024-07-18 17:19:12</create_order_time>
                <merchant_name>盒马商家</merchant_name>
                <ou_name>杭州亲橙里店</ou_name>
                <duty_code>1852033782024071810042432634</duty_code>
                <subsidiary_name>浙江子公司</subsidiary_name>
                <item_num>2</item_num>
                <start_time>2024-07-18 17:18:31</start_time>
                <app_key>24642325</app_key>
                <pay_records>
                    <rex_pay>
                        <pay_channel_name>盒马APP</pay_channel_name>
                        <alipay_user_id>2088602139331941</alipay_user_id>
                        <tao_user_id>t134679015161403</tao_user_id>
                        <pmt_pay_channel_name>alipay_facepay</pmt_pay_channel_name>
                        <pay_fee>2631</pay_fee>
                        <pay_code_source>HEMA</pay_code_source>
                        <order_id>3973128985096313007</order_id>
                        <sid>bc45717d0663493ebda863379bfe56e5</sid>
                        <pmt_pay_channel_code>1002</pmt_pay_channel_code>
                        <pay_time>2024-07-18 17:19:20</pay_time>
                    </rex_pay>
                </pay_records>
                <payer_id>a_2088602139331941</payer_id>
                <order_num>2</order_num>
                <order_id>3973128985096313007</order_id>
            </rex_trade_d_t_o>
        </data>
        <success>true</success>
        <msg_info>OK</msg_info>
        <msg_code>OK</msg_code>
    </result>
</alibaba_rex_skyeye_pos_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

返回
顶部