添加二级商户可扫码充值员工
收付通平台需通过调用此接口添加二级子商户的可扫码充值员工,添加成功后的用户即可进行微信支付扫码充值。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 二级商户号 |
sp_openid | string | 员工OpenID |
php
$instance->v3->platsolution->ecommerce->rechargeEmployees->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'sp_openid' => 'oLTPCuCsfN3ABBz50VUZBNlHDbUU',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/platsolution/ecommerce/recharge-employees')->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'sp_openid' => 'oLTPCuCsfN3ABBz50VUZBNlHDbUU',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/platsolution/ecommerce/recharge-employees']->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'sp_openid' => 'oLTPCuCsfN3ABBz50VUZBNlHDbUU',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->platsolution->ecommerce->rechargeEmployees->post([
'json' => [
'sub_mchid' => '1900000109',
'sp_openid' => 'oLTPCuCsfN3ABBz50VUZBNlHDbUU',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/ecommerce/recharge-employees')->post([
'json' => [
'sub_mchid' => '1900000109',
'sp_openid' => 'oLTPCuCsfN3ABBz50VUZBNlHDbUU',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/ecommerce/recharge-employees']->post([
'json' => [
'sub_mchid' => '1900000109',
'sp_openid' => 'oLTPCuCsfN3ABBz50VUZBNlHDbUU',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 二级商户号 |
sp_openid | string | 员工OpenID |
state | string | 员工状态EFFECTIVE 枚举值 |
create_time | string | 添加员工时间 |
update_time | string | 最后更新时间 |
参阅 官方文档