查询车牌服务开通信息
该接口仅支持停车场景,商户首先请求查询车牌服务开通信息接口,确认该车牌,是否被该用户开通车主服务。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
appid | string | 应用ID |
sub_mchid | string | 子商户号 |
plate_number | string | 车牌号 |
plate_color | string | 车牌颜色BLUE | GREEN | YELLOW | BLACK | WHITE | LIMEGREEN 枚举值之一 |
openid | string | 用户标识 |
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_number | string | 车牌号 |
plate_color | string | 车牌颜色BLUE | GREEN | YELLOW | BLACK | WHITE | LIMEGREEN 枚举值之一 |
service_open_time | string | 车牌服务开通时间 |
openid | string | 用户标识 |
service_state | string | 车牌服务开通状态 |
参阅 官方文档