注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 天猫汽车

tmall.aliauto.order.qrcode (根据商品id列表获取可扫描下单二维码)

根据商品id列表获取可扫描下单二维码

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_and_sku_num_list String 可选 123_1,456_2 商品id和数量组合列表
outer_shop_id String 可选 AM123 门店自定义编码
receipt_id Number 可选 1234 工单id

响应参数

名称 类型 示例值 描述
data ConfirmOrderQrCode4IsvDto 返回的数据实体
  • └ extension
  • String
  • 附加参数
  • └ qr_code_img_url
  • String
  • http://www.a.com/a.jpg
  • 确认订单页二维码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoOrderQrcodeRequest req = new TmallAliautoOrderQrcodeRequest();
req.setItemAndSkuNumList("123_1,456_2");
req.setOuterShopId("AM123");
req.setReceiptId(1234L);
TmallAliautoOrderQrcodeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_aliauto_order_qrcode_response>
    <data>
        <extension></extension>
        <qr_code_img_url>http://www.a.com/a.jpg</qr_code_img_url>
    </data>
</tmall_aliauto_order_qrcode_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

返回
顶部