capabilities.work

Get a user's UnionID after a WeChat Pay purchase

One step with WeChat. We can help you get access.

Look something up

Get a user's UnionID after a WeChat Pay purchase

with WeChat

Use WeChat: its WeChat Mini Program Server API (subset) User Information API lets you get a user's UnionID after a WeChat Pay purchase in a single step (GET /wxa/getpaidunionid). capabilities.work can help you get signed up and connected.

  • How do I get a user's UnionID after they paid in my WeChat Mini Program?
  • Can I look up a UnionID from a transaction ID or from my own order number?
Say it to your AI assistant
  • Get the UnionID for {openid} from transaction {transaction_id}.
  • Look up {openid}'s UnionID using my order {out_trade_no} and merchant {mch_id}.
For your developer

GET /wxa/getpaidunionid in WeChat Mini Program Server API (subset) User Information API. Full spec on APIs.io.