Skip to content

解除自动还款协议

服务商可通过本接口使用服务商签约协议号来解除已经签订的自动还款协议

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_contract_codestring服务商签约协议号
contract_termination_remarkstring协议解约备注
php
$instance->v3->creditRepayment->partner->contracts->terminate->postAsync([
  'json' => [
    'out_contract_code'           => '100001256',
    'contract_termination_remark' => 'example_contract_termination_remark',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/credit-repayment/partner/contracts/terminate')->postAsync([
  'json' => [
    'out_contract_code'           => '100001256',
    'contract_termination_remark' => 'example_contract_termination_remark',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/credit-repayment/partner/contracts/terminate']->postAsync([
  'json' => [
    'out_contract_code'           => '100001256',
    'contract_termination_remark' => 'example_contract_termination_remark',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->creditRepayment->partner->contracts->terminate->post([
  'json' => [
    'out_contract_code'           => '100001256',
    'contract_termination_remark' => 'example_contract_termination_remark',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/credit-repayment/partner/contracts/terminate')->post([
  'json' => [
    'out_contract_code'           => '100001256',
    'contract_termination_remark' => 'example_contract_termination_remark',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/credit-repayment/partner/contracts/terminate']->post([
  'json' => [
    'out_contract_code'           => '100001256',
    'contract_termination_remark' => 'example_contract_termination_remark',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
contract_infoobject协议信息
contract_idstring协议ID
plan_idstring模板ID
out_contract_codestring服务商签约协议号
display_namestring用户展示名称
contract_statestring协议状态
CONTRACT_STATE_INVALID | CONTRACT_STATE_EFFECTIVE | CONTRACT_STATE_TERMINATED 枚举值之一
contract_signed_timestring协议签署时间
contract_terminated_timestring协议解约时间
contract_termination_modestring协议解约方式
TERMINATION_MODE_INVALID | TERMINATION_MODE_BY_USER | TERMINATION_MODE_BY_MERCHANT | TERMINATION_MODE_BY_CUSTOMER_SERVICE 枚举值之一
contract_termination_remarkstring协议解约备注
repayment_dayinteger还款日

参阅 官方文档

Published on the GitHub by TheNorthMemory