有赞新零售社区

发帖
API使用问题»还是前面两个问题,获取订单开票信息的接口没有办法获取到开票信息

[API调用-商品/交易] 还是前面两个问题,获取订单开票信息的接口没有办法获取到开票信息

Sookie Lin 2023-10-30 1299 浏览 4 评论 | 只看楼主 [打印]  关闭
根据上一个论坛,你给的API链接地址,我看接口文档是可以的。
但是实际调用接口返回的内容和接口文档说明的不一样,没有“invoice_info”。
返回报文={"trace_id":"yz7-0ae85b73-1698651202050-547656","code":200,"data":{"delivery_order":[{"express_state":1,"oids":[{"oid":"2971104023076667413"}],"express_type":0,"dists":[{"dist_items":[{"oid":"2971104023076667413"}],"dist_id":"202310261523410000160455","express_info":{"express_id":1,"express_no":"773250827451620"}}]}],"order_promotion":{"order_discount_fee":"10.00","item":[],"adjust_fee":"0.00","order_paid_promotion":[],"order":[{"promotion_type":"coupon","item_info":[{"oid":"2971104023076667413","discount_fee":"10.00"}],"sub_promotion_type":"card","promotion_title":"优惠券","coupon_id":"13349230842","promotion_condition":"满10元使用","promotion_type_name":"优惠卡券","promotion_content":"","promotion_id":28252920,"discount_fee":"10.00","promotion_type_id":105}]},"custom_item_infos":[],"refund_order":[],"full_order_info":{"child_info":{"child_orders":[]},"remark_info":{"buyer_message":""},"address_info":{"self_fetch_info":"","delivery_address":"$AoewsNGl+1VD9672+bw9FEh2c7Y5IZUNEhuaC0bgNxhOIpiTfb/nqh5brKIsQk4A$1$","delivery_postal_code":"","receiver_name":"$7sY1srcEgu1CA8A4NBidUw==$1$","delivery_province":"上海市","delivery_city":"上海市","delivery_district":"虹口区","address_extra":"{\"areaCode\":\"310109\",\"lon\":121.48373990994017,\"lat\":31.2770388059847}","receiver_tel":"$qZX3TFfDc2fpYIDUK4z/kg==$1$"},"pay_info":{"outer_transactions":["4200002024202310265514884693"],"deduction_real_pay":880,"real_payment":"8.80","post_fee":"0.00","deduction_pay":0,"phase_payments":[],"total_fee":"18.80","payment":"8.80","transaction":["2310261145272621530118"]},"buyer_info":{"outer_user_id":"oKEWK60ElonVQMKaq1BawBmkk_mk","buyer_phone":"$qZX3TFfDc2fpYIDUK4z/kg==$1$","yz_open_id":"D0JA1FFB631849460502175744","fans_type":501757,"fans_nickname":"$s8toyute4JQIqLMiuulHDw==$1$","fans_id":17597797951},"orders":[{"is_cross_border":"","outer_item_id":"BYWCCL007","item_type":0,"discount_price":"18.80","goods_date":"","warehouse_code":"","num":1,"oid":"2971104023076667413","goods_snapshot":"https://h5.youzan.com/wscgoods/detail-snapshot?alias=3f5uxdk5g39gui3&pageType=wsc-goods-snapshot&kdtId=141881710&orderNo=E20231026114525045500045&goodsId=2740516946&snapKey=88f8fe42d0b6c14f1d6d501a4433f261&itemId=2971104023076667413","title":"八羿臻选粗陶快客杯一壶一杯茶具套装","fenxiao_payment":"0.00","item_no":"BYWCCL007","buyer_messages":"","root_sku_id":"","is_present":false,"cross_border_trade_mode":"","price":"18.80","sub_order_no":"","total_fee":"18.80","fenxiao_price":"0.00","sale_plan":{"penalty":{},"cancel_rule_time":{}},"alias":"3f5uxdk5g39gui3","payment":"8.80","item_barcode":"","is_pre_sale":"","outer_sku_id":"","sku_unique_code":"274051694614352527624","goods_url":"https://h5.youzan.com/v2/showcase/goods?alias=3f5uxdk5g39gui3","customs_code":"","is_price_calendar":"","item_id":2740516946,"weight":"1000","sku_id":14352527624,"sku_properties_name":"[{\"k\":\"颜色\",\"k_id\":1,\"v\":\"1壶1杯(带盖)+布袋\",\"v_id\":521693500}]","pic_path":"https://img01.yzcdn.cn/upload_files/2023/10/25/FiTRuJ4d7aCTbgL9hG8TY5dg8ce_.png","shop_org_id":"","outer_oid":"","pre_sale_type":"","points_price":"0","sku_no":"","root_item_id":"0","sku_barcode":"","item_props":"[]"}],"source_info":{"is_offline_order":false,"book_key":"51d20487-41b1-44e6-b32b-309513d7fef7","biz_source":"","source":{"platform":"other","wx_entrance":"merchant_xcx"},"order_mark":"wx_shop"},"order_info":{"consign_time":"2023-10-26 15:23:41","order_extra":{"is_from_cart":"false","buyer_name":"$s8toyute4JQIqLMiuulHDw==$1$","force_consignment_mode":"0","is_points_order":"0"},"expired_time":"2023-10-26 12:45:26","type":0,"tid":"E20231026114525045500045","node_kdt_id":141881710,"update_time":"2023-10-26 15:23:41","pay_type_str":"WEIXIN_DAIXIAO","pay_type":10,"team_type":0,"channel_type":0,"created":"2023-10-26 11:45:26","status_str":"已发货","success_time":"","shop_name":"八羿云选-选你所爱","confirm_time":"","pay_time":"2023-10-26 11:45:33","is_retail_order":false,"pay_type_desc":"微信支付","refund_state":0,"root_kdt_id":141881710,"close_type":0,"status":"WAIT_BUYER_CONFIRM_GOODS","express_type":0,"order_tags":{"is_member":true,"is_secured_transactions":true,"is_payed":true}}}},"success":true,"message":"successful"}
用手机打开
收藏 ··· 回复
    千寻   有赞云团队   2023-10-30 | 只看该作者
    您好,下单后如何实现电子发票自动开票功能。您可以参考文档https://doc.youzanyun.com/resource/faq/27034/29004/47342

      Sookie Lin 青铜   2023-10-30 | 只看该作者
      这个API地址:https://doc.youzanyun.com/detail/API/0/3757
      返回的报文信息 和 API接口说明不一致

      千寻   有赞云团队   2023-10-31 | 只看该作者
      您好,您的问题已经受理,会尽快核实并与您同步。

        千寻   有赞云团队   2023-10-31 | 只看该作者
        您好,经核实,因invoice_info是空,在网关转换的时候,对象类型为空,会判定为null,不返回。

        如果Map类型为空,会认为是size为零,不是null

        1跳至
        您需要登录后才可以回帖 登录 | 立即注册

        本版积分规则

        复制链接
        新浪微博
        QQ空间
        微信扫码
        • 回复

        • 评分

        客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

        复制成功