Skip to content

解约

商户通过调用该接口可主动解除与用户的签约关系,在商户查询时不会返回已解约的信息

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

参阅 官方文档

Published on the GitHub by TheNorthMemory