alipay.overseas.secmerchant.maintain.queryStatus
Call this interface to query the registration status of secondary merchants for online payments.
Request
Service address
Environment | HTTPS request URL |
Production environment | https://intlmapi.alipay.com/gateway.do |
Test environment | https://mapi.alipaydev.com/gateway.do |
Request parameters
Parameter | Description |
Basic parameter | |
service String | Interface name
|
partner String(16) | The partner ID that is assigned by Alipay to identify an Alipay account. The partner ID is composed of 16 digits and begins with 2088.
|
_input_charset String | The charset with which the request data are encoded. UTF-8, GBK, and GB2312 are supported.
|
sign_type String | Sign type. RSA, RSA2 and MD5 are supported. Use uppercase.
|
sign String | Sign value
|
timestamp String | The time when the merchant server sends the request. The time is in GMT+8, with a format of yyyy-MM-dd HH:mm:ss. By default, the request expires in 30 minutes.
|
Business parameter | |
secondary_merchant_id String(64) | The unique ID assigned by the partner to identify a secondary merchant. The ID can contain letters, numbers, and underscores, but special characters or spaces are not allowed. Note: It is strongly suggested to keep the value within 20 bytes, for the convenience of management.
|
payment_method String | Payment method of the secondary merchant, the value is ONLINE_PAYMENT for online payments.
|
Response
Synchronous response
Error codes
Business logic errors
Returned result | Description |
PARAM_ILLEGAL | Required parameters are not entered or illegal parameters are entered. The illegal parameter might be too long, or with incorrect format. Action: Enter the correct parameters and send the request again. |
DATA_NOT_EXIST | No data exist for the queried secondary merchant because the merchant is not registered. Action: Register the secondary merchant to Alipay system before you query the registration status. |
SYSTEM_ERROR | Alipay system error. Action: Try again later. |
Samples
Request
https://intlmapi.alipay.com/gateway.do?service=alipay.overseas.secmerchant.maintain.queryStatus&partner=2088021017666931&_input_charset=UTF-8&sign_type=MD5&secondary_merchant_id=1314520&payment_method=ONLINE_PAYMENT&sign=9c1f5f948d9e7d3109f6558a375b62d3
Response
The request succeeds and the query result is returned:
<?xml version="1.0" encoding="utf-8"?>
<alipay>
<is_success>T</is_success>
<request>
<param name="service">alipay.overseas.secmerchant.maintain.queryStatus</param>
<param name="partner">2088101131367863</param>
<param name=“_input_charset”>gbk</param>
<param name="sign_type">MD5</param>
<param name="sign">2118ac8fad6bc1d9e88a6cd017c18d37</param>
<param name="timestamp">2019-02-01 08:30:10</param>
<param name="secondary_merchant_id">MERCHANT_ID_0003</param>
<param name="payment_method">ONLINE_PAYMENT</param>
</request>
<response>
<alipay>
<secondary_merchant_id>MERCHANT_ID_0003</secondary_merchant_id>
<status>UNDER_REVIEW</status>
<payment_method>ONLINE_PAYMENT</payment_method>
<partner_id>2088101142878662</partner_id>
<secondary_merchant_name>Alipay (China) Network Technology Co., Ltd</secondary_merchant_name>
<secondary_merchant_type>INDIVIDUAL</secondary_merchant_type>
<secondary_merchant_industry>0742</secondary_merchant_industry>
<registration_no>012345678</registration_no>
<register_country>HK</register_country>
<register_address>No.278, Road YinCheng, Shanghai, China</register_address>
<shareholder_name>Jack Li</shareholder_name>
<shareholder_id>G53453888</shareholder_id>
<representative_name>Tom Wang</representative_name>
<representative_id>3524674343326</representative_id>
<settlement_no>2600100000</settlement_no>
<contact_no>+86139xxxx7893</contact_no>
<contact_email>tomli@gmail.com</contact_email>
<site_infos>[{"site_type":"WEB","site_url":"https://alipay.com","site_name":"websit"}]</site_infos>
</alipay>
</response>
<sign>744a87f0e3b40e6a8cd8f9705ce61511</sign>
<sign_type>MD5</sign_type>
</alipay>
Failed to get the query result:
<?xml version="1.0" encoding="utf-8"?>
<alipay>
<is_success>F</is_success>
<error>DATA_NOT_EXIST</error>
<sign>744a87f0e3b40e6a8cd8f9705ce61511</sign>
<sign_type>MD5</sign_type>
</alipay>