有赞新零售社区

发帖
API使用问题»订单结算-youzan.ebiz.bill.confirm.4.0.0 接口中返回参数缺失

[API调用-商品/交易] 订单结算-youzan.ebiz.bill.confirm.4.0.0 接口中返回参数缺失

DamonYin 2022-05-18 1516 浏览 8 评论 | 只看楼主 [打印]
应用名称:天真优选-开放平台升级应用               
应用AppId:78327            
ClientId:6bfb4f83b9c4662189         
相关文档地址:文档中心 - 有赞云 (youzanyun.com)

问题描述:订单结算接口youzan.ebiz.bill.confirm.4.0.0
接口中返回参数没有【coupons】优惠券的参数,导致无法正常下单,以前的参数有正常返回,而且账户中也存在优惠券,请问是什么原因导致没有返回【coupons】字段,和负责人变更有无关系        
      
日志:以前有返回【coupons】字段,现在接口中没有该字段显示        
截图/视频:
三方系统:「系统打通」

店铺Id:44137776

店铺名称:天真优选
本帖最后由 DamonYin 于 2022-5-18 13:50 编辑
用手机打开
收藏 ··· 回复
       有赞云团队   2022-05-18 | 只看该作者
    您好,请按照模版提供相关信息:https://bbs.youzan.com/thread-684638-1-1.html,方便定位排查。

      DamonYin 青铜   2022-05-18 | 只看该作者
      {
                      "result": "SUCCESS",
                      "result_msg": "OK",
                      "response": {
                              "response": {
                                      "redirect_config": {
                                              "team_locked": false,
                                              "random_buy": false,
                                              "order_created": false,
                                              "order_canceled": false,
                                              "order_paid": false,
                                              "timeout": false,
                                              "peerpay": false
                                      },
                                      "shop_item": {
                                              "receive_msg": false,
                                              "has_deposit_pre_sale_goods": false,
                                              "has_virtual_goods": false,
                                              "virtual": 0,
                                              "pay_value_cards": [],
                                              "activity_names": [
                                                      "大客户"
                                              ],
                                              "forbid_wx_address": false,
                                              "has_book_goods": true,
                                              "has_group_goods": false,
                                              "has_hotel_goods": false,
                                              "kdt_id": 44137776,
                                              "has_freight_insurance": false,
                                              "unavailable_pay_value_cards": [],
                                              "activity_type": 1,
                                              "forbid_coupon": false,
                                              "order_type": 0,
                                              "order_items": [
                                                      {
                                                              "presale_end_time": 0,
                                                              "virtual": false,
                                                              "presale_start_time_after_pay": 15,
                                                              "num": 1,
                                                              "stock_num": 1586,
                                                              "title": "植护21卷无芯厕纸纸巾学生宿舍酒店宝宝手纸卷纸家用实惠装整箱",
                                                              "delivery_start_time": 0,
                                                              "item_biz_mark_code": "000000000000",
                                                              "deliver_times": 0,
                                                              "price": 990,
                                                              "quota_num": 0,
                                                              "activity_type": 0,
                                                              "activity_id": 0,
                                                              "group_ids": [
                                                                      121408172
                                                              ],
                                                              "show_virtual_ticket_refunding_rule": false,
                                                              "alias": "1ya935pck8v74hl",
                                                              "sku": "[]",
                                                              "from_tmp_added": false,
                                                              "is_use_goods_exchange_coupon": false,
                                                              "pay_price": 990,
                                                              "item_fission_ticket_num": 0,
                                                              "presale_balance_due_start_time": 0,
                                                              "delivery_end_time": 0,
                                                              "item_id": 100000,
                                                              "presale_balance_due_end_time": 0,
                                                              "goods_id": 1303111228,
                                                              "sku_id": 37788530,
                                                              "presale_start_time": 0,
                                                              "is_installment": false,
                                                              "presale_type": 0,
                                                              "presale_time_type": 1,
                                                              "presale": true,
                                                              "postage": 0,
                                                              "points_price": 0,
                                                              "final_total_price": 990,
                                                              "start_sale_num": 1,
                                                              "img_url": "https://img01.yzcdn.cn/upload_files/2021/11/12/FiHz7NyEDAjNiEnwVzJMQkTdWcm4.jpg",
                                                              "delivery_template_id": 1139551,
                                                              "goods_type": 10,
                                                              "present": false,
                                                              "properties": []
                                                      }
                                              ],
                                              "pay_gift_cards": [],
                                              "multi_phase_payment": false,
                                              "can_self_fetch": false,
                                              "shop_name": "天真优选",
                                              "unavailable_pay_gift_cards": [],
                                              "unavailable_items": [],
                                              "postage": {
                                                      "postage_items": [
                                                              {
                                                                      "postage": 0,
                                                                      "postage_title": "快递",
                                                                      "available": false,
                                                                      "postage_desc": "由商家选择合作快递为您服务",
                                                                      "express_type": 0
                                                              }
                                                      ],
                                                      "current_express_type": 0
                                              },
                                              "has_present_goods": false,
                                              "has_tax_class_code_goods": false,
                                              "can_use_self_fetch_time": false,
                                              "has_fenxiao_goods": true,
                                              "order_payment": {
                                                      "postage_tax": 0,
                                                      "order_promotions": [],
                                                      "goods_tax": 0,
                                                      "real_pay": 990,
                                                      "has_extra_price": false,
                                                      "item_pay": 990,
                                                      "pay": 990,
                                                      "value_card_pay_price": 0,
                                                      "decrease": 0,
                                                      "origin_postage": 0,
                                                      "postage": 0,
                                                      "promotions": [],
                                                      "origin_item_price": 990,
                                                      "gift_card_pay_price": 0,
                                                      "origin_decrease": 0,
                                                      "show_tax": false,
                                                      "change_price": 0
                                              },
                                              "activities": [],
                                              "delivery_check": {
                                                      "enable_high_position_version": false,
                                                      "local_delivery_start_fee": 0,
                                                      "goods_id_local_delivery_enable_map": [],
                                                      "goods_id_self_fetch_enable_map": [],
                                                      "some_goods_express_reachable": false,
                                                      "reach_local_delivery_price_threshold": false,
                                                      "local_delivery_reachable": false,
                                                      "local_delivery_time_error": false,
                                                      "prepare_time": 0,
                                                      "goods_id_normal_express_enable_map": [],
                                                      "supported_logistics_type_codes": [
                                                              0
                                                      ],
                                                      "all_goods_express_reachable": false
                                              },
                                              "shop_type": 0,
                                              "need_id_card_photo": false,
                                              "has_oversea_goods": false
                                      },
                                      "display_config": {
                                              "is_secured_trans_actions": true,
                                              "open_multi_store_switch": true,
                                              "show_gift_cards": false,
                                              "address_empty": true,
                                              "match_offline": false,
                                              "forbid_wx_address": false,
                                              "show_local_delivery_time": false,
                                              "show_old_pay_cards_component": false,
                                              "forbid_pay": false,
                                              "show_add_on_item": false,
                                              "show_local_delivery_scope": false,
                                              "local_delivery_position": 0,
                                              "plus_buy_component": {
                                                      "activity_id": 0,
                                                      "show_plus_buy_component": false
                                              },
                                              "forbid_coupon": false,
                                              "pay_prompt": "",
                                              "open_self_fetch_switch": true,
                                              "show_local_delivery_tab": false,
                                              "yz_guarantee": true,
                                              "show_express_tab": true,
                                              "show_address_tab": true,
                                              "use_external_asset": false,
                                              "can_self_fetch": false,
                                              "overseas_address": false,
                                              "can_use_self_fetch_time": false,
                                              "show_pre_pay_cards": false,
                                              "async_order": false,
                                              "prompt": ""
                                      }
                              }
                      },
                      "url": "youzan.ebiz.bill.confirm/4.0.0"
              }
      }

         有赞云团队   2022-05-19 | 只看该作者
      您好,这边日志查看您使用的是carmen.youzan.ebiz.bill.confirm.4.0.0接口,目前该接口已下线了,建议您更换youzan.ebiz.bill.confirm.4.0.0接口:https://doc.youzanyun.com/detail/API/0/957

         有赞云团队   2022-05-19 | 只看该作者
      您好,点击截图里面的立即定制。

        smile   黄金   2022-05-21 | 只看该作者
        您好,由于您之前是使用的卡门接口已经不在维护了,目前给您挂载【https://doc.youzanyun.com/detail/API/0/957】这个接口的能力包。但是有效期只能有1年,1年过后需要您按照我们新的规则进行对接,感谢您的理解与支持

        DamonYin 青铜   2022-05-21 | 只看该作者
        {
                        "result": "SUCCESS",
                        "result_msg": "OK",
                        "response": {
                                "gw_err_resp": {
                                        "trace_id": "yz7-0ad26a54-1653042980222-103497",
                                        "err_msg": "非法的API",
                                        "err_code": 4005
                                }
                        },
                        "url": "youzan.ebiz.bill.confirm/4.0.0"
                }

          smile   黄金   2022-05-23 | 只看该作者
          您好,如果您想使用新的接口的话,需要按照有赞云的对接方式进行对接。
          可以参考文档:https://doc.youzanyun.com/detail/API/0/957

          目前看到您的请求为 http://open.youzanyun.com/api/youzan.ebiz.bill/4.0.0/confirm 显然是不对的。

          卡门老接口均不再维护,需要您尽快迁移到有赞云,对接新的接口
          • DamonYin 2022-05-23
            请问“目前给您挂载【https://doc.youzanyun.com/detail/API/0/957】这个接口的能力包。但是有效期只能有1年”这个挂载能力包,不是可以直接使用https://open.youzanyun.com/api/youzan.ebiz.bill.confirm/4.0.0这个接口吗?
          • smile 回复 DamonYin 2022-05-23
            您好,需要您先迁移到有赞云平台。
            相关公告:https://doc.youzanyun.com/resource/doc/3605/3605


          DamonYin 青铜   2022-05-23 | 只看该作者
          老师您好,请问“目前给您挂载【https://doc.youzanyun.com/detail/API/0/957】这个接口的能力包。但是有效期只能有1年,1年过后需要您按照我们新的规则进行对接,感谢您的理解与支持”这个挂载的能力包是什么意思,是否是能以正常使用这个能力包中的所有接口,目前我使用https://doc.youzanyun.com/detail/API/0/957 接口显示的无权限
          • 2022-05-24
            您好,【是否是能以正常使用这个能力包中的所有接口】:是的
            【接口显示的无权限】:参考文档:https://doc.youzanyun.com/resource/doc/4030/4030
            如果还是没有权限,请给下调用接口无权限的trace_id.

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

          本版积分规则

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

          • 评分

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

          复制成功