商户主动解约
商户通过调用该接口可主动解除与用户的签约关系。
请求参数 | 类型 | 描述 |
---|---|---|
contract_id | string | 签约协议号 |
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);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档