Group Messaging Retrieve WeChat Token APIs

Group Messaging provides APIs to retrieve WeChat access tokens and ticket tokens. This document explains how to use the Retrieve WeChat Token APIs to retrieve the WeChat access token and the WeChat ticket token.

To use the Retrieve WeChat Access Token API and the Retrieve WeChat Ticket Token API, you must supply the WeChat Official Account AppID and AppSecret.

Retrieve WeChat Access Token API

The WeChat access token is required to access the WeChat API. WeChat issues only one access token at a time. If your organization develops an application that issues a new access token from the WeChat, the token stored in Group Messaging is revoked. Therefore, Group Messaging provides the Retrieve WeChat Access Token API to allow your organization to get the WeChat access token used in Group Messaging. In this way, you can have one or more applications that call WeChat at the same time, without blocking Group Messaging access to WeChat.

Retrieve WeChat Ticket Token API

The WeChat ticket token is used by WeChat JS-SDK (sometimes called the jsapi_token). The WeChat JS-SDK is the JavaScript library provided by WeChat for front-end interactions with WeChat server. For example, this token is required for payment transactions when WeChat customers purchase items on your website. The Retrieve WeChat Ticket Token API allows you to get the ticket token used in Group Messaging.