查询子商户管控情况
更新时间:2025.09.15服务商查询子商户的管控情况。调用API必须经过商户API验签、签名
接口说明
支持商户:【普通服务商】
请求方式:【GET】/v3/mch-operation-manage/merchant-limitations/sub-mchid/{sub_mchid}
请求域名:【主域名】https://api.mch.weixin.qq.com 使用该域名将访问就近的接入点
【备域名】https://api2.mch.weixin.qq.com 使用该域名将访问异地的接入点 ,指引点击查看
请求参数
Header HTTP头参数
Authorization 必填 string
请参考签名认证生成认证信息
Accept 必填 string
请设置为application/json
path 路径参数
sub_mchid 必填 string(32)
【子商户号】 子商户的商户号
请求示例
GET
1curl -X GET \ 2 https://api.mch.weixin.qq.com/v3/mch-operation-manage/merchant-limitations/sub-mchid/123000110 \ 3 -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \ 4 -H "Accept: application/json" 5
需配合微信支付工具库 WXPayUtility 使用,请参考Java
1package com.java.demo; 2 3import com.java.utils.WXPayUtility; // 引用微信支付工具库,参考:https://pay.weixin.qq.com/doc/v3/partner/4014985777 4 5import com.google.gson.annotations.SerializedName; 6import com.google.gson.annotations.Expose; 7import okhttp3.MediaType; 8import okhttp3.OkHttpClient; 9import okhttp3.Request; 10import okhttp3.RequestBody; 11import okhttp3.Response; 12 13import java.io.IOException; 14import java.io.UncheckedIOException; 15import java.security.PrivateKey; 16import java.security.PublicKey; 17import java.util.ArrayList; 18import java.util.HashMap; 19import java.util.List; 20import java.util.Map; 21 22/** 23 * 查询子商户管控情况 24 */ 25public class QuerySubMchLimitation { 26 private static String HOST = "https://api.mch.weixin.qq.com"; 27 private static String METHOD = "GET"; 28 private static String PATH = "/v3/mch-operation-manage/merchant-limitations/sub-mchid/{sub_mchid}"; 29 30 public static void main(String[] args) { 31 // TODO: 请准备商户开发必要参数,参考:https://pay.weixin.qq.com/doc/v3/partner/4013080340 32 QuerySubMchLimitation client = new QuerySubMchLimitation( 33 "19xxxxxxxx", // 商户号,是由微信支付系统生成并分配给每个商户的唯一标识符,商户号获取方式参考 https://pay.weixin.qq.com/doc/v3/partner/4013080340 34 "1DDE55AD98Exxxxxxxxxx", // 商户API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013058924 35 "/path/to/apiclient_key.pem", // 商户API证书私钥文件路径,本地文件路径 36 "PUB_KEY_ID_xxxxxxxxxxxxx", // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013038589 37 "/path/to/wxp_pub.pem" // 微信支付公钥文件路径,本地文件路径 38 ); 39 40 QuerySubMchLimitationRequest request = new QuerySubMchLimitationRequest(); 41 request.subMchid = "123000110"; 42 try { 43 MchLimitation response = client.run(request); 44 // TODO: 请求成功,继续业务逻辑 45 System.out.println(response); 46 } catch (WXPayUtility.ApiException e) { 47 // TODO: 请求失败,根据状态码执行不同的逻辑 48 e.printStackTrace(); 49 } 50 } 51 52 public MchLimitation run(QuerySubMchLimitationRequest request) { 53 String uri = PATH; 54 uri = uri.replace("{sub_mchid}", WXPayUtility.urlEncode(request.subMchid)); 55 56 Request.Builder reqBuilder = new Request.Builder().url(HOST + uri); 57 reqBuilder.addHeader("Accept", "application/json"); 58 reqBuilder.addHeader("Wechatpay-Serial", wechatPayPublicKeyId); 59 reqBuilder.addHeader("Authorization", WXPayUtility.buildAuthorization(mchid, certificateSerialNo, privateKey, METHOD, uri, null)); 60 reqBuilder.method(METHOD, null); 61 Request httpRequest = reqBuilder.build(); 62 63 // 发送HTTP请求 64 OkHttpClient client = new OkHttpClient.Builder().build(); 65 try (Response httpResponse = client.newCall(httpRequest).execute()) { 66 String respBody = WXPayUtility.extractBody(httpResponse); 67 if (httpResponse.code() >= 200 && httpResponse.code() < 300) { 68 // 2XX 成功,验证应答签名 69 WXPayUtility.validateResponse(this.wechatPayPublicKeyId, this.wechatPayPublicKey, 70 httpResponse.headers(), respBody); 71 72 // 从HTTP应答报文构建返回数据 73 return WXPayUtility.fromJson(respBody, MchLimitation.class); 74 } else { 75 throw new WXPayUtility.ApiException(httpResponse.code(), respBody, httpResponse.headers()); 76 } 77 } catch (IOException e) { 78 throw new UncheckedIOException("Sending request to " + uri + " failed.", e); 79 } 80 } 81 82 private final String mchid; 83 private final String certificateSerialNo; 84 private final PrivateKey privateKey; 85 private final String wechatPayPublicKeyId; 86 private final PublicKey wechatPayPublicKey; 87 88 public QuerySubMchLimitation(String mchid, String certificateSerialNo, String privateKeyFilePath, String wechatPayPublicKeyId, String wechatPayPublicKeyFilePath) { 89 this.mchid = mchid; 90 this.certificateSerialNo = certificateSerialNo; 91 this.privateKey = WXPayUtility.loadPrivateKeyFromPath(privateKeyFilePath); 92 this.wechatPayPublicKeyId = wechatPayPublicKeyId; 93 this.wechatPayPublicKey = WXPayUtility.loadPublicKeyFromPath(wechatPayPublicKeyFilePath); 94 } 95 96 public static class QuerySubMchLimitationRequest { 97 @SerializedName("sub_mchid") 98 @Expose(serialize = false) 99 public String subMchid; 100 } 101 102 public static class MchLimitation { 103 @SerializedName("mchid") 104 public String mchid; 105 106 @SerializedName("limited_functions") 107 public List<EnumTypeFunctionLimitation> limitedFunctions; 108 109 @SerializedName("other_limited_functions") 110 public String otherLimitedFunctions; 111 112 @SerializedName("recovery_specifications") 113 public List<MchLimitationReasonAndRecoverWay> recoverySpecifications; 114 } 115 116 public enum EnumTypeFunctionLimitation { 117 @SerializedName("NO_TRANSACTION_AND_RECHARGE") 118 NO_TRANSACTION_AND_RECHARGE, 119 @SerializedName("NO_PAYMENT") 120 NO_PAYMENT, 121 @SerializedName("NO_WITHDRAWAL") 122 NO_WITHDRAWAL, 123 @SerializedName("NO_REFUND") 124 NO_REFUND, 125 @SerializedName("NO_TRANSACTION") 126 NO_TRANSACTION, 127 @SerializedName("NO_PROFIT_SHARING") 128 NO_PROFIT_SHARING, 129 @SerializedName("NO_PAYMENT_POINT_COMPLETE_ORDER") 130 NO_PAYMENT_POINT_COMPLETE_ORDER 131 } 132 133 public static class MchLimitationReasonAndRecoverWay { 134 @SerializedName("limitation_case_id") 135 public String limitationCaseId; 136 137 @SerializedName("limitation_reason_type") 138 public EnumTypeLimitationReason limitationReasonType; 139 140 @SerializedName("limitation_reason") 141 public String limitationReason; 142 143 @SerializedName("limitation_reason_describe") 144 public String limitationReasonDescribe; 145 146 @SerializedName("relate_limitations") 147 public List<EnumTypeFunctionLimitation> relateLimitations; 148 149 @SerializedName("other_relate_limitations") 150 public String otherRelateLimitations; 151 152 @SerializedName("recover_way") 153 public EnumTypeRecoveWay recoverWay; 154 155 @SerializedName("recover_way_param") 156 public String recoverWayParam; 157 158 @SerializedName("recover_help_url") 159 public String recoverHelpUrl; 160 161 @SerializedName("limitation_action_type") 162 public EnumTypeLimitActionType limitationActionType; 163 164 @SerializedName("limitation_start_date") 165 public String limitationStartDate; 166 167 @SerializedName("limitation_date") 168 public String limitationDate; 169 } 170 171 public enum EnumTypeLimitationReason { 172 @SerializedName("LICENSE_ABNORMAL") 173 LICENSE_ABNORMAL, 174 @SerializedName("NO_TRADE") 175 NO_TRADE, 176 @SerializedName("SETTLE_ACCOUNT_ABNORMAL") 177 SETTLE_ACCOUNT_ABNORMAL, 178 @SerializedName("RISK_ABNORMAL") 179 RISK_ABNORMAL, 180 @SerializedName("OTHER") 181 OTHER, 182 @SerializedName("INSPECT_ABNORMAL") 183 INSPECT_ABNORMAL, 184 @SerializedName("INVALID_REPRESENTATIVE_INFORMATION") 185 INVALID_REPRESENTATIVE_INFORMATION, 186 @SerializedName("INVALID_BUSINESS_STATUS") 187 INVALID_BUSINESS_STATUS, 188 @SerializedName("INVALID_BUSINESS_LICENSE") 189 INVALID_BUSINESS_LICENSE, 190 @SerializedName("INVALID_BENEFICIARY_INFORMATION") 191 INVALID_BENEFICIARY_INFORMATION 192 } 193 194 public enum EnumTypeRecoveWay { 195 @SerializedName("IRRECOVERABLE") 196 IRRECOVERABLE, 197 @SerializedName("MODIFY_SUBJECT_INFORMATION") 198 MODIFY_SUBJECT_INFORMATION, 199 @SerializedName("MODIFY_SETTLE_ACCOUNT_INFORMATION") 200 MODIFY_SETTLE_ACCOUNT_INFORMATION, 201 @SerializedName("VERIFY_INACTIVE_MERCHANT_IDENTITY") 202 VERIFY_INACTIVE_MERCHANT_IDENTITY, 203 @SerializedName("SUBMIT_OFFLINE_BUSINESS_SCENARIO_INFORMATION") 204 SUBMIT_OFFLINE_BUSINESS_SCENARIO_INFORMATION, 205 @SerializedName("SUBMIT_INFORMATION_FOR_APPEAL") 206 SUBMIT_INFORMATION_FOR_APPEAL, 207 @SerializedName("RESOLVE_TRANSACTION_DISPUTES") 208 RESOLVE_TRANSACTION_DISPUTES, 209 @SerializedName("MODIFY_ADMINISTRATOR_INFORMATION") 210 MODIFY_ADMINISTRATOR_INFORMATION, 211 @SerializedName("CALL_CUSTOMER_SERVICE_AT_95017") 212 CALL_CUSTOMER_SERVICE_AT_95017, 213 @SerializedName("UPDATE_BUSINESS_SCENARIO_INFORMATION") 214 UPDATE_BUSINESS_SCENARIO_INFORMATION, 215 @SerializedName("SUBMIT_CDD_INFORMATION") 216 SUBMIT_CDD_INFORMATION, 217 @SerializedName("WAITING_FOR_PLATFORM_REVIEW") 218 WAITING_FOR_PLATFORM_REVIEW, 219 @SerializedName("SUBMIT_UBO_INFORMATION") 220 SUBMIT_UBO_INFORMATION 221 } 222 223 public enum EnumTypeLimitActionType { 224 @SerializedName("LIMIT_ACTION_TYPE_IMMEDIATE_CONTROL") 225 LIMIT_ACTION_TYPE_IMMEDIATE_CONTROL, 226 @SerializedName("LIMIT_ACTION_TYPE_DELAY_CONTROL") 227 LIMIT_ACTION_TYPE_DELAY_CONTROL 228 } 229 230} 231
需配合微信支付工具库 wxpay_utility 使用,请参考Go
1package main 2 3import ( 4 "demo/wxpay_utility" // 引用微信支付工具库,参考 https://pay.weixin.qq.com/doc/v3/partner/4015119446 5 "encoding/json" 6 "fmt" 7 "net/http" 8 "net/url" 9 "strings" 10) 11 12func main() { 13 // TODO: 请准备商户开发必要参数,参考:https://pay.weixin.qq.com/doc/v3/partner/4013080340 14 config, err := wxpay_utility.CreateMchConfig( 15 "19xxxxxxxx", // 商户号,是由微信支付系统生成并分配给每个商户的唯一标识符,商户号获取方式参考 https://pay.weixin.qq.com/doc/v3/partner/4013080340 16 "1DDE55AD98Exxxxxxxxxx", // 商户API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013058924 17 "/path/to/apiclient_key.pem", // 商户API证书私钥文件路径,本地文件路径 18 "PUB_KEY_ID_xxxxxxxxxxxxx", // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013038589 19 "/path/to/wxp_pub.pem", // 微信支付公钥文件路径,本地文件路径 20 ) 21 if err != nil { 22 fmt.Println(err) 23 return 24 } 25 26 request := &QuerySubMchLimitationRequest{ 27 SubMchid: wxpay_utility.String("123000110"), 28 } 29 30 response, err := QuerySubMchLimitation(config, request) 31 if err != nil { 32 fmt.Printf("请求失败: %+v\n", err) 33 // TODO: 请求失败,根据状态码执行不同的处理 34 return 35 } 36 37 // TODO: 请求成功,继续业务逻辑 38 fmt.Printf("请求成功: %+v\n", response) 39} 40 41func QuerySubMchLimitation(config *wxpay_utility.MchConfig, request *QuerySubMchLimitationRequest) (response *MchLimitation, err error) { 42 const ( 43 host = "https://api.mch.weixin.qq.com" 44 method = "GET" 45 path = "/v3/mch-operation-manage/merchant-limitations/sub-mchid/{sub_mchid}" 46 ) 47 48 reqUrl, err := url.Parse(fmt.Sprintf("%s%s", host, path)) 49 if err != nil { 50 return nil, err 51 } 52 reqUrl.Path = strings.Replace(reqUrl.Path, "{sub_mchid}", url.PathEscape(*request.SubMchid), -1) 53 httpRequest, err := http.NewRequest(method, reqUrl.String(), nil) 54 if err != nil { 55 return nil, err 56 } 57 httpRequest.Header.Set("Accept", "application/json") 58 httpRequest.Header.Set("Wechatpay-Serial", config.WechatPayPublicKeyId()) 59 authorization, err := wxpay_utility.BuildAuthorization(config.MchId(), config.CertificateSerialNo(), config.PrivateKey(), method, reqUrl.RequestURI(), nil) 60 if err != nil { 61 return nil, err 62 } 63 httpRequest.Header.Set("Authorization", authorization) 64 65 client := &http.Client{} 66 httpResponse, err := client.Do(httpRequest) 67 if err != nil { 68 return nil, err 69 } 70 respBody, err := wxpay_utility.ExtractResponseBody(httpResponse) 71 if err != nil { 72 return nil, err 73 } 74 if httpResponse.StatusCode >= 200 && httpResponse.StatusCode < 300 { 75 // 2XX 成功,验证应答签名 76 err = wxpay_utility.ValidateResponse( 77 config.WechatPayPublicKeyId(), 78 config.WechatPayPublicKey(), 79 &httpResponse.Header, 80 respBody, 81 ) 82 if err != nil { 83 return nil, err 84 } 85 response := &MchLimitation{} 86 if err := json.Unmarshal(respBody, response); err != nil { 87 return nil, err 88 } 89 90 return response, nil 91 } else { 92 return nil, wxpay_utility.NewApiException( 93 httpResponse.StatusCode, 94 httpResponse.Header, 95 respBody, 96 ) 97 } 98} 99 100type QuerySubMchLimitationRequest struct { 101 SubMchid *string `json:"sub_mchid,omitempty"` 102} 103 104func (o *QuerySubMchLimitationRequest) MarshalJSON() ([]byte, error) { 105 type Alias QuerySubMchLimitationRequest 106 a := &struct { 107 SubMchid *string `json:"sub_mchid,omitempty"` 108 *Alias 109 }{ 110 // 序列化时移除非 Body 字段 111 SubMchid: nil, 112 Alias: (*Alias)(o), 113 } 114 return json.Marshal(a) 115} 116 117type MchLimitation struct { 118 Mchid *string `json:"mchid,omitempty"` 119 LimitedFunctions []EnumTypeFunctionLimitation `json:"limited_functions,omitempty"` 120 OtherLimitedFunctions *string `json:"other_limited_functions,omitempty"` 121 RecoverySpecifications []MchLimitationReasonAndRecoverWay `json:"recovery_specifications,omitempty"` 122} 123 124type EnumTypeFunctionLimitation string 125 126func (e EnumTypeFunctionLimitation) Ptr() *EnumTypeFunctionLimitation { 127 return &e 128} 129 130const ( 131 ENUMTYPEFUNCTIONLIMITATION_NO_TRANSACTION_AND_RECHARGE EnumTypeFunctionLimitation = "NO_TRANSACTION_AND_RECHARGE" 132 ENUMTYPEFUNCTIONLIMITATION_NO_PAYMENT EnumTypeFunctionLimitation = "NO_PAYMENT" 133 ENUMTYPEFUNCTIONLIMITATION_NO_WITHDRAWAL EnumTypeFunctionLimitation = "NO_WITHDRAWAL" 134 ENUMTYPEFUNCTIONLIMITATION_NO_REFUND EnumTypeFunctionLimitation = "NO_REFUND" 135 ENUMTYPEFUNCTIONLIMITATION_NO_TRANSACTION EnumTypeFunctionLimitation = "NO_TRANSACTION" 136 ENUMTYPEFUNCTIONLIMITATION_NO_PROFIT_SHARING EnumTypeFunctionLimitation = "NO_PROFIT_SHARING" 137 ENUMTYPEFUNCTIONLIMITATION_NO_PAYMENT_POINT_COMPLETE_ORDER EnumTypeFunctionLimitation = "NO_PAYMENT_POINT_COMPLETE_ORDER" 138) 139 140type MchLimitationReasonAndRecoverWay struct { 141 LimitationCaseId *string `json:"limitation_case_id,omitempty"` 142 LimitationReasonType *EnumTypeLimitationReason `json:"limitation_reason_type,omitempty"` 143 LimitationReason *string `json:"limitation_reason,omitempty"` 144 LimitationReasonDescribe *string `json:"limitation_reason_describe,omitempty"` 145 RelateLimitations []EnumTypeFunctionLimitation `json:"relate_limitations,omitempty"` 146 OtherRelateLimitations *string `json:"other_relate_limitations,omitempty"` 147 RecoverWay *EnumTypeRecoveWay `json:"recover_way,omitempty"` 148 RecoverWayParam *string `json:"recover_way_param,omitempty"` 149 RecoverHelpUrl *string `json:"recover_help_url,omitempty"` 150 LimitationActionType *EnumTypeLimitActionType `json:"limitation_action_type,omitempty"` 151 LimitationStartDate *string `json:"limitation_start_date,omitempty"` 152 LimitationDate *string `json:"limitation_date,omitempty"` 153} 154 155type EnumTypeLimitationReason string 156 157func (e EnumTypeLimitationReason) Ptr() *EnumTypeLimitationReason { 158 return &e 159} 160 161const ( 162 ENUMTYPELIMITATIONREASON_LICENSE_ABNORMAL EnumTypeLimitationReason = "LICENSE_ABNORMAL" 163 ENUMTYPELIMITATIONREASON_NO_TRADE EnumTypeLimitationReason = "NO_TRADE" 164 ENUMTYPELIMITATIONREASON_SETTLE_ACCOUNT_ABNORMAL EnumTypeLimitationReason = "SETTLE_ACCOUNT_ABNORMAL" 165 ENUMTYPELIMITATIONREASON_RISK_ABNORMAL EnumTypeLimitationReason = "RISK_ABNORMAL" 166 ENUMTYPELIMITATIONREASON_OTHER EnumTypeLimitationReason = "OTHER" 167 ENUMTYPELIMITATIONREASON_INSPECT_ABNORMAL EnumTypeLimitationReason = "INSPECT_ABNORMAL" 168 ENUMTYPELIMITATIONREASON_INVALID_REPRESENTATIVE_INFORMATION EnumTypeLimitationReason = "INVALID_REPRESENTATIVE_INFORMATION" 169 ENUMTYPELIMITATIONREASON_INVALID_BUSINESS_STATUS EnumTypeLimitationReason = "INVALID_BUSINESS_STATUS" 170 ENUMTYPELIMITATIONREASON_INVALID_BUSINESS_LICENSE EnumTypeLimitationReason = "INVALID_BUSINESS_LICENSE" 171 ENUMTYPELIMITATIONREASON_INVALID_BENEFICIARY_INFORMATION EnumTypeLimitationReason = "INVALID_BENEFICIARY_INFORMATION" 172) 173 174type EnumTypeRecoveWay string 175 176func (e EnumTypeRecoveWay) Ptr() *EnumTypeRecoveWay { 177 return &e 178} 179 180const ( 181 ENUMTYPERECOVEWAY_IRRECOVERABLE EnumTypeRecoveWay = "IRRECOVERABLE" 182 ENUMTYPERECOVEWAY_MODIFY_SUBJECT_INFORMATION EnumTypeRecoveWay = "MODIFY_SUBJECT_INFORMATION" 183 ENUMTYPERECOVEWAY_MODIFY_SETTLE_ACCOUNT_INFORMATION EnumTypeRecoveWay = "MODIFY_SETTLE_ACCOUNT_INFORMATION" 184 ENUMTYPERECOVEWAY_VERIFY_INACTIVE_MERCHANT_IDENTITY EnumTypeRecoveWay = "VERIFY_INACTIVE_MERCHANT_IDENTITY" 185 ENUMTYPERECOVEWAY_SUBMIT_OFFLINE_BUSINESS_SCENARIO_INFORMATION EnumTypeRecoveWay = "SUBMIT_OFFLINE_BUSINESS_SCENARIO_INFORMATION" 186 ENUMTYPERECOVEWAY_SUBMIT_INFORMATION_FOR_APPEAL EnumTypeRecoveWay = "SUBMIT_INFORMATION_FOR_APPEAL" 187 ENUMTYPERECOVEWAY_RESOLVE_TRANSACTION_DISPUTES EnumTypeRecoveWay = "RESOLVE_TRANSACTION_DISPUTES" 188 ENUMTYPERECOVEWAY_MODIFY_ADMINISTRATOR_INFORMATION EnumTypeRecoveWay = "MODIFY_ADMINISTRATOR_INFORMATION" 189 ENUMTYPERECOVEWAY_CALL_CUSTOMER_SERVICE_AT_95017 EnumTypeRecoveWay = "CALL_CUSTOMER_SERVICE_AT_95017" 190 ENUMTYPERECOVEWAY_UPDATE_BUSINESS_SCENARIO_INFORMATION EnumTypeRecoveWay = "UPDATE_BUSINESS_SCENARIO_INFORMATION" 191 ENUMTYPERECOVEWAY_SUBMIT_CDD_INFORMATION EnumTypeRecoveWay = "SUBMIT_CDD_INFORMATION" 192 ENUMTYPERECOVEWAY_WAITING_FOR_PLATFORM_REVIEW EnumTypeRecoveWay = "WAITING_FOR_PLATFORM_REVIEW" 193 ENUMTYPERECOVEWAY_SUBMIT_UBO_INFORMATION EnumTypeRecoveWay = "SUBMIT_UBO_INFORMATION" 194) 195 196type EnumTypeLimitActionType string 197 198func (e EnumTypeLimitActionType) Ptr() *EnumTypeLimitActionType { 199 return &e 200} 201 202const ( 203 ENUMTYPELIMITACTIONTYPE_LIMIT_ACTION_TYPE_IMMEDIATE_CONTROL EnumTypeLimitActionType = "LIMIT_ACTION_TYPE_IMMEDIATE_CONTROL" 204 ENUMTYPELIMITACTIONTYPE_LIMIT_ACTION_TYPE_DELAY_CONTROL EnumTypeLimitActionType = "LIMIT_ACTION_TYPE_DELAY_CONTROL" 205) 206
应答参数
200 OK
mchid 必填 string
【子商户的商户号】 子商户的商户号
limited_functions 选填 array[string]
【商户被管控能力列表】 商户以下能力被管控时会返回
可选取值
NO_TRANSACTION_AND_RECHARGE
: 关闭收单和充值NO_PAYMENT
: 关闭付款NO_WITHDRAWAL
: 关闭提现NO_REFUND
: 关闭退款NO_TRANSACTION
: 关闭收单NO_PROFIT_SHARING
: 关闭分账分出NO_PAYMENT_POINT_COMPLETE_ORDER
: 关闭支付分服务结单
other_limited_functions 选填 string
【商户其他被管控能力描述】 若商户除了被管控能力列表中列举的能力外还有其它能力被管控则返回给商户(如有多项以英文逗号分隔)
recovery_specifications 选填 array[object]
【被管控原因及解脱路径列表】 商户被管控的原因及对应解脱路径的列表,若商户被管控时会返回
属性 | |
limitation_case_id 选填 string 【商户被该原因管控的单据号】 唯一标记本次管控动作的ID,可用来和“管控流水订阅通知”中的“业务单号”做关联 limitation_reason_type 选填 string 【商户被管控原因类型】 若商户被管控时会返回 可选取值
limitation_reason 选填 string(512) 【商户被管控原因】 被管控的原因,若商户被管控时会返回 limitation_reason_describe 选填 string 【商户被管控原因描述】 在该原因下,被管控的原因描述,若商户被管控时会返回 relate_limitations 选填 array[string] 【商户被该原因管控的能力列表】 在该原因下,若商户以下能力被管控时会返回 可选取值
other_relate_limitations 选填 string 【商户被该原因管控的其他能力描述】 在该原因下,若商户除了relate_limitations所罗列的被管控能力,还有其他被管控的能力时会返回(如有多项以英文逗号分隔) recover_way 选填 string 【商户被该原因管控的解脱路径】 在该原因下,若存在解脱路径时会返回 可选取值
recover_way_param 选填 string(1024) 【商户被该原因管控的解脱路径参数】 若解脱路径recover_way为“填写尽调信息”、“补充受益所有人信息”,需通过提交尽调来解脱,此处会返回“尽调单号”;若解脱路径recover_way为“提交相关信息申诉”,需通过提交资料来解脱,此处会返回“商户管理记录单号” recover_help_url 选填 string(1024) 【商户被该原因管控的解脱帮助链接】 在该原因下,若存在解脱帮助说明时会返回 limitation_action_type 选填 string 【处置方式】 管控处置方式类型,默认是立即管控 可选取值
limitation_start_date 选填 string(64) 【预计管控开始时间】 当且仅当处置方式为延迟管控时返回,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 limitation_date 选填 string(64) 【商户被该原因管控的时间】 若商户被管控时会返回,延迟管控但是未到管控时间时不会返回,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 |
应答示例
200 OK
1{ 2 "mchid" : "123000110", 3 "limited_functions" : [ 4 "NO_TRANSACTION_AND_RECHARGEN" 5 ], 6 "other_limited_functions" : "关闭相册扫码支付,关闭长按识别支付", 7 "recovery_specifications" : [ 8 { 9 "limitation_case_id" : "A20250819155047774441874", 10 "limitation_reason_type" : "LICENSE_ABNORMAL", 11 "limitation_reason" : "入驻后180天无账户动账", 12 "limitation_reason_describe" : "当前商户号入驻后长时间无账户动账,请重新确认开户意愿并核实身份", 13 "relate_limitations" : [ 14 "NO_TRANSACTION_AND_RECHARGE" 15 ], 16 "other_relate_limitations" : "关闭相册扫码支付,关闭长按识别支付", 17 "recover_way" : "MODIFY_SUBJECT_INFORMATION", 18 "recover_way_param" : "100200300112233", 19 "recover_help_url" : "https://kf.qq.com", 20 "limitation_action_type" : "LIMIT_ACTION_TYPE_IMMEDIATE_CONTROL", 21 "limitation_start_date" : "2025-06-08T10:34:56+08:00", 22 "limitation_date" : "2025-06-08T10:34:56+08:00" 23 } 24 ] 25} 26
错误码
公共错误码
状态码 | 错误码 | 描述 | 解决方案 |
---|---|---|---|
400 | PARAM_ERROR | 参数错误 | 请根据错误提示正确传入参数 |
400 | INVALID_REQUEST | HTTP 请求不符合微信支付 APIv3 接口规则 | 请参阅 接口规则 |
401 | SIGN_ERROR | 验证不通过 | 请参阅 签名常见问题 |
500 | SYSTEM_ERROR | 系统异常,请稍后重试 | 请稍后重试 |
业务错误码
状态码 | 错误码 | 描述 | 解决方案 |
---|---|---|---|
400 | INVALID_REQUEST | 当前服务商与查询的商户号不存在受理关系 | 请传入存在受理关系的子商户号 |
400 | INVALID_REQUEST | 身份校验不通过 | 请使用普通服务商发起请求 |
429 | RATELIMIT_EXCEEDED | 请求过于频繁,请稍后再试 | 请降低请求的频率 |