更新品牌门店
更新时间:2025.08.04根据品牌门店ID,更新门店资料。
频率限制:5/s
接口说明
支持商户:【品牌商户】
请求方式:【PATCH】/brand/store/brandstores/{store_id}
请求域名:【主域名】https://api.mch.weixin.qq.com 使用该域名将访问就近的接入点
【备域名】https://api2.mch.weixin.qq.com 使用该域名将访问异地的接入点 ,指引点击查看
请求参数
Header HTTP头参数
Authorization 必填 string
请参考签名认证生成认证信息
Accept 必填 string
请设置为application/json
Content-Type 必填 string
请设置为application/json
Wechatpay-Serial 必填 string
【微信支付公钥ID】 请传入brand_id对应的微信支付公钥ID,接口将会校验两者的关联关系,参考微信支付公钥产品简介及使用说明获取微信支付公钥ID和相关的介绍。以下两种场景将使用到微信支付公钥: 1、接收到接口的返回内容,需要使用微信支付公钥进行验签; 2、调用含有敏感信息参数(如姓名、身份证号码)的接口时,需要使用微信支付公钥加密敏感信息后再传输参数,加密指引请参考微信支付公钥加密敏感信息指引。
path 路径参数
store_id 必填 string
【品牌门店ID】 创建品牌门店后,系统为该门店分配的唯一ID。
body 包体参数
store_basics 选填 object
【门店基础信息】 用于描述门店编码,名称等基本情况。
| 属性 | |
store_reference_id 选填 string(32) 【商家门店编号】 商家内部的门店编号,最长32位字符;商家自行保证该编码在商家内部的唯一性。不允许有符号表情。 此字段为免审字段(仅修改免审字段时,将会直接更新门店,无需审核)。 branch_name 选填 string(50) 【门店名称】 只需填写纯粹的分店名称,例如:"南山店"、"朝阳门店"、"天河城店"
|
store_address 选填 object
【门店地址信息】 用于描述门店地址,经纬度等地理位置相关情况。
| 属性 | |
address_code 必填 string(20) 【门店省市编码】 门店所在省市区编码,只能由数字组成;详细参见微信支付提供的省市对照表。 address_detail 必填 string(200) 【门店地址】 门店地址为核心重要信息,请准确填写并精确到门牌号,该信息涉及到地址核实、营销活动等业务,说明:不要重复填写省市区信息。 address_complements 选填 string(50) 【门店地址辅助描述】 门店周围标志性建筑,用于辅助定位。 longitude 选填 string(32) 【门店经度】 经度,取值在[-180,180]之间的数字,经度长度不能超过32个字符,腾讯地图经纬度查询:https://lbs.qq.com/tool/getpoint/index.html latitude 选填 string(32) 【门店纬度】 纬度,取值在[-90,90]之间的数字,纬度长度不能超过32个字符,腾讯地图经纬度查询:https://lbs.qq.com/tool/getpoint/index.html |
store_business 选填 object
【门店经营信息】 用于描述门店联系电话,经营时间等经营状况。
| 属性 | |
service_phone 选填 string(32) 【门店服务电话】 支持座机和手机,只支持数字和“-”符号,最多支持两个电话,两个电话间用英文竖线“|”区隔。 此字段为免审字段(仅修改免审字段时,将会直接更新门店,无需审核)。 business_hours 选填 string(256) 【门店经营时间】 经营时间需要使用指定格式,如下:
|
请求示例
PATCH
1curl -X PATCH \ 2 https://api.mch.weixin.qq.com/brand/store/brandstores/1234567890123456 \ 3 -H "Authorization: WECHATPAY-BRAND-SHA256-RSA2048 brand_id=\"XXXX\",..." \ 4 -H "Accept: application/json" \ 5 -H "Wechatpay-Serial: PUB_KEY_ID_XXXX" \ 6 -H "Content-Type: application/json" \ 7 -d '{ 8 "store_basics" : { 9 "store_reference_id" : "MDL001", 10 "branch_name" : "海岸城店" 11 }, 12 "store_address" : { 13 "address_code" : "440305", 14 "address_detail" : "深南大道10000号腾讯大厦1楼", 15 "address_complements" : "地铁A口右侧100米", 16 "longitude" : "112.63484", 17 "latitude" : "37.75464" 18 }, 19 "store_business" : { 20 "service_phone" : "0755-86013388|0755-86013399", 21 "business_hours" : "周一至周五 09:00-20:00|周六至周日 10:00-次日22:00" 22 } 23 }' 24
需配合微信支付工具库 WXPayUtility 使用,请参考Java
1package com.java.demo; 2 3import com.java.utils.WXPayBrandUtility; // 引用微信支付工具库,参考:https://pay.weixin.qq.com/doc/brand/4015826861 4 5import com.google.gson.annotations.SerializedName; 6import com.google.gson.annotations.Expose; 7import okhttp3.MediaType; 8import okhttp3.OkHttpClient; 9import okhttp3.Request; 10import okhttp3.RequestBody; 11import okhttp3.Response; 12 13import java.io.IOException; 14import java.io.UncheckedIOException; 15import java.security.PrivateKey; 16import java.security.PublicKey; 17import java.util.ArrayList; 18import java.util.HashMap; 19import java.util.List; 20import java.util.Map; 21 22/** 23 * 更新品牌门店 24 */ 25public class UpdateBrandStore { 26 private static String HOST = "https://api.mch.weixin.qq.com"; 27 private static String METHOD = "PATCH"; 28 private static String PATH = "/brand/store/brandstores/{store_id}"; 29 30 public static void main(String[] args) { 31 // TODO: 请准备商户开发必要参数,参考:https://pay.weixin.qq.com/doc/brand/4015415289 32 UpdateBrandStore client = new UpdateBrandStore( 33 "xxxxxxxx", // 品牌ID,是由微信支付系统生成并分配给每个品牌方的唯一标识符,品牌ID获取方式参考 https://pay.weixin.qq.com/doc/brand/4015415289 34 "1DDE55AD98Exxxxxxxxxx", // 品牌API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/brand/4015407570 35 "/path/to/apiclient_key.pem", // 品牌API证书私钥文件路径,本地文件路径 36 "PUB_KEY_ID_xxxxxxxxxxxxx", // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/brand/4015453439 37 "/path/to/wxp_pub.pem" // 微信支付公钥文件路径,本地文件路径 38 ); 39 40 UpdateBrandStoreRequest request = new UpdateBrandStoreRequest(); 41 request.storeId = "1234567890123456"; 42 request.storeBasics = new StoreBase(); 43 request.storeBasics.storeReferenceId = "MDL001"; 44 request.storeBasics.branchName = "海岸城店"; 45 request.storeAddress = new StoreLocation(); 46 request.storeAddress.addressCode = "440305"; 47 request.storeAddress.addressDetail = "深南大道10000号腾讯大厦1楼"; 48 request.storeAddress.addressComplements = "地铁A口右侧100米"; 49 request.storeAddress.longitude = "112.63484"; 50 request.storeAddress.latitude = "37.75464"; 51 request.storeBusiness = new StoreBusiness(); 52 request.storeBusiness.servicePhone = "0755-86013388|0755-86013399"; 53 request.storeBusiness.businessHours = "周一至周五 09:00-20:00|周六至周日 10:00-次日22:00"; 54 try { 55 BrandStoresEntity response = client.run(request); 56 // TODO: 请求成功,继续业务逻辑 57 System.out.println(response); 58 } catch (WXPayBrandUtility.ApiException e) { 59 // TODO: 请求失败,根据状态码执行不同的逻辑 60 e.printStackTrace(); 61 } 62 } 63 64 public BrandStoresEntity run(UpdateBrandStoreRequest request) { 65 String uri = PATH; 66 uri = uri.replace("{store_id}", WXPayBrandUtility.urlEncode(request.storeId)); 67 String reqBody = WXPayBrandUtility.toJson(request); 68 69 Request.Builder reqBuilder = new Request.Builder().url(HOST + uri); 70 reqBuilder.addHeader("Accept", "application/json"); 71 reqBuilder.addHeader("Wechatpay-Serial", wechatPayPublicKeyId); 72 reqBuilder.addHeader("Authorization", WXPayBrandUtility.buildAuthorization(brand_id, certificateSerialNo,privateKey, METHOD, uri, reqBody)); 73 reqBuilder.addHeader("Content-Type", "application/json"); 74 RequestBody requestBody = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), reqBody); 75 reqBuilder.method(METHOD, requestBody); 76 Request httpRequest = reqBuilder.build(); 77 78 // 发送HTTP请求 79 OkHttpClient client = new OkHttpClient.Builder().build(); 80 try (Response httpResponse = client.newCall(httpRequest).execute()) { 81 String respBody = WXPayBrandUtility.extractBody(httpResponse); 82 if (httpResponse.code() >= 200 && httpResponse.code() < 300) { 83 // 2XX 成功,验证应答签名 84 WXPayBrandUtility.validateResponse(this.wechatPayPublicKeyId, this.wechatPayPublicKey, 85 httpResponse.headers(), respBody); 86 87 // 从HTTP应答报文构建返回数据 88 return WXPayBrandUtility.fromJson(respBody, BrandStoresEntity.class); 89 } else { 90 throw new WXPayBrandUtility.ApiException(httpResponse.code(), respBody, httpResponse.headers()); 91 } 92 } catch (IOException e) { 93 throw new UncheckedIOException("Sending request to " + uri + " failed.", e); 94 } 95 } 96 97 private final String brand_id; 98 private final String certificateSerialNo; 99 private final PrivateKey privateKey; 100 private final String wechatPayPublicKeyId; 101 private final PublicKey wechatPayPublicKey; 102 103 public UpdateBrandStore(String brand_id, String certificateSerialNo, String privateKeyFilePath, String wechatPayPublicKeyId, String wechatPayPublicKeyFilePath) { 104 this.brand_id = brand_id; 105 this.certificateSerialNo = certificateSerialNo; 106 this.privateKey = WXPayBrandUtility.loadPrivateKeyFromPath(privateKeyFilePath); 107 this.wechatPayPublicKeyId = wechatPayPublicKeyId; 108 this.wechatPayPublicKey = WXPayBrandUtility.loadPublicKeyFromPath(wechatPayPublicKeyFilePath); 109 } 110 111 public static class UpdateBrandStoreRequest { 112 @SerializedName("store_id") 113 @Expose(serialize = false) 114 public String storeId; 115 116 @SerializedName("store_basics") 117 public StoreBase storeBasics; 118 119 @SerializedName("store_address") 120 public StoreLocation storeAddress; 121 122 @SerializedName("store_business") 123 public StoreBusiness storeBusiness; 124 } 125 126 public static class BrandStoresEntity { 127 @SerializedName("store_id") 128 public String storeId; 129 130 @SerializedName("store_state") 131 public StoreState storeState; 132 133 @SerializedName("audit_state") 134 public AuditState auditState; 135 136 @SerializedName("review_reject_reason") 137 public String reviewRejectReason; 138 139 @SerializedName("store_basics") 140 public StoreBase storeBasics; 141 142 @SerializedName("store_address") 143 public StoreLocation storeAddress; 144 145 @SerializedName("store_business") 146 public StoreBusiness storeBusiness; 147 148 @SerializedName("store_recipient") 149 public List<StoreRecipient> storeRecipient; 150 } 151 152 public static class StoreBase { 153 @SerializedName("store_reference_id") 154 public String storeReferenceId; 155 156 @SerializedName("branch_name") 157 public String branchName; 158 } 159 160 public static class StoreLocation { 161 @SerializedName("address_code") 162 public String addressCode; 163 164 @SerializedName("address_detail") 165 public String addressDetail; 166 167 @SerializedName("address_complements") 168 public String addressComplements; 169 170 @SerializedName("longitude") 171 public String longitude; 172 173 @SerializedName("latitude") 174 public String latitude; 175 } 176 177 public static class StoreBusiness { 178 @SerializedName("service_phone") 179 public String servicePhone; 180 181 @SerializedName("business_hours") 182 public String businessHours; 183 } 184 185 public enum StoreState { 186 @SerializedName("OPEN") 187 OPEN, 188 @SerializedName("CREATING") 189 CREATING, 190 @SerializedName("CLOSED") 191 CLOSED 192 } 193 194 public enum AuditState { 195 @SerializedName("SUCCESS") 196 SUCCESS, 197 @SerializedName("PROCESSING") 198 PROCESSING, 199 @SerializedName("REJECTED") 200 REJECTED 201 } 202 203 public static class StoreRecipient { 204 @SerializedName("mchid") 205 public String mchid; 206 207 @SerializedName("company_name") 208 public String companyName; 209 210 @SerializedName("recipient_state") 211 public RecipientState recipientState; 212 } 213 214 public enum RecipientState { 215 @SerializedName("CONFIRMED") 216 CONFIRMED, 217 @SerializedName("ADMIN_REJECTED") 218 ADMIN_REJECTED, 219 @SerializedName("CONFIRMING") 220 CONFIRMING, 221 @SerializedName("TIMEOUT_REJECTED") 222 TIMEOUT_REJECTED 223 } 224 225} 226
需配合微信支付工具库 wxpay_utility 使用,请参考Go
1package main 2 3import ( 4 "bytes" 5 "demo/wxpay_brand_utility" // 引用微信支付工具库,参考 https://pay.weixin.qq.com/doc/brand/4015826866 6 "encoding/json" 7 "fmt" 8 "net/http" 9 "net/url" 10 "strings" 11) 12 13func main() { 14 // TODO: 请准备商户开发必要参数,参考:https://pay.weixin.qq.com/doc/brand/4015415289 15 config, err := wxpay_brand_utility.CreateBrandConfig( 16 "xxxxxxxx", // 品牌ID,是由微信支付系统生成并分配给每个品牌方的唯一标识符,品牌ID获取方式参考 https://pay.weixin.qq.com/doc/brand/4015415289 17 "1DDE55AD98Exxxxxxxxxx", // 品牌API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/brand/4015407570 18 "/path/to/apiclient_key.pem", // 品牌API证书私钥文件路径,本地文件路径 19 "PUB_KEY_ID_xxxxxxxxxxxxx", // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/brand/4015453439 20 "/path/to/wxp_pub.pem", // 微信支付公钥文件路径,本地文件路径 21 ) 22 if err != nil { 23 fmt.Println(err) 24 return 25 } 26 27 request := &UpdateBrandStoreRequest{ 28 StoreId: wxpay_brand_utility.String("1234567890123456"), 29 StoreBasics: &StoreBase{ 30 StoreReferenceId: wxpay_brand_utility.String("MDL001"), 31 BranchName: wxpay_brand_utility.String("海岸城店"), 32 }, 33 StoreAddress: &StoreLocation{ 34 AddressCode: wxpay_brand_utility.String("440305"), 35 AddressDetail: wxpay_brand_utility.String("深南大道10000号腾讯大厦1楼"), 36 AddressComplements: wxpay_brand_utility.String("地铁A口右侧100米"), 37 Longitude: wxpay_brand_utility.String("112.63484"), 38 Latitude: wxpay_brand_utility.String("37.75464"), 39 }, 40 StoreBusiness: &StoreBusiness{ 41 ServicePhone: wxpay_brand_utility.String("0755-86013388|0755-86013399"), 42 BusinessHours: wxpay_brand_utility.String("周一至周五 09:00-20:00|周六至周日 10:00-次日22:00"), 43 }, 44 } 45 46 response, err := UpdateBrandStore(config, request) 47 if err != nil { 48 fmt.Printf("请求失败: %+v\n", err) 49 // TODO: 请求失败,根据状态码执行不同的处理 50 return 51 } 52 53 // TODO: 请求成功,继续业务逻辑 54 fmt.Printf("请求成功: %+v\n", response) 55} 56 57func UpdateBrandStore(config *wxpay_brand_utility.BrandConfig, request *UpdateBrandStoreRequest) (response *BrandStoresEntity, err error) { 58 const ( 59 host = "https://api.mch.weixin.qq.com" 60 method = "PATCH" 61 path = "/brand/store/brandstores/{store_id}" 62 ) 63 64 reqUrl, err := url.Parse(fmt.Sprintf("%s%s", host, path)) 65 if err != nil { 66 return nil, err 67 } 68 reqUrl.Path = strings.Replace(reqUrl.Path, "{store_id}", url.PathEscape(*request.StoreId), -1) 69 reqBody, err := json.Marshal(request) 70 if err != nil { 71 return nil, err 72 } 73 httpRequest, err := http.NewRequest(method, reqUrl.String(), bytes.NewReader(reqBody)) 74 if err != nil { 75 return nil, err 76 } 77 httpRequest.Header.Set("Accept", "application/json") 78 httpRequest.Header.Set("Wechatpay-Serial", config.WechatPayPublicKeyId()) 79 httpRequest.Header.Set("Content-Type", "application/json") 80 authorization, err := wxpay_brand_utility.BuildAuthorization(config.BrandId(), config.CertificateSerialNo(), config.PrivateKey(), method, reqUrl.RequestURI(), reqBody) 81 if err != nil { 82 return nil, err 83 } 84 httpRequest.Header.Set("Authorization", authorization) 85 86 client := &http.Client{} 87 httpResponse, err := client.Do(httpRequest) 88 if err != nil { 89 return nil, err 90 } 91 respBody, err := wxpay_brand_utility.ExtractResponseBody(httpResponse) 92 if err != nil { 93 return nil, err 94 } 95 if httpResponse.StatusCode >= 200 && httpResponse.StatusCode < 300 { 96 // 2XX 成功,验证应答签名 97 err = wxpay_brand_utility.ValidateResponse( 98 config.WechatPayPublicKeyId(), 99 config.WechatPayPublicKey(), 100 &httpResponse.Header, 101 respBody, 102 ) 103 if err != nil { 104 return nil, err 105 } 106 response := &BrandStoresEntity{} 107 if err := json.Unmarshal(respBody, response); err != nil { 108 return nil, err 109 } 110 111 return response, nil 112 } else { 113 return nil, wxpay_brand_utility.NewApiException( 114 httpResponse.StatusCode, 115 httpResponse.Header, 116 respBody, 117 ) 118 } 119} 120 121type UpdateBrandStoreRequest struct { 122 StoreId *string `json:"store_id,omitempty"` 123 StoreBasics *StoreBase `json:"store_basics,omitempty"` 124 StoreAddress *StoreLocation `json:"store_address,omitempty"` 125 StoreBusiness *StoreBusiness `json:"store_business,omitempty"` 126} 127 128func (o *UpdateBrandStoreRequest) MarshalJSON() ([]byte, error) { 129 type Alias UpdateBrandStoreRequest 130 a := &struct { 131 StoreId *string `json:"store_id,omitempty"` 132 *Alias 133 }{ 134 // 序列化时移除非 Body 字段 135 StoreId: nil, 136 Alias: (*Alias)(o), 137 } 138 return json.Marshal(a) 139} 140 141type BrandStoresEntity struct { 142 StoreId *string `json:"store_id,omitempty"` 143 StoreState *StoreState `json:"store_state,omitempty"` 144 AuditState *AuditState `json:"audit_state,omitempty"` 145 ReviewRejectReason *string `json:"review_reject_reason,omitempty"` 146 StoreBasics *StoreBase `json:"store_basics,omitempty"` 147 StoreAddress *StoreLocation `json:"store_address,omitempty"` 148 StoreBusiness *StoreBusiness `json:"store_business,omitempty"` 149 StoreRecipient []StoreRecipient `json:"store_recipient,omitempty"` 150} 151 152type StoreBase struct { 153 StoreReferenceId *string `json:"store_reference_id,omitempty"` 154 BranchName *string `json:"branch_name,omitempty"` 155} 156 157type StoreLocation struct { 158 AddressCode *string `json:"address_code,omitempty"` 159 AddressDetail *string `json:"address_detail,omitempty"` 160 AddressComplements *string `json:"address_complements,omitempty"` 161 Longitude *string `json:"longitude,omitempty"` 162 Latitude *string `json:"latitude,omitempty"` 163} 164 165type StoreBusiness struct { 166 ServicePhone *string `json:"service_phone,omitempty"` 167 BusinessHours *string `json:"business_hours,omitempty"` 168} 169 170type StoreState string 171 172func (e StoreState) Ptr() *StoreState { 173 return &e 174} 175 176const ( 177 STORESTATE_OPEN StoreState = "OPEN" 178 STORESTATE_CREATING StoreState = "CREATING" 179 STORESTATE_CLOSED StoreState = "CLOSED" 180) 181 182type AuditState string 183 184func (e AuditState) Ptr() *AuditState { 185 return &e 186} 187 188const ( 189 AUDITSTATE_SUCCESS AuditState = "SUCCESS" 190 AUDITSTATE_PROCESSING AuditState = "PROCESSING" 191 AUDITSTATE_REJECTED AuditState = "REJECTED" 192) 193 194type StoreRecipient struct { 195 Mchid *string `json:"mchid,omitempty"` 196 CompanyName *string `json:"company_name,omitempty"` 197 RecipientState *RecipientState `json:"recipient_state,omitempty"` 198} 199 200type RecipientState string 201 202func (e RecipientState) Ptr() *RecipientState { 203 return &e 204} 205 206const ( 207 RECIPIENTSTATE_CONFIRMED RecipientState = "CONFIRMED" 208 RECIPIENTSTATE_ADMIN_REJECTED RecipientState = "ADMIN_REJECTED" 209 RECIPIENTSTATE_CONFIRMING RecipientState = "CONFIRMING" 210 RECIPIENTSTATE_TIMEOUT_REJECTED RecipientState = "TIMEOUT_REJECTED" 211) 212
应答参数
200 OK
store_id 选填 string
【品牌门店ID】 创建品牌门店后,系统为该门店分配的唯一ID。
store_state 选填 string
【门店状态】 用于描述门店当前状态
可选取值
OPEN: 门店生效中。门店审核通过创建成功后即为生效中,后续更新门店信息只会影响审核状态,不会改变门店状态,如门店暂停营业可调用“暂停门店营业 API”,如门店关闭可调用“删除品牌门店 API”。门店营业时间不影响门店状态。CREATING: 门店创建中。在创建门店后,门店资料正在审核。审核详情请查看审核状态。CLOSED: 门店停业中。不可用于微信支付生态中的其他业务,可删除该门店,删除后将无法恢复,请谨慎操作。
audit_state 选填 string
【审核状态】 创建、修改门店时,通过此字段可得知当前审核状态
可选取值
SUCCESS: 门店资料审核通过。PROCESSING: 门店资料审核中,请等待审核结果。REJECTED: 门店资料被驳回,请根据驳回原因进行修改。
review_reject_reason 选填 string
【审核失败原因】 门店资料审核失败的原因
store_basics 选填 object
【门店基础信息】 用于描述门店编码,名称等基本情况。
| 属性 | |
store_reference_id 选填 string(32) 【商家门店编号】 商家内部的门店编号,最长32位字符;商家自行保证该编码在商家内部的唯一性。不允许有符号表情。 此字段为免审字段(仅修改免审字段时,将会直接更新门店,无需审核)。 branch_name 选填 string(50) 【门店名称】 只需填写纯粹的分店名称,例如:"南山店"、"朝阳门店"、"天河城店"
|
store_address 选填 object
【门店地址信息】 用于描述门店地址,经纬度等地理位置相关情况。
| 属性 | |
address_code 必填 string(20) 【门店省市编码】 门店所在省市区编码,只能由数字组成;详细参见微信支付提供的省市对照表。 address_detail 必填 string(200) 【门店地址】 门店地址为核心重要信息,请准确填写并精确到门牌号,该信息涉及到地址核实、营销活动等业务,说明:不要重复填写省市区信息。 address_complements 选填 string(50) 【门店地址辅助描述】 门店周围标志性建筑,用于辅助定位。 longitude 选填 string(32) 【门店经度】 经度,取值在[-180,180]之间的数字,经度长度不能超过32个字符,腾讯地图经纬度查询:https://lbs.qq.com/tool/getpoint/index.html latitude 选填 string(32) 【门店纬度】 纬度,取值在[-90,90]之间的数字,纬度长度不能超过32个字符,腾讯地图经纬度查询:https://lbs.qq.com/tool/getpoint/index.html |
store_business 选填 object
【门店经营信息】 用于描述门店联系电话,经营时间等经营状况。
| 属性 | |
service_phone 选填 string(32) 【门店服务电话】 支持座机和手机,只支持数字和“-”符号,最多支持两个电话,两个电话间用英文竖线“|”区隔。 此字段为免审字段(仅修改免审字段时,将会直接更新门店,无需审核)。 business_hours 选填 string(256) 【门店经营时间】 经营时间需要使用指定格式,如下:
|
store_recipient 选填 array[object]
【门店收款信息】 门店收款商户列表。
| 属性 | |
mchid 选填 string(16) 【门店收款商户号】 门店的收款商户号,仅支持绑定品牌已关联的商户号。 company_name 选填 string(256) 【门店收款主体】 门店收款的主体信息,支持企业,个体户,小微。 recipient_state 选填 string 【收款绑定状态】 门店收款商户号的绑定状态 可选取值
|
应答示例
200 OK
1{ 2 "store_id" : "1234567890123456", 3 "store_state" : "OPEN", 4 "audit_state" : "SUCCESS", 5 "review_reject_reason" : "通过核实,您提交的电话错误,请核实手机号码或座机号码是否正确", 6 "store_basics" : { 7 "store_reference_id" : "MDL001", 8 "branch_name" : "海岸城店" 9 }, 10 "store_address" : { 11 "address_code" : "440305", 12 "address_detail" : "深南大道10000号腾讯大厦1楼", 13 "address_complements" : "地铁A口右侧100米", 14 "longitude" : "112.63484", 15 "latitude" : "37.75464" 16 }, 17 "store_business" : { 18 "service_phone" : "0755-86013388|0755-86013399", 19 "business_hours" : "周一至周五 09:00-20:00|周六至周日 10:00-次日22:00" 20 }, 21 "store_recipient" : [ 22 { 23 "mchid" : "1230000109", 24 "company_name" : "腾讯科技(深圳)有限公司", 25 "recipient_state" : "CONFIRMED" 26 } 27 ] 28} 29
错误码
以下是本接口返回的错误码列表。详细错误码规则,请参考微信支付接口规则-错误码和错误提示
状态码 | 错误码 | 描述 | 解决方案 |
|---|---|---|---|
400 | PARAM_ERROR | 参数错误 | 请根据错误提示正确传入参数 |
400 | INVALID_REQUEST | HTTP 请求不符合微信支付 APIv3 接口规则 | 请参阅 接口规则 |
401 | SIGN_ERROR | 验证不通过 | 请参阅 签名常见问题 |
500 | SYSTEM_ERROR | 系统异常,请稍后重试 | 请稍后重试 |
400 | PARAM_ERROR | 经营时间不合法,最多支持设置 7 个时间段 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 经营时间不合法,跨日经营的时间跨度不得超过 24小时 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 门店经度不合法 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 经营时间不合法 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 门店纬度不合法 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 分店名称不合法 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 门店地址编码不合法 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 服务电话不合法 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
400 | PARAM_ERROR | 门店状态暂不支持修改 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
404 | NOT_FOUND | 品牌门店不存在 | 请确认门店存在且属于该品牌 |
400 | ALREADY_EXISTS | 品牌门店已存在 | 请检查上传的门店信息或使用已有的门店 |
400 | PARAM_ERROR | 参数错误 | 请参考文档中对每个字段的要求以及组合要求,确认请求参数是否满足 |
429 | RATELIMIT_EXCEEDED | 请求超过频率限制 | 请稍后使用原参数重试 |
500 | SYSTEM_ERROR | 系统异常,请稍后重试 | 请稍后使用原参数重试 |

