发送扣款预通知
给用户发送扣款预通知
请求参数 | 类型 | 描述 |
---|---|---|
contract_id | string | 签约协议号 |
json | object | 声明请求的JSON 数据结构 |
appid | string | 服务商APPID |
sub_mchid | string | 子商户号 |
sub_appid | string | 子商户APPID |
php
$instance->v3->eduPapay->userNotifications->_contract_id_->send->postAsync([
'contract_id' => 'wx8888888888888888',
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/edu-papay/user-notifications/{contract_id}/send')->postAsync([
'contract_id' => 'wx8888888888888888',
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/edu-papay/user-notifications/{contract_id}/send']->postAsync([
'contract_id' => 'wx8888888888888888',
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->eduPapay->userNotifications->_contract_id_->send->post([
'contract_id' => 'wx8888888888888888',
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/edu-papay/user-notifications/{contract_id}/send')->post([
'contract_id' => 'wx8888888888888888',
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/edu-papay/user-notifications/{contract_id}/send']->post([
'contract_id' => 'wx8888888888888888',
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档