Skip to content

商户主动解约

商户通过调用该接口可主动解除与用户的签约关系。

请求参数类型描述
contract_idstring签约协议号
php
$instance->v3->eduschoolpay->contracts->_contract_id_->terminate->postAsync([
  'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/eduschoolpay/contracts/{contract_id}/terminate')->postAsync([
  'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/eduschoolpay/contracts/{contract_id}/terminate']->postAsync([
  'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->eduschoolpay->contracts->_contract_id_->terminate->post([
  'contract_id' => '2045011120563805041758214605',
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/eduschoolpay/contracts/{contract_id}/terminate')->post([
  'contract_id' => '2045011120563805041758214605',
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/eduschoolpay/contracts/{contract_id}/terminate']->post([
  'contract_id' => '2045011120563805041758214605',
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory