微信商户签约接口
接口说明
调用本接口前,请先调用<基础-商户入驻接口>完成基本信息的注册;
请求参数中的store_id由<基础-商户入驻接口>应答参数返回store_id;
只需微信刷卡和扫码的商户完成该接口的对接即可,如需对接微信公众号支付,则需继续对接微信子商户配置接口
请求方式
POST
方法名
fshows.liquidation.wx.submerchant.create.supplement
请求参数
参数 | 类型 | 是否必填 | 最大长度 | 描述 |
---|---|---|---|---|
store_id | String | 是 | 20 | 移动支付平台为商户分配的唯一id, 商户入驻后,由平台返回 |
merchant_name | String | 是 | 50 | 商户名称,该名称是公司主体全称,绑定公众号时会对主体一致性校验 |
merchant_shortname | String | 是 | 20 | 商户简称,该名称是显示给消费者看的商户名称 |
service_phone | String | 是 | 20 | 客服电话,方便微信在必要时能联系上商家,会在支付详情展示给消费者 |
business | String | 是 | 10 | 经营行业类目,请写对应的ID。点击查看 |
contact | String | 否 | 10 | 联系人(可传微信号和收款人微信账号,对应conteact_wxchatid_type) |
contact_phone | String | 否 | 11 | 联系电话 |
contact_email | String | 否 | 30 | 联系邮箱 |
contact_wechatid_type | String | 否 | 32 | 联系人微信账号类型,如传微信号,值为type_wechatid,如果“收款人微信账号”要传openid,值为type_openid |
contact_wechatid | String | 否 | 32 | 联系人微信账号 |
account_type | String | 否 | 1 | 账户类型: 0:当面付账户类型 ;1:小程序支付类型,(不传默认为0,即调用此接口得到的子商户号是当面付的微信子商户号) |
pay_type | String | 是 | 2 | 支付类型:3.(包含微信扫码支付、微信刷卡支付、公众号支付)、52(绿洲活动) |
请求示例
{
"business":"203",
"merchant_name":"良渚永旺大排档",
"merchant_remark":"良渚永旺大排档2222",
"merchant_shortname":"良渚永旺大排档",
"service_phone":"15888888888",
"contact": "张松",
"contact_phone":"15866668888",
"store_id":"20171012164045020123",
"pay_type":"3"
}
返回值
参数 | 类型 | 最大长度 | 描述 |
---|---|---|---|
sub_mch_id | String | 32 | 微信子商户号 |
成功返回示例:
{
"return_value": {
"sub_mch_id": "59971705"
},
"success": true
}
失败返回示例
{
"error_code": "-101",
"error_message": "无效参数",
"success": false
}