pos线下交易小票打印接口
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| shop_id | Number | 必须 | 911 | 门店id | |
| bill_print_request | BillPrintRequest | 必须 | 入参 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | PosResult | 返回结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPosBillGetRequest req = new AlibabaPosBillGetRequest();
req.setShopId(911L);
AlibabaPosBillGetRequest.BillPrintRequest obj1 = new AlibabaPosBillGetRequest.BillPrintRequest();
obj1.setBizOrderId(1100126525063028420L);
obj1.setMachineId("67");
obj1.setShopId("911");
obj1.setMerchantCode("911123");
obj1.setSource("pos");
obj1.setExtra("{\"key\":\"value\"}");
req.setBillPrintRequest(obj1);
AlibabaPosBillGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_pos_bill_get_response>
<result>
<model>
<pos_id>""</pos_id>
<cashier_id>""</cashier_id>
<pay_type>0</pay_type>
<print_time></print_time>
<receive_fee>0</receive_fee>
<change_fee>0</change_fee>
<coupon_fee>0</coupon_fee>
<member_promotion_fee>0</member_promotion_fee>
<promotion_fee>0</promotion_fee>
<shop_id>""</shop_id>
<biz_order_id>0</biz_order_id>
<create_time></create_time>
<pay_time></pay_time>
<item_blocks>
<bill_item_block_dto>
<title>""</title>
<item_dtos>
<bill_item_dto>
<sub_order_id>""</sub_order_id>
<item_id>""</item_id>
<title>""</title>
<quantity>0</quantity>
<price>0</price>
<total_fee>0</total_fee>
<is_zp>false</is_zp>
<is_hg>false</is_hg>
<weight>""</weight>
<weight_str>""</weight_str>
<is_weight>false</is_weight>
<inv_unit>""</inv_unit>
<bar_code>""</bar_code>
<sku_code>""</sku_code>
<full_title>""</full_title>
<promotion_price>0</promotion_price>
<total_discount_fee>0</total_discount_fee>
<is_jg>false</is_jg>
<extra>{}</extra>
</bill_item_dto>
</item_dtos>
</bill_item_block_dto>
</item_blocks>
<payment_channels>
<payment_channel_dto>
<channel_code>""</channel_code>
<channel_name>""</channel_name>
<total>0</total>
</payment_channel_dto>
</payment_channels>
<alipay_promotions>
<payment_promotion_detail_dto>
<channel_code>""</channel_code>
<channel_name>""</channel_name>
<total>0</total>
</payment_promotion_detail_dto>
</alipay_promotions>
<total_fee>0</total_fee>
<actual_fee>0</actual_fee>
<total_promotion_fee>0</total_promotion_fee>
<gift_card_payfee>0</gift_card_payfee>
<hebao_pay_fee>0</hebao_pay_fee>
<extra>{}</extra>
</model>
<msg_code>""</msg_code>
<msg_info>""</msg_info>
<is_success>true</is_success>
</result>
</alibaba_pos_bill_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|