同步车辆入场通知
对商户提供同步车辆入场通知接口
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| out_serial_number | string | 商户停车单号 |
| parking_id | string | 微信停车场ID |
| plate_number | string | 车牌号 |
| enter_timestamp | integer | 车辆入场时间 |
| plate_color | string | 车牌颜色PLATE_COLOR_UNKNOWN | PLATE_COLOR_BLUE | PLATE_COLOR_YELLOW | PLATE_COLOR_BLACK | PLATE_COLOR_WHITE | PLATE_COLOR_GREEN | PLATE_COLOR_YELLOW_GREEN | PLATE_COLOR_AGRICULTURAL_YELLOW | PLATE_COLOR_OTHER 枚举值之一 |
| car_type | string | 车辆性质PLATE_TYPE_UNKNOWN | PLATE_TYPE_TEMPORARY | PLATE_TYPE_MONTHLY | PLATE_TYPE_FREE | PLATE_TYPE_PREPAID | PLATE_TYPE_OTHERS 枚举值之一 |
| vehicle_type | string | 车辆类型VEHICLE_TYPE_UNKNOWN | VEHICLE_TYPE_SMALL | VEHICLE_TYPE_LARGE | VEHICLE_TYPE_EXTRA_LARGE | VEHICLE_TYPE_ALL_TYPE 枚举值之一 |
| entrance_number | string | 停车场入口编号 |
| entrance_name | string | 停车场入口名称 |
| discount_template_id | integer[] | 优惠信息模板ID |
php
$instance->v3->parking->reminders->entry->postAsync([
'json' => [
'out_serial_number' => 'PARK202407041530001',
'parking_id' => 'WXPARK001',
'plate_number' => '粤B12345',
'enter_timestamp' => 1720078200,
'plate_color' => 'PLATE_COLOR_BLUE',
'car_type' => 'PLATE_TYPE_TEMPORARY',
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
'entrance_number' => 'A01',
'entrance_name' => '南门入口',
'discount_template_id' => [1001],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/parking/reminders/entry')->postAsync([
'json' => [
'out_serial_number' => 'PARK202407041530001',
'parking_id' => 'WXPARK001',
'plate_number' => '粤B12345',
'enter_timestamp' => 1720078200,
'plate_color' => 'PLATE_COLOR_BLUE',
'car_type' => 'PLATE_TYPE_TEMPORARY',
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
'entrance_number' => 'A01',
'entrance_name' => '南门入口',
'discount_template_id' => [1001],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/parking/reminders/entry']->postAsync([
'json' => [
'out_serial_number' => 'PARK202407041530001',
'parking_id' => 'WXPARK001',
'plate_number' => '粤B12345',
'enter_timestamp' => 1720078200,
'plate_color' => 'PLATE_COLOR_BLUE',
'car_type' => 'PLATE_TYPE_TEMPORARY',
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
'entrance_number' => 'A01',
'entrance_name' => '南门入口',
'discount_template_id' => [1001],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->parking->reminders->entry->post([
'json' => [
'out_serial_number' => 'PARK202407041530001',
'parking_id' => 'WXPARK001',
'plate_number' => '粤B12345',
'enter_timestamp' => 1720078200,
'plate_color' => 'PLATE_COLOR_BLUE',
'car_type' => 'PLATE_TYPE_TEMPORARY',
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
'entrance_number' => 'A01',
'entrance_name' => '南门入口',
'discount_template_id' => [1001],
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/parking/reminders/entry')->post([
'json' => [
'out_serial_number' => 'PARK202407041530001',
'parking_id' => 'WXPARK001',
'plate_number' => '粤B12345',
'enter_timestamp' => 1720078200,
'plate_color' => 'PLATE_COLOR_BLUE',
'car_type' => 'PLATE_TYPE_TEMPORARY',
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
'entrance_number' => 'A01',
'entrance_name' => '南门入口',
'discount_template_id' => [1001],
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/parking/reminders/entry']->post([
'json' => [
'out_serial_number' => 'PARK202407041530001',
'parking_id' => 'WXPARK001',
'plate_number' => '粤B12345',
'enter_timestamp' => 1720078200,
'plate_color' => 'PLATE_COLOR_BLUE',
'car_type' => 'PLATE_TYPE_TEMPORARY',
'vehicle_type' => 'VEHICLE_TYPE_SMALL',
'entrance_number' => 'A01',
'entrance_name' => '南门入口',
'discount_template_id' => [1001],
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| serial_number | string | 微信停车单号 |
参阅 官方文档