WeChat Pay APIv3 (Direct-Connect Merchant)

WeChat Pay's third-generation REST API for mainland-China direct-connect merchants. Authenticates with merchant API certificates and platform-key signed requests over HTTPS/JSON. Covers JSAPI / Native / App / H5 / Mini Program payments, refunds, bill download, merchant transfers, WeChat Pay Score, vouchers, marketing red packets, profit sharing, consumer complaints, and platform certificate rotation. Replaces the legacy XML-based APIv2.

WeChat Pay APIv3 (Direct-Connect Merchant) is one of 13 APIs that WeChat publishes on the APIs.io network.

Tagged areas include Payments, WeChat Pay, Refunds, Marketing, and Profit Sharing. The published artifact set on APIs.io includes an API reference, API documentation, SDKs, and code examples.

API entry from apis.yml

apis.yml Raw ↑
aid: wechat:wechat-pay-apiv3-direct-merchant
name: WeChat Pay APIv3 (Direct-Connect Merchant)
description: WeChat Pay's third-generation REST API for mainland-China direct-connect merchants. Authenticates
  with merchant API certificates and platform-key signed requests over HTTPS/JSON. Covers JSAPI / Native
  / App / H5 / Mini Program payments, refunds, bill download, merchant transfers, WeChat Pay Score, vouchers,
  marketing red packets, profit sharing, consumer complaints, and platform certificate rotation. Replaces
  the legacy XML-based APIv2.
humanURL: https://pay.weixin.qq.com/wiki/doc/apiv3/en/index.shtml
baseURL: https://api.mch.weixin.qq.com
tags:
- Payments
- WeChat Pay
- Refunds
- Marketing
- Profit Sharing
- Transfers
properties:
- url: https://pay.weixin.qq.com/wiki/doc/apiv3/en/index.shtml
  type: APIReference
- url: https://pay.weixin.qq.com/wiki/doc/apiv3/en/index.shtml
  type: Documentation
- url: https://pay.weixin.qq.com/index.php/core/home/login
  type: Login
- url: https://pay.weixin.qq.com/
  type: Portal
- url: https://github.com/wechatpay-apiv3/wechatpay-java
  type: SDK
- url: https://github.com/wechatpay-apiv3/wechatpay-go
  type: SDK
- url: https://github.com/wechatpay-apiv3/wechatpay-php
  type: SDK
- url: https://github.com/wechatpay-apiv3/wechatpay-postman-script
  type: CodeExamples
- url: https://github.com/wechatpay-apiv3/CertificateDownloader
  type: CLI