有赞新零售社区

发帖
API使用问题»无法获取到店铺销售信息

[API调用-美业] 无法获取到店铺销售信息

从一而终 2022-06-06 1762 浏览 2 评论 | 只看楼主 [打印]
根据应用生成的配置信息,接口是正常通的,但是无法获取到销售信息,


用手机打开
收藏 ··· 回复
    52   青铜   2022-06-06 | 只看该作者
    开发者你好,

    从图中能够看出
    1. 调用获取access_token接口正常返回
    2. 调用 订单列表接口 正常返回

    根据你的描述,你应该是没获取到你希望的订单数据

    所以请跟帖提供:
    1. 完整的接口调用参数,包含http body部分,即:JSON数据
    2. 完整的接口返回内容

    请以文字方式提供日志,如果截图,请提供完整截图
    每周一/三/五 回复美业相关API/消息调用问题。

    美业API优先使用4.0.0及以上版本
    • 从一而终 2022-06-08
      有赞接口(https://open.youzanyun.com/auth/token)返回:{"success":true,"code":200,"data":{"expires":1655083770289,"scope":"item item_advanced item_super item_category item_category_advanced item_category_super trade trade_super trading_setting_advanced user user_advanced account_advanced utility utility_advanced utility_super shop_super statistics_advanced logistics coupon_advanced reward_advanced present_advanced wish_advanced peerpay_advanced gift_advanced crm_advanced fenxiao_advanced pay_advanced union_advanced wxd_app aixuedai_app oauth_advanced account_super shop weixin_advanced oauth_super shop_compatible feature_advanced pay_qrcode wsc_app store mars trade_virtual coupon pf nine bbs offline notice_center store_api_normal youren courier points_store time_limited_discount salesman seller_data_center cross_boarder niece multi_store reviews wechat_program_mars weapp_wsc open_market wm app_sdk dzt_crm union_pay pay_trans cy buyer_cart buyer_bill buyer_trade buyer_refund points storage pay_fund_channel meeting cash retail ka_customization panama beauty silently_create_account trade-delivery content_delivery trade_selffetch retail_goods retail_headquater retail_trade beauty_partner spotlight h5_resource_accelerator retail_store dsp_api app_engine oa_api retail-ump retail-peripheral retail-scrm retail-pay retail-data e_commerce_app buyer_address new_wxd_app sharing_tech_mobile seller_refund trade_invoice_platform customer electronic_invoice ebiz-owl stored_value_card gift_card beauty_staff tag beauty_item beauty_appointment beauty_member beauty_order beauty_cashier beauty_stock beauty_shop sougou cloud_api cms extension_analysis business_profile shop_advanced mei_promoter item_hotel item_standard circle selffetchcode virtualticket tags trade_advanced retail_product retail_stock retail_shop retail_supplier supplier data stored_value_card_operation retail_finance general_data level_membership project pay-customs-declaration account_import retail_permission multi_precard pay-gateway open_education_curriculum open_education_line open_education_customer open_education_student open_education_classroom open_education_class open_education_schedule open_education_order open_education_signin open_education_order open_tickets open_education_message open_education_column open_education_content open_education_broadcast rds迁移 open_beauty_service_log open_beauty_work_order open_fenxiao open_fenxiao_trade fin-consumerfin-prod 测试分组删除 open_education_order pay-gateway pay-login pay-ucashier retail_tag retail_tag retail_user retail_logistics retail_virtualcode retail_crossborder retail_reviews retail_reviews retail_crm retail_giftcard retail_address retail_scrm_customer retail_valuecard retail_scrm_tag retail_virtualticket retail_user retail_growth appstore_data retail_pay showcase_api MicroPageAPI open_beauty_verification open_education_coursegroup IoT iot-printer open_msg test open_robot open_clue_manage mei_open_partner material-callback enable_im crm_api transfer-portal youzan_cloud_api retail_peripheral mei_open_ka open_youzan_mcn yunying retail_finance open_isv open_bill data_center callback retail_store retail_ump retail_trade retail_SupplyChain open_trade_fenxiao pay","access_token":"25322c5b5a4eb4623147b6a6d02a07c","authority_id":"90487530"},"message":null}

      有赞接口(https://open.youzanyun.com/api/youzan.mei.order.list/4.0.0?access_token=25322c5b5a4eb4623147b6a6d02a07c)返回:{"trace_id":"yz7-0a34f817-1654478970738-663905","code":200,"success":true,"paginator":{"total_count":0,"page_no":1,"page_size":20},"message":"successful","items":[]}
    • 从一而终 2022-06-08
      麻烦看一下这个ID是否有交易产生,还有,授权店铺的时候是由总部授权的,而我们获取的是分店的销售数据,是否有影响。
    • 52 回复 从一而终 2022-06-08
      1. 授权总部ID:90487530  - 不存在问题,授权是正常的

      2. 其次
      接口名称:youzan.mei.order.list.4.0.0

      入参:
      {
        "page_no": 1,
        "page_size": 20
      }

      返回是有数据的,因为涉及到订单数据,此处不贴出业务数据

      部分截取返回为:
        "trace_id": "yz7-0ad26944-1654655187235-653377",
        "code": 200,
        "success": true,
        "paginator": {
          "total_count": 128747,
          "page_no": 1,
          "page_size": 20
        },


      3. 建议

      检查你 youzan.mei.order.list/4.0.0 接口调用的 <#入参#>,

      如果只想查询某一个门店,可以传参比如:
      {
        "page_no": 1,
        "page_size": 20,
        "kdt_id":90488118
      }


    52   青铜   2022-06-08 | 只看该作者
    另外你上传商场数据,且用订单列表离线获取数据,建议你做好订单的时间戳+订单号记录,否则会出现重复记录。
    每周一/三/五 回复美业相关API/消息调用问题。

    美业API优先使用4.0.0及以上版本

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

      本版积分规则

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

      • 评分

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

      复制成功