curl -k
"https://api.weixin.qq.com/marketing/user_actions/add?version=v1.0&access_token=<ACCESS_
TOKEN>"
-d '{
"actions":[
{
"user_action_set_id":"<USER_ACTION_SET_ID>",
"url":"<URL>",
"action_time":1513077790,
"action_type":"COMPLETE_ORDER",
"trace":{
"click_id":"<CLICK_ID>"
},
"action_param":{
"value": 40
}
}
]
}'
-H "Content-Type:application/json"
使用以上方式调用微信接口的时候会报一个错
{"errcode":900351002,"errmsg":"JSON string is malformed."}
解决方式就是
action_time字段不传参数,此时微信会自己设置一个服务器时间。