Skip to content

商户查询用户欠款状态

商户通过调用该接口可主动查询微信用户的欠款状态。

请求参数类型描述
openidstring商户appid下的用户标识
php
$instance->v3->eduschoolpay->users->_openid_->debtState->getAsync([
  'openid' => 'oUpF8uMuAJOM2pxb1Q',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/eduschoolpay/users/{openid}/debt-state')->getAsync([
  'openid' => 'oUpF8uMuAJOM2pxb1Q',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/eduschoolpay/users/{openid}/debt-state']->getAsync([
  'openid' => 'oUpF8uMuAJOM2pxb1Q',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->eduschoolpay->users->_openid_->debtState->get([
  'openid' => 'oUpF8uMuAJOM2pxb1Q',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/eduschoolpay/users/{openid}/debt-state')->get([
  'openid' => 'oUpF8uMuAJOM2pxb1Q',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/eduschoolpay/users/{openid}/debt-state']->get([
  'openid' => 'oUpF8uMuAJOM2pxb1Q',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
appidstring商户appid
openidstring商户appid下的用户标识
statestring用户状态
debt_countinteger当前用户欠款笔数
update_timestring用户欠款状态更新时间

参阅 官方文档

Published on the GitHub by TheNorthMemory