有赞新零售社区

发帖
API使用问题»youzan.retail.open.deliveryorder.query.3.0.0参数问题

[API调用-其它] youzan.retail.open.deliveryorder.query.3.0.0参数问题

J 03-05 569 浏览 10 评论 | 只看楼主 [打印]
背景:我们订购的是有赞连锁零售,有一个总部和很多个分店。

现在第3方系统需要对接我们其中某一个分店读取我们的销售数据。 请问读取某个分店数据是不是只要提供分店ID就行?对方一直说要提供总部ID,是不是给了他们总部ID,他们就能读取到所有门店的数据了?

用手机打开
收藏 ··· 回复
    youzan.retail.open.deliveryorder.query.3.0.0这接口必须要要总部的token,用了总部的token以后可以获取该接口对应各个店铺数据

    有替代接口,用分店的token:
    1.根据订单查询发货单:https://doc.youzanyun.com/detail/API/0/1460
    2,根据发货单号查询明细:https://doc.youzanyun.com/detail/API/0/224
    • J 03-06
      对方回答说token没问题,但是就是获取不到订单数据(有赞该门店有建一笔订单测试数据),用的接口是youzan.retail.open.deliveryorder.query.3.0.0,他问是不是需要总部编号才行。只给他们总店id和要对接的分店id,他们没办法获取其他门店的数据吧?
    • J 回复 J 03-06
      现在是只给了他们分店ID,总部iD是没有给的,对方说现在没获取到门店数据,就是因为我们没有给他们总部ID。我们是非技术人员,不太懂这个,就想问下这个总部ID能不能给?
    • 风信子 回复 J 03-06
      接口入参查看链接:https://doc.youzanyun.com/detail/API/0/230
      总部店铺id不需要入参,但是接口需要总部的token,获取总部的token需要总部店铺id
      用了总部的token以后可以获取该店铺对应各个分店发货单数据,不需要分店的店铺id也能查各个店铺的数据
    • J 回复 风信子 03-06
      那有只获取分店数据的接口吗,是不是只要分店token就行了。

    • 风信子 回复 J 03-06
      这个接口只能使用总部的token,不能使用分店的token

      有替代接口,用分店的token:
      1.根据订单查询发货单:https://doc.youzanyun.com/detail/API/0/1460
      2,根据发货单号查询明细:https://doc.youzanyun.com/detail/API/0/224
    • J 回复 风信子 03-06
      token是使用Client_Id和Client_Secret申请下来的吗,对方说我们是用总部账号申请下来的这两个参数,所以只能获取到总部token,是这样不
    • 风信子 回复 J 03-07
      获取token的方法:https://doc.youzanyun.com/resource/doc/3031
      需要入参client_id、client_secret以及对应的店铺id,才能获取对应店铺的token

      一个应用可以跟总部以及对应分店进行绑定,不需要重新创建应用,应用跟分店绑定完成以后,client_id、client_secret加上分店的店铺id获取token
    • J 回复 风信子 03-06
      他们用的说用的是总部token,但获取不到门店数据。2024-03-06 13:42:50 [POS] 读取租户接口数据
      2024-03-06 11:59:17 [POS] 读取租户接口数据
      2024-03-06 11:59:17 [SYS] 租户ID:YOUZAN
      2024-03-06 11:59:17 [POS] 数据重读天数(DbBackDay):1
      2024-03-06 11:59:17 [SYS] 上传数据加载:SalesTransLiteV61
      2024-03-06 11:59:17 [SYS] 备份线程启动
      2024-03-06 11:59:18 [SYS] 数据上传线程启动
      2024-03-06 11:59:18 [POS] 获取有赞云Token成功
      2024-03-06 11:59:18 [POS] 有赞云Token接口返回json:{"success":true,"code":200,"data":{"expires":1709881195000,"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":"240708c3131297da21c5029e4cf49cf","authority_id":"137537634"},"message":null}
      2024-03-06 11:59:19 [POS] 没有新记录
    • 风信子 回复 J 03-07
      可以的,我都已经测试
    加载更多

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

    本版积分规则

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

    • 评分

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

    复制成功