Skip to content

同步车辆入场通知

对商户提供同步车辆入场通知接口

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_serial_numberstring商户停车单号
parking_idstring微信停车场ID
plate_numberstring车牌号
enter_timestampinteger车辆入场时间
plate_colorstring车牌颜色
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_typestring车辆性质
PLATE_TYPE_UNKNOWN | PLATE_TYPE_TEMPORARY | PLATE_TYPE_MONTHLY | PLATE_TYPE_FREE | PLATE_TYPE_PREPAID | PLATE_TYPE_OTHERS 枚举值之一
vehicle_typestring车辆类型
VEHICLE_TYPE_UNKNOWN | VEHICLE_TYPE_SMALL | VEHICLE_TYPE_LARGE | VEHICLE_TYPE_EXTRA_LARGE | VEHICLE_TYPE_ALL_TYPE 枚举值之一
entrance_numberstring停车场入口编号
entrance_namestring停车场入口名称
discount_template_idinteger[]优惠信息模板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_numberstring微信停车单号

参阅 官方文档

Published on the GitHub by TheNorthMemory