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

alibaba.wdk.pos.order.getbillinfo (获取打印小票数据)

获取打印小票数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
brand_type Number 必须 2 打印机品牌类型:2 寺冈
bill_type Number 必须 1 打印小票类型:1销售单,2挂账单
biz_order_id Number 必须 2994996800019311 淘宝交易主订单ID

响应参数

名称 类型 示例值 描述
target PosBillDo target
  • buy_items
  • ItemParamDo []
  • buyItems
  • └ out_sku_id
  • String
  • 010100202684
  • outSkuId
  • └ price
  • Number
  • 100
  • price
  • └ promotion_price
  • Number
  • 80
  • promotionPrice
  • └ inv_unit
  • String
  • invUnit
  • └ is_weight
  • Boolean
  • false
  • isWeight
  • └ quantity
  • Number
  • 1
  • quantity
  • └ weight
  • String
  • 1.4
  • weight
  • └ is_zp
  • Boolean
  • false
  • isZp
  • └ ref_out_sku_id
  • String
  • 0
  • refOutSkuId
  • └ title
  • String
  • 非称重生鲜1元商品1123233
  • title
  • └ total_auction_fee
  • Number
  • 80
  • totalAuctionFee
  • └ total_fee
  • Number
  • 100
  • totalFee
  • └ total_discount_fee
  • Number
  • 20
  • totalDiscountFee
  • zp_items
  • ItemParamDo []
  • zpItems
  • └ out_sku_id
  • String
  • 010100202684
  • outSkuId
  • └ price
  • Number
  • 0
  • price
  • └ promotion_price
  • Number
  • 80
  • promotionPrice
  • └ inv_unit
  • String
  • invUnit
  • └ is_weight
  • Boolean
  • false
  • isWeight
  • └ quantity
  • Number
  • 1
  • quantity
  • └ weight
  • String
  • 1.4
  • weight
  • └ is_zp
  • Boolean
  • true
  • isZp
  • └ ref_out_sku_id
  • String
  • 010100202684
  • refOutSkuId
  • └ title
  • String
  • 非称重生鲜1元商品1123233
  • title
  • └ total_auction_fee
  • Number
  • 80
  • totalAuctionFee
  • └ total_fee
  • Number
  • 100
  • totalFee
  • └ total_discount_fee
  • Number
  • 20
  • totalDiscountFee
  • └ change_fee
  • Number
  • 0
  • changeFee
  • └ receive_fee
  • Number
  • 80
  • receiveFee
  • └ alipay_fee
  • Number
  • 80
  • alipayFee
  • └ actual_fee
  • Number
  • 80
  • actualFee
  • └ coupon_fee
  • Number
  • 0
  • couponFee
  • └ promotion_fee
  • Number
  • 20
  • promotionFee
  • └ total_fee
  • Number
  • 100
  • totalFee
  • └ biz_order_id
  • Number
  • 2994996800019311
  • bizOrderId
  • └ print_time
  • String
  • 2017-01-24 15:58:49
  • printTime
  • └ shop_id
  • String
  • 132463311
  • shopId
  • └ pos_id
  • String
  • 123
  • posId
  • └ cashier_id
  • String
  • 123
  • cashierId
  • └ brand
  • String
  • MOBILE_POS
  • brand
  • └ bill_type
  • String
  • SALES
  • billType
  • └ card_fee
  • Number
  • 80
  • cardFee

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWdkPosOrderGetbillinfoRequest req = new AlibabaWdkPosOrderGetbillinfoRequest();
req.setBrandType(2L);
req.setBillType(1L);
req.setBizOrderId(2994996800019311L);
AlibabaWdkPosOrderGetbillinfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_wdk_pos_order_getbillinfo_response>
    <target>
        <buy_items>
            <item_param_do>
                <out_sku_id>010100202684</out_sku_id>
                <price>100</price>
                <promotion_price>80</promotion_price>
                <inv_unit>组</inv_unit>
                <is_weight>false</is_weight>
                <quantity>1</quantity>
                <weight>1.4</weight>
                <is_zp>false</is_zp>
                <ref_out_sku_id>0</ref_out_sku_id>
                <title>非称重生鲜1元商品1123233</title>
                <total_auction_fee>80</total_auction_fee>
                <total_fee>100</total_fee>
                <total_discount_fee>20</total_discount_fee>
            </item_param_do>
        </buy_items>
        <zp_items>
            <item_param_do>
                <out_sku_id>010100202684</out_sku_id>
                <price>0</price>
                <promotion_price>80</promotion_price>
                <inv_unit>组</inv_unit>
                <is_weight>false</is_weight>
                <quantity>1</quantity>
                <weight>1.4</weight>
                <is_zp>true</is_zp>
                <ref_out_sku_id>010100202684</ref_out_sku_id>
                <title>非称重生鲜1元商品1123233</title>
                <total_auction_fee>80</total_auction_fee>
                <total_fee>100</total_fee>
                <total_discount_fee>20</total_discount_fee>
            </item_param_do>
        </zp_items>
        <change_fee>0</change_fee>
        <receive_fee>80</receive_fee>
        <alipay_fee>80</alipay_fee>
        <actual_fee>80</actual_fee>
        <coupon_fee>0</coupon_fee>
        <promotion_fee>20</promotion_fee>
        <total_fee>100</total_fee>
        <biz_order_id>2994996800019311</biz_order_id>
        <print_time>2017-01-24 15:58:49</print_time>
        <shop_id>132463311</shop_id>
        <pos_id>123</pos_id>
        <cashier_id>123</cashier_id>
        <brand>MOBILE_POS</brand>
        <bill_type>SALES</bill_type>
        <card_fee>80</card_fee>
    </target>
</alibaba_wdk_pos_order_getbillinfo_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

返回
顶部