--- url: >- https://acquirer-api-docs-v4-en.pingpongx.com/en/notes/api/services/marketplaces/submerchant/updateSubmerchant/index.md description: >- The batch update sub-merchant API is used to update multiple sub-merchant information simultaneously. It is suitable for scenarios that require large-scale adjustment of sub-merchant data, supporting submission of multiple records in a single request to improve efficiency. Main functions include modifying sub-merchant name, status, and other key information. --- # Batch Update Sub-Merchant ```apidef endpoint: POST /merchant/acquirer/subMerchant/api/updateSubMerchant name: Batch Update Sub-Merchant API ``` The batch update sub-merchant API is used to update multiple sub-merchant information simultaneously. It is suitable for scenarios that require large-scale adjustment of sub-merchant data, supporting submission of multiple records in a single request to improve efficiency. Main functions include modifying sub-merchant name, status, and other key information. ## Request Parameters | Parameter | Type | Required | Description | |--------|------|------|------| | accId | string | M | Unique identifier for the store, which will appear in the response message after creation; inputting it means modifying the data | | clientId | string | M | PingPong Merchant ID | | signType | string | M | Supports MD5 , SHA256; for details, see the Signature Specification: /en/notes/guide/sign/ section of this document | | sign | string | M | Signature; for details, see the Signature Specification: /en/notes/guide/sign/ section of this document. All parameters participate in the signature | | version | string | M | Version number, currently fixed at 1.0, may be adjusted with changes to the interface in the future | | bizContent | string | M | Collection of request parameters, with no limit on maximum length. Except for common request parameters, all other request parameters must be passed within this parameter, format: JSON string | | └─ subMerchants | array | O | Sub-merchant collection | | └─ └─ subMerchantId | string | M | Sub-merchant number of the merchant platform | | └─ └─ subMerchantName | string | M | Sub-merchant name | | └─ └─ businessIdentityNumber | string | O | Sub-merchant organization code | | └─ └─ subMerchantStoreUrl | string | M | Store link | | └─ └─ subMerchantCountry | string | M | Country of the sub-merchant | | └─ └─ subMerchantAddress | string | O | Sub-merchant address | | └─ └─ subMerchantMcc | string | M | Merchant business category, MCC code | | └─ └─ subMerchantBrand | string | O | Merchant operating brand | ### Request Example ```json { "clientId": "2022110717083010293", "bizContent": "{\"subMerchants\":[{\"businessIdNumber\":\"91110105MA01ABCD2E\",\"subMerchantAddress\":\"北京市朝阳区建国路88号\",\"subMerchantBrand\":\"TechBrand\",\"subMerchantCountry\":\"CN\",\"subMerchantId\":\"SM001_1\",\"subMerchantMcc\":\"5732\",\"subMerchantName\":\"电子科技有限公司\",\"subMerchantUrl\":\"https://www.tech-company.com\"},{\"businessIdNumber\":\"91310115MA01EFGH3F_update\",\"subMerchantAddress\":\"上海市浦东新区陆家嘴环路1000号_update\",\"subMerchantBrand\":\"FoodChain\",\"subMerchantCountry\":\"CN\",\"subMerchantId\":\"SM002_2\",\"subMerchantMcc\":\"5311\",\"subMerchantName\":\"全球贸易有限公司_update\",\"subMerchantUrl\":\"https://www.global-trade.com\"},{\"businessIdNumber\":\"91440300MA01IJKL4G_update\",\"subMerchantAddress\":\"广州市天河区天河路385号_update\",\"subMerchantBrand\":\"FoodChain\",\"subMerchantCountry\":\"CN\",\"subMerchantId\":\"SM003\",\"subMerchantMcc\":\"5812\",\"subMerchantName\":\"美食餐饮连锁有限公司_update\",\"subMerchantUrl\":\"https://www.food-chain.com\"},{\"businessIdNumber\":\"91510100MA01MNOP5H_update\",\"subMerchantAddress\":\"成都市武侯区人民南路四段27号_update\",\"subMerchantBrand\":\"EduGlobal\",\"subMerchantCountry\":\"CN\",\"subMerchantId\":\"SM004\",\"subMerchantMcc\":\"8299\",\"subMerchantName\":\"国际教育培训中心_update\",\"subMerchantUrl\":\"https://www.edu-global.com\"}]}", "sign": "CA38ADC3326A2AFCEBAC524EC7CFF295B742F8FB6E01238E62AB8C6C7629F9D1", "accId": "2022110717083010293542", "signType": "SHA256", "version": "1.0" } ``` ## Response Parameters | Parameter | Type | Description | |--------|------|------| | accId | string | Unique store identifier, which will appear in the response message after being added; inputting it means modifying the data | | clientId | string | PingPong merchant number | | signType | string | Supports MD5 , SHA256; for details, see the Signature Specification: /en/notes/guide/sign/ section of this document | | sign | string | Signature; for details, see the Signature Specification: /en/notes/guide/sign/ section of this document. All parameters participate in the signature | | code | string | Result status code, see the appendix Status Code Table: /en/notes/appendix/successCodeList/ | | description | string | Result description | | bizContent | string | Business response parameters | | └─ subMerchants | array | 子商户集合 | | └─ └─ subMerchantId | string | 商户平台的子商户号 | ### Response Example ```json { "clientId": "2022110717083010293", "accId": "2022110717083010293542", "signType": "SHA256", "sign": "ECEEBC5B305C65F7EC2AF6527760E8A65AD7FEFD8B1F749E81A9FFBD02D3A7F4", "bizContent": "{\"subMerchants\":[{\"subMerchantId\":\"SM001_1\"},{\"subMerchantId\":\"SM002_2\"},{\"subMerchantId\":\"SM003\"},{\"subMerchantId\":\"SM004\"}]}", "code": "001000", "description": null } ```