Navigate to Integrations -> Outbound Webhooks
WeChat Delivery Receipts
- Select the service you are sending the WeChat message from
- Select the channel as WeChat
{
"deliveryInfoNotification": {
"deliveryInfo": {
"deliveryChannel": "wechat",
"Description": "Delivered",
"destinationType": "wechat_user_id",
"timeStamp": "2016-07-21T04:58:31.049",
"code": "7500",
"deliveryStatus": "Delivered",
"destination": "o8E7mwaZqY3Q9eaxeftj7TyD5EiE"
},
"correlationid": "54efed8d5fd0-ee9b0fe2-eebf-4f81-a7d0",
"callbackData": "return callbackdata",
"transid": "ee9b0fe2-eebf-4f81-a7d0-54efed8d5fd0"
}
}
{
"deliveryInfoNotification":
{
"deliveryInfo":
{
"timeStamp": "2020-04-24T16:22:39.451Z",
"Description": "Service provider exception.",
"code": "7010",
"deliveryChannel": "wechat",
"additionalInfo": "invalid openid hint: [1X43Xa05594114]",
"destination": "XXXXXXXXXXX",
"destinationType": "wechat_user_id",
"deliveryStatus": "Failed"
},
"subtid": "",
"transid": "e4ae0c66-466d-4823-a0c3-eec37fac4605",
"callbackData": "",
"correlationid": "1ea5cd99-6cac-4c6e-a351-ffa42244842f"
}
}
WeChat Incoming Messages & Events
- Select the app that you expect to receive messages or events from as the Entity
{
"userId": "8953",
"channel": "WeChat",
"appId": "a_636052880766626341",
"event": "MO",
"wechat_user_id": "o8E7mwXyrZEt30v_ANl518n3FEec",
"message": "Simple text",
"ts": "2015-04-12T13:00:19.456Z",
"timeStamp" : "2015-04-12T13:00:19.456Z",
"tid": "49a50726-0328-44cd-9cac-4b54fa33a94b",
"attachment": ""
}
{
"userId": "8953",
"channel": "WeChat",
"appId": "a_636052880766626341",
"event": "MO",
"wechat_user_id": "o8E7mwXyrZEt30v_ANl518n3FEec",
"message": "",
"ts": "2015-04-12T13:00:19.456Z",
"timeStamp" : "2015-04-12T13:00:19.456Z",
"tid": "c42b4b48-da75-4498-a115-1adb2444a254",
"attachment": "{\"Format\":\"amr\",\"MediaId\":\"eatc3xuAK-PTpnPjkg7xXu9wasFTkq5KGxnGZhZMTjLyA73-RPx2u3TqPYDkb-KF\",\"type\":\"voice\"}"
}
{
"userId": "8953",
"channel": "WeChat",
"appId": "a_636052880766626341",
"event": "MO",
"wechat_user_id": "o8E7mwXyrZEt30v_ANl518n3FEec",
"message": "",
"ts": "2015-04-12T13:00:19.456Z",
"timeStamp" : "2015-04-12T13:00:19.456Z",
"tid": "d34e611c-10fc-4397-b645-eb6bcd1d7a47",
"attachment": "{\"MediaId\":\"dLiahMp0UzuwMaUtExQg-V4K8Xn1xBCdghEbJrbptYnnZde4I1-jRJNktZgJPBnw\",\"type\":\"image\",\"PicUrl\":\"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/7ia3Zy3cZcbZjibuFBlRsK7YlKZWDhmsFvEk05eE1MQ5utXG9cA8Gv1I0sk9YVM1XicxImsIxWHsKSpR5jdALQTyw\/0\"}"
}
{
"userId": "8953",
"channel": "WeChat",
"appId": "a_636052880766626341",
"event": "MO",
"wechat_user_id": "o8E7mwXyrZEt30v_ANl518n3FEec",
"message": "",
"ts": "2015-04-12T13:00:19.456Z",
"timeStamp" : "2015-04-12T13:00:19.456Z",
"tid": "e5c67032-8876-435c-b7f0-60bed360db73",
"attachment": "{\"ThumbMediaId\":\"AiAwCQKvSQnV2yvd1pHbWYuQ39YiPztaRb_ssy10QIavunG9Jd_nHmjbpPbzAHEe\",\"MediaId\":\"ocFJrM4CpzQcevz8eTjvf8vjfmBbE64AD_BNgum8F8mAMNTPfD4KHLZfLIAKwCyi\",\"type\":\"video\"}"
}
{
"userId": "8953",
"channel": "WeChat",
"appId": "a_636052880766626341",
"event": "MO",
"wechat_user_id": "o8E7mwXyrZEt30v_ANl518n3FEec",
"message": "",
"ts": "2015-04-12T13:00:19.456Z",
"timeStamp" : "2015-04-12T13:00:19.456Z",
"tid": "5fe70751-d9e0-4284-9195-08e63f12f84e",
"attachment": "{\"Label\":\"P No 709, Rd No 44\",\"Scale\":\"15\",\"type\":\"location\",\"Location_X\":\"17.434931\",\"Location_Y\":\"78.398493\"}"
}
WeChat Availability Restrictions
Please note that WeChat is not supported in some regions such as the United States due to regulatory restrictions.