通过协议号查询签约
商户通过签约协议号可查询签约信息,当合约不存在时返回NOT_FOUND错误码
请求参数 | 类型 | 描述 |
---|---|---|
contract_id | string | 签约协议号 |
php
$instance->v3->eduschoolpay->contracts->_contract_id_->getAsync([
'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/eduschoolpay/contracts/{contract_id}')->getAsync([
'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/eduschoolpay/contracts/{contract_id}']->getAsync([
'contract_id' => '2045011120563805041758214605',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->eduschoolpay->contracts->_contract_id_->get([
'contract_id' => '2045011120563805041758214605',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/eduschoolpay/contracts/{contract_id}')->get([
'contract_id' => '2045011120563805041758214605',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/eduschoolpay/contracts/{contract_id}']->get([
'contract_id' => '2045011120563805041758214605',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
contract_id | string | 签约协议号 |
mchid | string | 商户号 |
appid | string | 商户appid |
openid | string | 商户appid下的用户标识 |
plan_id | string | 签约模板号 |
contract_status | string | 签约状态 |
create_time | string | 签约时间 |
out_contract_code | string | 外部签约号 |
参阅 官方文档