Skip to content

发送扣款预通知

给用户发送扣款预通知

请求参数类型描述
contract_idstring签约协议号
jsonobject声明请求的JSON数据结构
appidstring服务商APPID
sub_mchidstring子商户号
sub_appidstring子商户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);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory