Skip to content

查询车牌服务开通信息

该接口仅支持停车场景,商户首先请求查询车牌服务开通信息接口,确认该车牌,是否被该用户开通车主服务。

请求参数类型描述
queryobject声明请求的查询参数
appidstring应用ID
sub_mchidstring子商户号
plate_numberstring车牌号
plate_colorstring车牌颜色
BLUE | GREEN | YELLOW | BLACK | WHITE | LIMEGREEN 枚举值之一
openidstring用户标识
php
$instance->v3->vehicle->parking->services->find->getAsync([
  'query' => [
    'appid' => 'wxcbda96de0b165486',
    'sub_mchid' => '1900000109',
    'plate_number' => '粤B888888',
    'plate_color' => 'BLUE',
    'openid' => 'oUpF8uMuAJOM2pxb1Q',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/vehicle/parking/services/find')->getAsync([
  'query' => [
    'appid' => 'wxcbda96de0b165486',
    'sub_mchid' => '1900000109',
    'plate_number' => '粤B888888',
    'plate_color' => 'BLUE',
    'openid' => 'oUpF8uMuAJOM2pxb1Q',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/vehicle/parking/services/find']->getAsync([
  'query' => [
    'appid' => 'wxcbda96de0b165486',
    'sub_mchid' => '1900000109',
    'plate_number' => '粤B888888',
    'plate_color' => 'BLUE',
    'openid' => 'oUpF8uMuAJOM2pxb1Q',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->vehicle->parking->services->find->get([
  'query' => [
    'appid' => 'wxcbda96de0b165486',
    'sub_mchid' => '1900000109',
    'plate_number' => '粤B888888',
    'plate_color' => 'BLUE',
    'openid' => 'oUpF8uMuAJOM2pxb1Q',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/vehicle/parking/services/find')->get([
  'query' => [
    'appid' => 'wxcbda96de0b165486',
    'sub_mchid' => '1900000109',
    'plate_number' => '粤B888888',
    'plate_color' => 'BLUE',
    'openid' => 'oUpF8uMuAJOM2pxb1Q',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/vehicle/parking/services/find']->get([
  'query' => [
    'appid' => 'wxcbda96de0b165486',
    'sub_mchid' => '1900000109',
    'plate_number' => '粤B888888',
    'plate_color' => 'BLUE',
    'openid' => 'oUpF8uMuAJOM2pxb1Q',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
plate_numberstring车牌号
service_open_timestring车牌服务开通时间
openidstring用户标识
service_statestring车牌服务开通状态

参阅 官方文档

Published on the GitHub by TheNorthMemory