Skip to content

签约查询接口

根据签约id查询签约信息。

请求参数类型描述
contract_idstring签约ID
queryobject声明请求的查询参数
appidstring商户签约小程序APPID
php
$instance->v3->offlineface->contracts->_contract_id_->getAsync([
  'contract_id' => 'CI8CD208Z7e9906f89',
  'query' => [
    'appid' => 'wx8888888888',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/offlineface/contracts/{contract_id}')->getAsync([
  'contract_id' => 'CI8CD208Z7e9906f89',
  'query' => [
    'appid' => 'wx8888888888',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/offlineface/contracts/{contract_id}']->getAsync([
  'contract_id' => 'CI8CD208Z7e9906f89',
  'query' => [
    'appid' => 'wx8888888888',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->offlineface->contracts->_contract_id_->get([
  'contract_id' => 'CI8CD208Z7e9906f89',
  'query' => [
    'appid' => 'wx8888888888',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlineface/contracts/{contract_id}')->get([
  'contract_id' => 'CI8CD208Z7e9906f89',
  'query' => [
    'appid' => 'wx8888888888',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlineface/contracts/{contract_id}']->get([
  'contract_id' => 'CI8CD208Z7e9906f89',
  'query' => [
    'appid' => 'wx8888888888',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
contract_idstring签约ID
mchidstring商户号
organization_idstring机构ID
use_idstring用户ID
openidstring签约用户openid
contract_statestring签约状态
NOT_CONTRACTED | TERMINATED | CONTRACTED 枚举值之一
contract_signed_timestring签约时间
contract_terminated_timestring解约时间
contract_modestring签约模式
LIMIT_BANK_CARD | PRIORITY_BANK_CARD | LIMIT_NONE 枚举值之一
contract_bank_card_fromstring签约卡来源
MERCHANT_LIMITED_BANK_CARD | USER_SELECT_FREE 枚举值之一

参阅 官方文档

Published on the GitHub by TheNorthMemory