Query SubMerchant
Query submerchant for management purpose. This is available for Partner only.
EndPoint
POST /binancepay/openapi/submerchant/query
Request Parameters
Exactly one of subMerchantId and subMerchantName must be provided. Passing both, or passing neither, will return an INVALID_PARAM_WRONG_VALUE error.
| Attributes | Type | Required | Limitation | Description |
|---|---|---|---|---|
| subMerchantId | string | Conditional (exactly one of the two) | maximum length 128 | Sub-merchant ID to query. |
| subMerchantName | string | Conditional (exactly one of the two) | maximum length 128 | Sub-merchant name to query. The lookup is scoped to the caller's mainMerchantId, and the name is unique within that scope (see subMerchantName uniqueness contract in SubMerchant Add). Typical use case: before bulk-creating sub-merchants, check whether a given name is already taken so the caller can rename and retry. |
Sample Request Body — Query by ID
{
"subMerchantId": "1234567"
}
Sample Request Body — Query by Name
{
"subMerchantName": "Acme Coffee Shop"
}
Response Parameters
When querying by subMerchantName, if no sub-merchant with the given name exists under the caller's main merchant, the response returns success with data: null — the name is available for a subsequent submerchant/add call. Querying by subMerchantId with a non-existent id returns INVALID_PARAM_WRONG_VALUE (existing behavior, unchanged).
| Attributes | Type | Required | Limitation | Description |
|---|---|---|---|---|
| merchantName | string | Y | The sub merchant name maximum length 128, unique under one mainMerchantId. | |
| storeType | int | Y | 0=Online , 1=Physical, -1=Online&Physical | |
| merchantMcc | string | Y | four-digit number that classifies the business. Get from here | |
| merchantType | int | N | 2=solo proprietor、 3=Partnership、4=Private company、5=Others company | |
| country | string | Y | Country/Region of Business Operation,Can be multiple, split by "," eg:"AR,MX". Refer to link(https://merchant.binance.com/en/application-guidelines-merchant) for restricted countries of operations. | |
| siteUrl | string | N | For Online stores, the URL field is required. (If your online store is an APP, please pass its link in the app store ) | |
| address | string | N | For Physical stores, the address field is required. | |
| payIndustryDescription | string | N | Mandatory if merchantMcc is 9999. Please specify the industry of this sub merchant here. | |
| subPayMccCode | string | N | four-digit number that classifies the business. Get from here | |
| subPayIndustryDescription | string | N | Mandatory if subPayMccCode is 9999. Please specify the industry of this sub merchant here. | |
| brandLogo | string | N | sub merchant logo url | |
| companyName | string | N | The legal name that is used in the registration. | |
| registrationNumber | string | Y | Registration number/Company tax ID | |
| registrationCountry | string | Y | Country of Registration | |
| registrationAddress | string | N | Address of Registration. Refer to link(https://merchant.binance.com/en/application-guidelines-merchant) for restricted registration addresses. | |
| incorporationDate | long | N | The date when the business registration is in effective. | |
| certificateType | int | N | 1=ID 2=Passport | |
| certificateCountry | string | N | Certificate country | |
| certificateNumber | string | N | Certificate number | |
| certificateValidDate | long | N | Certificate Valid Date | |
| contractTimeIsv | long | N | Contract date with ISV | |
| blockKybUserPayment | boolean | N | block kyb users to pay this sub merchant, default false | |
| businessRegistrationType | string | N | The type of business registration certificate 'UPLOAD' or 'SITE' | |
| businessRegistrationValue | string | N | The value of business registration certificate url |
Sample Response
{
"merchantName": "Sub Merchant",
"storeType": 1,
"merchantMcc": "5411",
"merchantType": 1,
"country": "US",
"siteUrl": "http://example.com",
"address": "123 Main St, Anytown, USA",
"payIndustryDescription": "Retail Industry",
"subPayMccCode": "5411",
"subPayIndustryDescription": "Retail Industry",
"brandLogo": "http://example.com/logo.png",
"companyName": "Company Name",
"registrationNumber": "123456789",
"registrationCountry": "US",
"registrationAddress": "123 Main St, Anytown, USA",
"incorporationDate": "2023-01-01T00:00:00Z",
"certificateType": 1,
"certificateCountry": "US",
"certificateNumber": "Cert123",
"certificateValidDate": "2023-01-01T00:00:00Z",
"contractTimeIsv": "2023-01-01T00:00:00Z",
"blockKybUserPayment": false,
"businessRegistrationType": "SITE",
"businessRegistrationValue": "http://www.example.com"
}