Query Sub-merchant API
It is used by the institution to view whether the sub-merchant has been successfully created. The API is only used for a single sub-merchant check.
• The {sub_mchid} in the URL refers to the Sub-merchant ID to be viewed.
It is used by the institution to view whether the sub-merchant has been successfully created. The API is only used for a single sub-merchant check.
• The {sub_mchid} in the URL refers to the Sub-merchant ID to be viewed.
Applicable object: Institutional mode
Request URL:https://apihk.mch.weixin.qq.com/v3/global/merchants/{sub_mchid}
Request method:GET
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Institution's Merchant ID | sp_appid | string[1,32] | Yes | Query Merchant ID assigned to institutions by WeChat Pay Note:Only forInstitutional mode Example: wx8888888888888888 |
Organization APPID | sp_mchid | string[1,32] | Yes | Query APPID corresponding to the Service Account applied for by the institution on the WeChat Official Accounts Platform Note:Only forInstitutional mode Example: 3200000001 |
Sub-merchant ID | sub_mchid | string[1,32] | Yes | Path Sub-merchant ID Example: 20000100 |
https://apihk.mch.weixin.qq.com/v3/global/merchants/20000100?sp_appid=wx8888888888888888&sp_mchid=1900000100
Note on sensitive field encryption:
For parameters that contain sensitive information, such as contact information, a "field encryption" security mechanism is provided to make sure that the sensitive information can only be seen by the data recipient.
Encryption procedures
1、Perform the RSA encryption for the parameter values with the public key of the WeChat Pay Platform certificate. Use `RSAES-PKCS1-v1_5` as the filling scheme.
2、The encrypted ciphertext that is encoded with base64 is used as the value of the appropriate parameter in the request.
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Submerchant id | sub_mchid | string[1,32] | Yes | Specifies the sub merchant ID assigned by WeChat Example: 20000100 |
Full name of the sub-merchant | name | string[1,128] | Yes | The registration name of the sub-merchant Example: Merchant name |
Short name of the sub-merchant | shortname | string[1,64] | Yes | The short name of the sub-merchant, which is used for the display of WeChat order details and the successful payment page Example: Merchant shortname |
Company contact information | office_phone | string[1,32] | Yes | Contact information of the merchant, which will be displayed to the user after the payment. Example: 075586010000 |
Registered Country or Region | merchant_country_code | string[1,3] | Yes | The country where the submerchant was registered ,see to CountryCode Example: 344 |
Business category | business_category | int | Yes | Specifies the business category, please refer to the business ID list of WeChat payment. Please see Business Category Example: 101 |
Contact information | contact | object | No | Contact information object details is listed below |
Merchant Type | merchant_type | string[1,10] | No | ENTERPRISE or INDIVIDUAL Example: ENTERPRISE |
Registration Certificate Number | registration_certificate_number | string[1,50] | No | Company registration document Number Example: 5555-8888 |
Expiration Date of Registration Certificate | registration_certificate_date | string[1,10] | No | The expiration date of the company registration document. The value should be expire date or “PERMANENT” , “N/A”, the date format should YYYY-MM-DD Example: 2020-10-16 |
Settlement Bank No. | settlement_bank_number | string[1,128] | No | Settlement bank account number (settlement bank information) Example: 555588889999 |
Business information | business | object | No | Business information, the detail is listed below |
Director information | director | object | No | Director information, The detail is listed below |
Principal information | principal | object | No | Principal information, The detail is listed below |
H5 payment application details | h5_payment | object | No | H5 payment application detail |
Sub-merchant's status info | sub_merchant_state | object | No | Sub-merchant's status info |
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Returned status code | code | string[1,32] | Yes | Error code. See the error code list for the enumerated values. |
Returned information | message | string[1,256] | Yes | Returned message. It indicates the reason for the error if not empty. |
Detailed error description | detail | object | No | It is returned when code is PARAM_ERROR. Details will be described below. |
{
"sub_mchid": "20000100",
"name": "test mcherchan_name",
"shortname": "mcherchan_name",
"office_phone": "075586010000",
"merchant_introduction": "hotel and restaurant",
"business_category": 644,
"contact": {
"name": "Bob Zhang",
"phone": "+8613633334444"
},
"principal": {
"principal_name": "Bob",
"principal_id_number": "5555-8888"
},
"h5_payment": {
"h5_authorization_state": "APPROVED"
},
"sub_merchant_state": {
"sub_merchant_status": "OPERATING"
}
}
Error Message | Description | Solution |
---|---|---|
PARAM_ERROR | Req param error | For the specific parameter format, please see the relevant document. |
INVALID_REQUEST | Invaild request | Check your program based on the error message returned by the API. |
SYSTEM_ERROR | System error please try again | System error. Re-initiate with the original parameters. |
Customer Service Tel
Business Development
9:00-18:00
Monday-Friday GMT+8
Technical Support
WeChat Pay Global
ICP证