Skip to content

获取还款链接接口

服务商后台获取垫资的还款链接、线下向用户核实后,人工转发给还款的微信号;然后通过后台接口进行解约,让用户使用其他微信号重新签约。

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_user_idstring商户用户ID
organization_idstring机构id
php
$instance->v3->offlineface->repaymentUrl->postAsync([
  'json' => [
    'out_user_id'     => '',
    'organization_id' => '',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/offlineface/repayment-url')->postAsync([
  'json' => [
    'out_user_id'     => '',
    'organization_id' => '',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/offlineface/repayment-url']->postAsync([
  'json' => [
    'out_user_id'     => '',
    'organization_id' => '',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->offlineface->repaymentUrl->post([
  'json' => [
    'out_user_id'     => '',
    'organization_id' => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlineface/repayment-url')->post([
  'json' => [
    'out_user_id'     => '',
    'organization_id' => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlineface/repayment-url']->post([
  'json' => [
    'out_user_id'     => '',
    'organization_id' => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
repayment_urlstring还款链接
expire_atstring链接过期时间

参阅 官方文档

Published on the GitHub by TheNorthMemory