Latest update time:2021.08.18 Release notes
When the signing relationship between the merchant and the user is wrong or the merchant actively requests terminating the contract previously signed with the user, this interface can be called to terminate the contract. At present, the Auto-debit contract ID can be used to complete the termination at the merchant side. Moreover, the user can initiate termination through a WeChat client. The termination result will be sent to the merchant side based on Termination Callback Address.
• When the merchant applies for the deduction permission to obtain a template ID, it needs to provide Termination Callback Address for WeChat Pay to complete configuration. When the termination relationship occurs, the WeChat server will send the termination information to this address, that is, the content of termination notification is consistent with that of the notification after signing.
Request Url:https://apihk.mch.weixin.qq.com/v3/global/papay/contracts/{contract_id}/terminate
Request method:GET
API rules: https://wechatpay-api.gitbook.io/wechatpay-api-v3
Applicable object:Common modeInstitutional mode
path parameter is a path parameter.
query parameter needs to be passed in the request URL.
body parameter needs to be passed in the request JSON.
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
App ID | appid | string[1,32] | Yes | body Appid bound to the merchant ID Note: Only forCommon mode Example:wxcbda96de0b165486 |
Sub-merchant ID | sub_mchid | string[1,32] | Yes | body Sub-merchant ID allocated by WeChat Pay Note: Only forInstitutional mode Example:10000097 |
App ID of the service provider | sp_appid | string[1,32] | Yes | body Appid bound to the service provider Note: Only forInstitutional mode Example:wxcbda96de0b165486 |
App ID of the sub-merchant | sub_appid | string[1,32] | No | body Appid bound to the sub-merchant ID for initiating signing Note: Only forInstitutional mode Example:wxcbda96de0b165484 |
Auto-debit contract ID | contract_id | string[1,64] | Yes | path Auto-debit contract ID returned by WeChat after successful signing Example:100005698 |
Termination note | termination_note | string[1,256] | Yes | body Note about the cause of termination, e.g., if the signing information is in error, a new contract must be signed Example:Cause of termination |
POST
https://apihk.mch.weixin.qq.com/v3/global/papay/contracts/100005698/terminate
{
"appid": "wxcbda96de0b165486",
"termination_note": "Cause of termination"
}
No data (the HTTP status code is 204).
Customer Service Tel
Business Development
9:00-18:00
Monday-Friday GMT+8
Technical Support
WeChat Pay Global
ICP证