Skip to content

通过商户ETC绑定号查询签约状态

通过商户etc绑定号查询签约状态。

请求参数类型描述
contract_idstring商户etc绑定号
queryobject声明请求的查询参数
sub_mchidstring特约商户号
php
$instance->v3->vehicle->etc->contracts->_contract_id_->getAsync([
  'contract_id' => 'aAfixCs13LsdKPpfZfDkk2189ssXjfx',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/vehicle/etc/contracts/{contract_id}')->getAsync([
  'contract_id' => 'aAfixCs13LsdKPpfZfDkk2189ssXjfx',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/vehicle/etc/contracts/{contract_id}']->getAsync([
  'contract_id' => 'aAfixCs13LsdKPpfZfDkk2189ssXjfx',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->vehicle->etc->contracts->_contract_id_->get([
  'contract_id' => 'aAfixCs13LsdKPpfZfDkk2189ssXjfx',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/vehicle/etc/contracts/{contract_id}')->get([
  'contract_id' => 'aAfixCs13LsdKPpfZfDkk2189ssXjfx',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/vehicle/etc/contracts/{contract_id}']->get([
  'contract_id' => 'aAfixCs13LsdKPpfZfDkk2189ssXjfx',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
appidstring发起签约的appid
sp_mchidstring服务商商户号
sp_openidstring用户在发起签约APP的标识
sub_appidstring子商户appid
sub_mchidstring特约商户号
contract_idstringETC扣费授权协议号
bind_statestringETC绑定状态
plate_numberstring绑定的车牌号
sub_openidstring用户在发起签约子APP的标识

参阅 官方文档

Published on the GitHub by TheNorthMemory