Authorisation governs delivery
One-time subscriptions require the user to tap a button in the mini program. Each authorisation allows exactly one message. If the user dismissed the prompt or used up authorisations, nothing sends.
Long-term subscriptions are not open to all categories. Most ordinary business mini programs can only use one-time subscriptions, and the template picker indicates which types are available.
Parameters must match exactly
Template keys look like thing1, time2, amount3. Keys must match the template definition, not your own naming. A missing or empty field fails the call.
Length is capped, often 20 characters for thing fields. Truncate on your side; the platform will not do it for you.
Debug order
Read the returned error code first. It distinguishes a missing template, invalid parameters and a user who never subscribed.
Then check timing. Sending on a page redirect right after payment often races the authorisation. Sending from the server callback triggered by a user tap is the reliable pattern.
FAQ
Can subscription messages be broadcast?
No. Every message needs a matching user authorisation. Sending without one is rejected.
Can users who deleted the mini program receive them?
No. Deleting the mini program invalidates the subscription, and the user must return and authorise again.
Can I create custom templates?
Choose from the public template library; some categories allow custom templates subject to review and field rules.
Related questions
Further reading
- WeChat Pay Merchant Setup Service details
- Debugging WeChat Pay Callbacks: Did the Request Arrive
- What Are the Common API Configuration Errors in Official Account Development? A Checklist Approach
- What to Do When Alipay Merchant Setup Documents Are Rejected? Correction Tips and Document Checklist
- Why WeChat Pay Settlements Get Delayed: Checking Order, Records and Bank Side
Sources & References
The following are public sources. Always check the latest requirements on the official authority or platform page.
