alipay.intl.merchant.common.indirectMerchant.query
Call this interface to query the registration status of secondary merchants for both online and offline payments.
Request
Service address
Environment | URL |
Production | https://open-sea.alipay.com/api/alipay/intl/merchant/common/indirectMerchant/query.htm |
Request Parameters
Parameter | Description |
Basic Parameter | |
function String(128) | Service Name
|
version String(8) | The API version
|
clientId String(32) | A unique partner ID to identify a contracted Alipay Account.
|
reqTime Date time | Date time with timezone, see RFC 3339 Section 5.6 for details.
|
reqMsgId String(64) | The unique ID assigned by the client to identify a request message. Note: The reqMsgId identifies a unique system request, but it is not used to identify a unique business request.
|
reserve String(256) | Key-Value formatted parameter for future use. This parameter is required when you are an ISV. If you are an ISV, you need to provide the isvAccesstoken value.
|
Business Parameter | |
merchantId String(64) | A unique partner ID to identify a contracted Alipay Account.
|
sellerId String(32) | A unique ID assigned by the partner to identify a secondary merchant. The ID can contain letters, numbers, and underscores.
|
storeId String(32) | Store ID, need to be unique for each group of PID and MID. This parameter is only for the OFFLINE payment.
|
paymentScene String | Payment method of the secondary merchant, the value is ONLINE for online payments and is OFFLINE for offline payments.
|
Sync Response
Parameter | Description |
Basic parameters | |
version String(8) | The API version
|
function String(128) | Service Name
|
clientId String(32) | A unique partner ID to identify a contracted Alipay Account.
|
reqTime Date time | Date time with timezone, see RFC 3339 Section 5.6 for details.
|
reqMsgId String(64) | The unique ID assigned by the client to identify a request message. Note: The reqMsgId identifies a unique system request, but it is not used to identify a unique business request.
|
reserve String(256) | Key-Value formatted parameter for future use. This parameter is required when you are an ISV. If you are an ISV, you need to provide the isvAccesstoken value.
|
Business parameters | |
resultInfo ResultInfo | See resultInfo for details.
|
sellerInfo SellerInfo | Seller information, see sellerInfo for details.
|
storeInfo storeInfo | Store information. See storeInfo for details.Note:This field is only for offline merchants.
|
registrationStatus String(20) | The status of the latest registration or update.The value can be one of the following item.
Note:This field is required when resultinfo.resultCode=SUCCESS.
|
rejectReason String(512) | The reason that the merchant is not registered successfully.
|
storeStatus String | Store status. The value can be one of the following items.ARCHIVED: The store is archived, so that the store information cannot be viewed.ACTIVATED: The store is registered successfully.INACTIVATED: The store is not registered.
|
extendInfo String(2048) | Reserved for extended information
|
Sub-parameters
resultInfo
Parameter | Description |
resultStatus String(2) | The request status can be:
|
resultCodeId String(8) | An 8-digit code that is used to identify a result. When
|
resultCode String(64) | The result code
|
resultMsg String(256) | When
|
sellerInfo
Parameter | Description |
sellerId String(32) | A unique ID assigned by the partner to identify a secondary merchant. The ID can contain letters, numbers, and underscores.
|
sellerName String(128) | The name of the secondary merchant
|
sellerMcc String(10) | Merchant category code of the seller. This field is only for online merchants.
|
paymentScene String | Specify the payment scene. The value isONLINE if the payment is an online payment; The value isOFFLINE if the payment is an offline payment.
|
sellerType String(20) | Secondary merchant type, the value can be INDIVIDUAL for the sole proprietorship or ENTERPRISE for the limited company, private company, partnership, limited liability partnership (LLP), limited liability company (LLC), S corporation (S Corp), C corporation (C Corp), trust, or nonprofit organization (NPO)
|
siteInfos String | This field is in JSON format and can contain up to 5 website URLs or app download URLs. See site_infos for details.URLs in this field cannot be updated incrementally. To add or remove URLs, re-pass the value again.This field is only for online merchants.
|
registrationNo String(128) | Business registration number specified on the business registration document.Note: This field is not required when the secondary merchant type is INDIVIDUAL and no registration number exists.
|
registrationCountry String(2) | Registration country of the secondary merchant, specified by a 2-letter code defined in ISO 3166. For more details about the 2-letter country code, see ISO 3166.
|
registrationAddress String(800) | Business registration address specified on the business registration document. Use postal address format.
|
shareholderName String(128) | Legal name of the primary shareholder of the secondary merchant. Specify this field only when the secondary merchant type is ENTERPRISE.
|
shareholder_id String(128) | ID or passport number, or business registration number of the primary shareholder of the secondary merchant. Specify this field only when the secondary merchant type is ENTERPRISE.
|
representativeName String(128) | Full legal name of the business owner. Specify this field only when the secondary merchant type is INDIVIDUAL. This field is optional if the secondary merchant type is ENTERPRISE.
|
representativeId String(128) | ID or passport number of the business owner. Specify this field only when the secondary merchant type is INDIVIDUAL. This field is optional if the secondary merchant type is ENTERPRISE.
|
settlementNo String(128) | Settlement bank account number of the secondary merchant, letters and numbers only
|
contactNo String(40) | Contact phone number of the secondary merchant, numbers and special characters +-() only
|
contactEmail String(64) | Contact email address of the secondary merchant
|
customerServiceNo String(64) | Customer service phone number of the secondary merchant, numbers and special characters +-() only
|
customerServiceEmail String(256) | Customer service email address of the secondary merchant
|
storeInfo
Business Logic Errors
Returned result | Description | Solution |
MERCHANT_DATA_NOT_FOUND | The merchant data not found. | Enter the correct parameters and send the request again. |
Result code
Basic result code
resultCodeId | resultCode | resultStatus | Remarks |
00000000 | SUCCESS | S | Success |
00000019 | PROCESS_FAIL | F | General business failure |
00000901 | UNKNOWN_EXCEPTION | U | API failed because of unknown reasons |
00000004 | PARAM_ILLEGAL | F | The parameter is incorrect. |
00000007 | INVALID_SIGNATURE | F | The signature is invalid. |
00000008 | KEY_NO_FOUND | F | The key is not found. |
00000014 | API_IS_INVALID | F | The API is invalid or nonactivated. |
00000016 | OAUTH_FAILED | F | The oAuth authentication failed. |
00000021 | ACCESS_DENIED | F | Access denied |
00000024 | REQUEST_TRAFFIC_EXCEED_LIMIT | F | The request traffic exceeds the limit. |
12014152 | CLIENT_FORBIDDEN_ACCESS_API | F | The Client is not authorized to use this API. |
12014155 | UNKNOWN_CLIENT | F | Unknown client |
12014156 | INVALID_CLIENT_STATUS | F | Invalid client status |
00000030 | SIGN_TYPE_INVALID | F | The sign type is invalid |
Examples
Request Sample
{
"request":{
"head":{
"version":"2.0.4",
"function":"alipay.intl.merchant.common.indirectMerchant.query",
"clientId":"2014000014442",
"reqTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"merchantId":"21020000001",
"sellerId":"83410102",
"storeId":"83401020001",
"paymentScene":"ONLINE"
}
},
"signature":"signature string"
}
Response Sample
{
"response":{
"head":{
"version":"2.0.4",
"function":"alipay.intl.merchant.common.indirectMerchant.query",
"clientId":"2014000014442",
"respTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"resultInfo":{
"resultStatus":"S",
"resultCodeId":"00000000",
"resultCode":"SUCCESS",
"resultMsg":"success"
},
"sellerInfo":{
"sellerId":"58000001",
"sellerName":"Alipay (China) Network Technology Co., Ltd",
"sellerMcc":"1402",
"paymentScene":"ONLINE",
"sellerType":"INDIVIDUAL",
"siteInfos":[
{
"siteName":"Apple",
"siteUrl":"www.alipay.com",
"siteType":"APP"
}
],
"registrationNo":"83720154037071",
"registrationCountry":"CN",
"registrationAddress":"Shanghai",
"shareholderName":"Zhangsan",
"shareholderId":"69833444422",
"representativeName":"Zhangsan",
"representativeId":"69833444422",
"settlementNo":"1551263547569833",
"contactNo":"086+13001720000",
"contactEmail":"Zhangsan@alipay.com",
"customerServiceNo":"086+13701720000",
"customerServiceEmail":"customer_service@alipay.com"
},
"storeInfo":{
"storeId":"569833",
"storeName":"ShopName",
"storeMcc":"8014",
"storeCountry":"CN",
"storeAddress":"Shanghai",
"internalStorePhoto":"www.alipay.com/internalStorePhoto.jpg",
"externalStorefrontPhoto":"www.alipay.com/externalStorePhoto.jpg"
},
"registrationStatus":"SUCCESS",
"rejectReason":"incomplete information",
"storeStatus":"ACTIVATED",
"extendInfo":"{}"
}
},
"signature":"signature string"
}