查询用户分层对应建议先享金额
查询用户分层对应建议先享金额API。
请求参数 | 类型 | 描述 |
---|---|---|
service_id | string | 服务ID |
query | object | 声明请求的查询参数 |
sub_mchid | string | 子商户商户号 |
appid | string | 服务商的公众号ID |
sub_appid | string | 子商户的公众号ID |
risk_level_version | number | 分层版本 |
php
$instance->v3->payscore->partner->servicequotas->serviceId->_service_id_->getAsync([
'service_id' => '2002000000000558128851361561536',
'query' => [
'sub_mchid' => '1230000109',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'risk_level_version' => 1,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/partner/servicequotas/service-id/{service_id}')->getAsync([
'service_id' => '2002000000000558128851361561536',
'query' => [
'sub_mchid' => '1230000109',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'risk_level_version' => 1,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/partner/servicequotas/service-id/{service_id}']->getAsync([
'service_id' => '2002000000000558128851361561536',
'query' => [
'sub_mchid' => '1230000109',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'risk_level_version' => 1,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->partner->servicequotas->serviceId->_service_id_->get([
'service_id' => '2002000000000558128851361561536',
'query' => [
'sub_mchid' => '1230000109',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'risk_level_version' => 1,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/partner/servicequotas/service-id/{service_id}')->get([
'service_id' => '2002000000000558128851361561536',
'query' => [
'sub_mchid' => '1230000109',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'risk_level_version' => 1,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/partner/servicequotas/service-id/{service_id}']->get([
'service_id' => '2002000000000558128851361561536',
'query' => [
'sub_mchid' => '1230000109',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'risk_level_version' => 1,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
service_id | string | 服务ID |
mchid | string | 商户号 |
sub_mchid | string | 子商户商户号 |
appid | string | 公众号ID |
sub_appid | string | 子商户的公众号ID |
risk_level_version | number | 分层版本 |
quotas | object[] | 先享金额列表 |
risk_level | number | 用户分层 |
suggested_quota | number | 建议先享金额 |
参阅 官方文档