Skip to content

查询停车场信息

对商户提供查询停车场信息接口,返回停车场基础信息、启用状态及未启用/下线原因。适用对象与普通服务商一致,支持普通商户、普通服务商、平台商户(电商模式),与既有停车提醒 API 相同。

请求参数类型描述
queryobject声明请求的查询参数
out_parking_lot_idstring商户停车场ID
wx_parking_lot_idstring微信停车场ID
php
$instance->v3->parking->reminders->parkingLot->getAsync([
  'query' => [
    'out_parking_lot_id' => 'lot_sz_tencent_001',
    'wx_parking_lot_id'  => '21232735744117624001123604298240',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/parking/reminders/parking-lot')->getAsync([
  'query' => [
    'out_parking_lot_id' => 'lot_sz_tencent_001',
    'wx_parking_lot_id'  => '21232735744117624001123604298240',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/parking/reminders/parking-lot']->getAsync([
  'query' => [
    'out_parking_lot_id' => 'lot_sz_tencent_001',
    'wx_parking_lot_id'  => '21232735744117624001123604298240',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->parking->reminders->parkingLot->get([
  'query' => [
    'out_parking_lot_id' => 'lot_sz_tencent_001',
    'wx_parking_lot_id'  => '21232735744117624001123604298240',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/parking/reminders/parking-lot')->get([
  'query' => [
    'out_parking_lot_id' => 'lot_sz_tencent_001',
    'wx_parking_lot_id'  => '21232735744117624001123604298240',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/parking/reminders/parking-lot']->get([
  'query' => [
    'out_parking_lot_id' => 'lot_sz_tencent_001',
    'wx_parking_lot_id'  => '21232735744117624001123604298240',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
wx_parking_lot_idstring微信停车场ID
out_parking_lot_idstring商户停车场ID
parking_lot_namestring停车场名称
parking_lot_addressstring停车场地址
payment_mini_prog_appidstring支付小程序appid
payment_mini_prog_pathstring支付小程序path
parking_order_mini_prog_appidstring停车订单小程序appid
parking_order_mini_prog_pathstring停车订单小程序path
enabled_statestring启用状态,停车场启用状态
ENABLED_STATE_UNKNOWN | ENABLED_STATE_NOT_ENABLED | ENABLED_STATE_ENABLED | ENABLED_STATE_OFFLINE 枚举值之一
reasonstring原因

参阅 官方文档

Published on the GitHub by TheNorthMemory