Skip to content

查询用户分层对应建议先享金额

查询用户分层对应建议先享金额API。

请求参数类型描述
service_idstring服务ID
queryobject声明请求的查询参数
sub_mchidstring子商户商户号
appidstring服务商的公众号ID
sub_appidstring子商户的公众号ID
risk_level_versionnumber分层版本
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_idstring服务ID
mchidstring商户号
sub_mchidstring子商户商户号
appidstring公众号ID
sub_appidstring子商户的公众号ID
risk_level_versionnumber分层版本
quotasobject[]先享金额列表
risk_levelnumber用户分层
suggested_quotanumber建议先享金额

参阅 官方文档

Published on the GitHub by TheNorthMemory