收付通子商户申请绑定支付分服务
已接入收付通的商户,在已完成支付分权限开通及服务入驻后,可通过该能力为关联的子商户完成与支付分服务的绑定
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
service_id | string | 服务ID |
appid | string | 服务商应用ID |
sub_mchid | string | 子商户商户号 |
sub_appid | string | 子商户应用ID |
out_apply_no | string | 商户申请绑定单号 |
result_notify_url | string | 绑定结果回调通知地址 |
php
$instance->v3->payscore->partner->serviceAccountApplications->postAsync([
'json' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1900000109',
'sub_appid' => 'wxd678efh567hg6787',
'out_apply_no' => '1234323JKHDFE1243252',
'result_notify_url' => 'https://api.test.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/partner/service-account-applications')->postAsync([
'json' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1900000109',
'sub_appid' => 'wxd678efh567hg6787',
'out_apply_no' => '1234323JKHDFE1243252',
'result_notify_url' => 'https://api.test.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/partner/service-account-applications']->postAsync([
'json' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1900000109',
'sub_appid' => 'wxd678efh567hg6787',
'out_apply_no' => '1234323JKHDFE1243252',
'result_notify_url' => 'https://api.test.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->partner->serviceAccountApplications->post([
'json' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1900000109',
'sub_appid' => 'wxd678efh567hg6787',
'out_apply_no' => '1234323JKHDFE1243252',
'result_notify_url' => 'https://api.test.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/partner/service-account-applications')->post([
'json' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1900000109',
'sub_appid' => 'wxd678efh567hg6787',
'out_apply_no' => '1234323JKHDFE1243252',
'result_notify_url' => 'https://api.test.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/partner/service-account-applications']->post([
'json' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1900000109',
'sub_appid' => 'wxd678efh567hg6787',
'out_apply_no' => '1234323JKHDFE1243252',
'result_notify_url' => 'https://api.test.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
service_id | string | 服务ID |
mchid | string | 服务商商户号 |
appid | string | 服务商应用ID |
sub_mchid | string | 子商户商户号 |
sub_appid | string | 子商户应用ID |
out_apply_no | string | 申请单号 |
result_notify_url | string | 绑定结果回调通知地址 |
apply_state | string | 受理状态 |
reject_reason | string | 拒绝原因 |