收藏
回答

已进行受众数据授权,「转化跟踪的回传数据」 接口返回 900351001

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug https://api.weixin.qq.com/marketing/user_actions/add 工具 7.0.13 2.11.1

在调试「小游戏-Open MKT API」的过程中,已经按照「授权操作流程」进行授权(甚至进行了双向授权)。然而接口一直返回 {"errcode":900351001,"errmsg":"wechat open id fetch error"}。

调用方式如下(敏感数据已替换):

curl -v -XPOST \
  https://api.weixin.qq.com/marketing/user_actions/add?version=v1.0&access_token=XXXXXXXXX \
  -H"content-type: application/json" \
  -d'
  {
    "actions": [
      {
        "action_param": {
          "claim_type": 0,
          "source": "Web",
          "value": 1
        },
        "action_type": "PURCHASE",
        "url": "http://www.qq.com",
        "user_id": {
          "wechat_app_id": "<被投放小游戏 AppId>",
          "wechat_openid": "<被投放小游戏 OpenId>"
        }
      }
    ],
    "user_action_set_id": 111046XXXX
  }'

结果:

> POST /marketing/user_actions/add?version=v1.0&access_token=XXXXXX HTTP/1.1
> Host: api.weixin.qq.com
> User-Agent: curl/7.64.1
> Accept: */*
> content-type: application/json
> Content-Length: 251
>
* upload completely sent off: 251 out of 251 bytes

< HTTP/1.1 200 OK
< Connection: keep-alive
< Content-Type: application/json;charset=utf-8
< Date: Mon, 25 May 2020 15:29:42 GMT
< X-TSA-Trace-Id: 081f0086439e10fd85a6a2fcbc7c78d6
< Server: nginx
< Content-Length: 59
<
* Connection #0 to host api.weixin.qq.com left intact
{"errcode":900351001,"errmsg":"wechat open id fetch error"}* Closing connection 0




回答关注问题邀请回答
收藏
登录 后发表内容
问题标签