Skip to main content

Query SubMerchant

Query submerchant for management purpose. This is available for Partner only.

EndPoint

POST /binancepay/openapi/submerchant/query

Request Parameters

AttributesTypeRequiredLimitationDescription
subMerchantIdstringYmaximum length 128Sub-merchant ID to query.

Sample Request Body

{
"subMerchantId": "1234567"
}

Response Parameters

Response Parameters

AttributesTypeRequiredLimitationDescription
merchantNamestringYThe sub merchant name maximum length 128, unique under one mainMerchantId.
storeTypeintY0=Online , 1=Physical, -1=Online&Physical
merchantMccstringYfour-digit number that classifies the business. Get from here
merchantTypeintN2=solo proprietor、 3=Partnership、4=Private company、5=Others company
countrystringYCountry/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.
siteUrlstringNFor Online stores, the URL field is required. (If your online store is an APP, please pass its link in the app store )
addressstringNFor Physical stores, the address field is required.
payIndustryDescriptionstringNMandatory if merchantMcc is 9999. Please specify the industry of this sub merchant here.
subPayMccCodestringNfour-digit number that classifies the business. Get from here
subPayIndustryDescriptionstringNMandatory if subPayMccCode is 9999. Please specify the industry of this sub merchant here.
brandLogostringNsub merchant logo url
companyNamestringNThe legal name that is used in the registration.
registrationNumberstringYRegistration number/Company tax ID
registrationCountrystringYCountry of Registration
registrationAddressstringNAddress of Registration. Refer to link(https://merchant.binance.com/en/application-guidelines-merchant) for restricted registration addresses.
incorporationDatelongNThe date when the business registration is in effective.
certificateTypeintN1=ID 2=Passport
certificateCountrystringNCertificate country
certificateNumberstringNCertificate number
certificateValidDatelongNCertificate Valid Date
contractTimeIsvlongNContract date with ISV
blockKybUserPaymentbooleanNblock kyb users to pay this sub merchant, default false
businessRegistrationTypestringNThe type of business registration certificate 'UPLOAD' or 'SITE'
businessRegistrationValuestringNThe 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"
}

Result Code

NameCodeReasonSolution
UNKNOWN_ERROR400000An unknown error occurred while processing the request.Try again later
INVALID_REQUEST400001Parameter format is wrong or parameter transferring doesn't follow the rules.Please check whether the parameters are correct.
INVALID_SIGNATURE400002Incorrect signature resultCheck whether the signature parameter and method comply with signature algorithm requirements.
INVALID_TIMESTAMP400003Timestamp for this request is outside of the time window.Sync server clock
INVALID_API_KEY_OR_IP400004API identity key not found or invalid.Check API identity key
BAD_API_KEY_FMT400005API identity key format invalid.Check API identity key.
BAD_HTTP_METHOD400006Request method not supported.Check Request method.
MEDIA_TYPE_NOT_SUPPORTED400007Media type not supported.Check Request Media type.
INVALID_REQUEST_BODY400008Request body is not a valid json object.Check Request body
MANDATORY_PARAM_EMPTY_OR_MALFORMED400100A parameter was missing/empty/null, or malformed.
INVALID_PARAM_WRONG_LENGTH400101A parameter was not valid, was empty/null, or too long/short, or wrong format.
INVALID_PARAM_ILLEGAL_CHAR400103A parameter was not valid, contains illegal characters
INVALID_REQUEST_TOO_LARGE400104Invalid request, content length too large
INVALID_ACCOUNT_STATUS400203Not support for this account, please check account status.
SUB_MERCHANT_EXISTS400205Sub-merchant already exists.Please check merchant name
PAYMENT_MERCHANT_NOT_FOUND400208Merchant not found.Please check your merchantId
PAYMENT_ACTION_TOO_FREQUENT400501action Too Frequent, get the lock failTry again later