有赞新零售社区

发帖
API使用问题»设置用户为分销员接口不可用

设置用户为分销员接口不可用

066e9aac7153 2018-04-05 1190 浏览 1 评论 | 只看楼主 [打印]
获取分销员list接口可用,但添加用户为分销员报错, 接口: https://open.youzan.com/api/oauthentry/youzan.salesman.account/3.0.0/add
"error_response" => %{
     "code" => 140400200,
     "message" => "shop closed salesman plug-in"



iex(79)> Sale.get_salesman_list(0, 20)
[debug] QUERY OK source="tokens" db=5.7ms queue=0.1ms
SELECT t0.`id`, t0.`ak`, t0.`entity`, t0.`env`, t0.`expired_at`, t0.`extra`, t0.`namespace`, t0.`sk`, t0.`token`, t0.`inserted_at`, t0.`updated_at` FROM `tokens` AS t0 WHERE (((((t0.`ak` = ?) AND (t0.`entity` = ?)) AND (t0.`env` = ?)) AND (t0.`namespace` = ?)) AND (t0.`sk` = ?)) ["6a773244c0dc915b1e", "40565171", "dev", "youzan", "2331353d2096eae028644d1b2e24526a"]
{:ok, %{"response" => %{"accounts" => [], "total_results" => 0}}}
iex(80)> Sale.add_salesman("15881049677")
[debug] QUERY OK source="tokens" db=15.4ms queue=0.1ms
SELECT t0.`id`, t0.`ak`, t0.`entity`, t0.`env`, t0.`expired_at`, t0.`extra`, t0.`namespace`, t0.`sk`, t0.`token`, t0.`inserted_at`, t0.`updated_at` FROM `tokens` AS t0 WHERE (((((t0.`ak` = ?) AND (t0.`entity` = ?)) AND (t0.`env` = ?)) AND (t0.`namespace` = ?)) AND (t0.`sk` = ?)) ["6a773244c0dc915b1e", "40565171", "dev", "youzan", "2331353d2096eae028644d1b2e24526a"]
{:ok,
%{
   "error_response" => %{
     "code" => 140400200,
     "message" => "shop closed salesman plug-in"
   }
}}
iex(81)>



用手机打开
收藏 ··· 回复
    八两   青铜   2018-04-07 | 只看该作者
    您好,这个报错提示店铺到期,建议先购买店铺后,再做测试

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

      本版积分规则

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

      • 评分

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

      复制成功