Skip to main content

Modify SubMerchant

Modify the Sub-merchant API to update submerchant details for order management. This feature is available exclusively for Partners.

EndPoint

POST /binancepay/openapi/submerchant/modify

Request Parameters

AttributesTypeRequiredLimitationDescription
subMerchantIdstringYmaximum length 128Sub-merchant ID returned by create sub-merchant api should be all number.
merchantNamestringYmaximum length 128The sub merchant name maximum length 128, unique under one mainMerchantId.
storeTypeintY0 or 10=Online , 1=Physical, -1=Online&Physical
merchantMccstringYSpecified codefour-digit number that classifies the business. Get from here
merchantTypeintN2=solo proprietor、 3=Partnership、4=Private company、5=Others company-
countrystringNiso alpha 2 country code(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), use "GO" if globalCountry/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.
siteUrlstringNmaximum length 256For Online stores, the URL field is required. (If your online store is an APP, please pass its link in the app store )
addressstringNmaximum length 1024For Physical stores, the address field is required.
payIndustryDescriptionstringNmaximum length 500Mandatory if merchantMcc is 9999. Please specify the industry of this sub merchant here.
subPayMccCodestringNSpecified codefour-digit number that classifies the business. Get from here
subPayIndustryDescriptionstringNSpecified codeMandatory if subPayMccCode is 9999. Please specify the industry of this sub merchant here.
brandLogostringNmaximum length 256sub merchant logo url
companyNamestringNmaximum length 64The legal name that is used in the registration.
registrationNumberstringYmaximum length 64Registration number/Company tax ID
registrationCountrystringYiso alpha 2 country code(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)Country of Registration
registrationAddressstringNmaximum length 1024Address of Registration. Refer to link(https://merchant.binance.com/en/application-guidelines-merchant) for restricted registration addresses.
incorporationDatelongNUnixTimestamp in millisecondsThe date when the business registration is in effective.
certificateTypeintN1 or 21=ID 2=Passport
certificateCountrystringNiso alpha 2 country code(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)Certificate country
certificateNumberstringNmaximum length 64Certificate number
certificateValidDatelongNUnixTimestamp in millisecondsCertificate Valid Date
contractTimeIsvlongNUnixTimestamp in millisecondsContract date with ISV
blockPayerKycCountriesListNiso alpha 2 country code(https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)Blocks payers from specified countries based on their KYC country. The list contains the countries to be blocked.
blockKybUserPaymentbooleanNtrue or falseblock kyb users to pay this sub merchant, default false
businessRegistrationUrlstringNmaximum length 1024business registration certificate URL
bettingOperationalCertificateUrlStringN(Y If merchantMcc = 1024)maximum length 2048Betting Operational Certificate Url

Sample Request Body

when merchant type is individual

{
"subMerchantId": "1111111",
"merchantName": "Individual",
"merchantType": 1,
"merchantMcc": "5511",
"brandLogo": null,
"country": "AE",
"address": null,
"companyName": null,
"registrationNumber": null,
"registrationCountry": null,
"registrationAddress": null,
"incorporationDate": null,
"storeType": null,
"siteUrl": null,
"certificateType": 1,
"certificateCountry": "AE",
"blockPayerKycCountries": [
"AR",
"MX"
],
"certificateNumber": "123456X",
"certificateValidDate": 1752422400000,
"contractTimeIsv": 1594656000000
}

when merchant type is not individual

{
"subMerchantId": "1111111",
"merchantName": "Sole Proprietor",
"merchantType": 2,
"merchantMcc": "5511",
"brandLogo": "logoUrlDemo",
"country": "AE",
"address": "store address demo",
"companyName": "Sole Proprietor",
"registrationNumber": "registration number demo",
"registrationCountry": "AE",
"registrationAddress": "registration address demo",
"incorporationDate": 1588262400000,
"storeType": 1,
"siteUrl": "site url demo",
"blockPayerKycCountries": [
"AR",
"MX"
],
"certificateType": null,
"certificateCountry": null,
"certificateNumber": null,
"certificateValidDate": null,
"contractTimeIsv": 1594656000000
}

Response Parameters

AttributesTypeRequiredLimitationDescription
statusstringY"SUCCESS" or "FAIL"status of the API request
codestringY-result code
dataAddSubMerchantResponseN-response body, refer to
errorMessagestringNmaximum length 256-

Child Attribute

AddSubMerchantResponse

AttributesTypeRequiredLimitationDescription
subMerchantIdlongY-unique sub-merchant id generated by payment

Sample Response

{
"status": "SUCCESS",
"code": "000000",
"data": true
}
{
"status": "FAIL",
"code": "400101",
"errorMessage": "Parameter 'merchantMcc' not valid, was empty/null, or too long/short, or wrong format."
}

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

MCC

CodeIndustryIndustry Description
1001Accommodation and Food ServicesHotels, Caterers, Restaurants, Bars, Cafes
1002Combined office administrative service activitiesOrganization / association, office administrative services, travel arrangements, locksmiths, janitorial / landscaping services, waste collection / treatment / disposal
1004Agriculture, Forestry and FishingCrop production, animal farming, aquaculture, fishing
1005Arts, Entertainment, and RecreationNon-betting related industry, such as Arts and Cultural, Sports and Recreation, Amusements and recreation industries, Theatre companies, Dance companies, Museums, Sports teams and clubs, Social App (such as livestreaming)
1006ConstructionBuilding, flooring, highway, bridge, glass construction/contractors
1007Crypto Exchange, Brokers, Market MakersCrypto OTC Broker Desk,Crypto OTC Principal Desk, Market Maker, Broker, Exchange service
1008Crypto ATM
1009Crypto MiningCrypto miner, mining pool, mining hardware
1010Proprietary Crypto Traders
1011Algorithm Crypto Traders
1012P2P Merchants
1013Other Digital Asset Services Provider (VASP)Digital Wallet Provider (Custodial), NFT Marketplace (Custodial), OTC Desk, Custody Service Providers, Decentralized Applications (dApp)
1014BankPrivate banking, investment banking, corporate banking, wealth management
1015Non-Bank Financial InstitutionInsurance companies, investment firms, microfinance providers, and leasing companies
1016Money Services Business and Payment Service Providers
1017Family Office
1018Personal Investment Companies
1019Superannuation Fund
1020Sovereign Wealth Fund
1021Investment FundsCollective investment schemes, mutual funds, hedge funds, private equity funds
1022Educational ServicesChild care, schools, universities, educational support services
1024BettingLegalised casino, online betting, gambling platform
1025Health Care and Social AssistanceHospitals, Nursing care facilities, Vocational rehabilitation services, Offices of physicians/dentists/optometrists, Medical practice activities,Social work activities
1026InformationNewspaper, record / music / motion picture production and distribution, radio and TV broadcasting
1027General WholesalersBuilding supplies, equipment, motor vehicles, household appliances, apparels, F&B wholesalers
1028Management of Companies and EnterprisesNon-Operating Asset Holding Companies, Head offices Management of Companies and Enterprises
1029Precious Stones and Precious Metals DealersProduction or trading of precious metals, precious stones or jewelry
1030Crude Oil and Natural Gas DealersProduction, refining and trading of oil and gas
1031General ManufacturingF&B manufacturing, breweries / wineries / distilleries, poultry processing, books printing, valves / motor vehicle manufacturing
1033Mining and ExtractionMining and quarrying, oil and gas extraction
1034Pawn Shops
1035Professional ServicesOffices of Lawyers, Notaries, other independent legal professionals and accountants, Trust and Company Service Providers, Professional Services, Consultancy activities, Marketing services, Software & IT Development & Consultancy services
1036Scientific research and development servicesScientific research and development services involve the systematic investigation and innovation aimed at advancing knowledge, technology, and solutions across various fields. These activities are crucial for driving progress, enhancing capabilities, and addressing complex challenges in society.
1037Public AdministrationFederal government / provincial and territorial public administration
1038Real Estate Rental and LeasingReal Estate Rental and Leasing sector involves renting, leasing, and managing residential, commercial, and industrial properties
1039Retail Stores - ElectronicsPhones, Computers, Cameras, Softwares, Electronic Product Supplies/Parts E-commerce (selling through websites, apps, and online marketplaces), Games (Non-betting)
1040Retail Stores - F&BRestaurants, bars, bakeries
1041Retail Stores - JewelryJewelry, watches
1042Retail Trade - OthersGasoline stations, clothing / shoe stores, florists, bookstores, newspaper stand, mini-marts, convenience store, supermarket, household appliances / supplies, hardware stores, beauty shop
1043Sale of Drugs and Pharmaceutical products (except Marijuana)
1044TobaccoSales of tobacco / farming of tobacco / manufacturing of tobacco
1045Transportation and WarehousingAir / rail / water / truck transportation, scenic and sightseeing transportation, postal service, warehousing and storage, automotive business
1046UtilitiesElectric power generation, transmission and distribution, sewage treatment facilities, water supply and irrigation systems, natural gas distribution
1047Other Crypto, Web3 services (non VASP)Digital Wallet Provider (Non Custodial), NFT Marketplace (Non Custodial), Decentralised Exchange (DEX), Trading Bots Providers Crypto Consultants, E-gaming (GameFi, P2E Games, Metaverse Games), Decentralised Autonomous Organisation (DAO), Cross-Chain Bridge Service Providers Blockchain as a Service (BaaS),Software as a Service (SaaS) Providers, API solution for payment services, Proprietary Trading Platforms
9999Other