> ## Documentation Index
> Fetch the complete documentation index at: https://openapi-docs.yidianting.cc/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 酒店与写字楼访客方案

> 打通酒店 PMS 入住/退房系统与写字楼前台访客系统，实现住客与来宾车辆自动免停放行。

酒店、服务式公寓与甲级写字楼可在前台办理入住（Check-in）或访客登记时自动下发限时段免费通行授权。

## 全生命周期流程

```mermaid theme={null}
sequenceDiagram
  autonumber
  participant PMS as "酒店 PMS / 访客系统"
  participant AKE as "AKE Parking API"

  PMS->>AKE: "POST /v1/visitors/create (credential, validFrom..validUntil)"
  AKE-->>PMS: "visitorId, status: SCHEDULED | ACTIVE, remainingEntries"
  Note over PMS,AKE: 来宾在有效时间窗内自动进出车场
  PMS->>AKE: "POST /v1/visitors/cancel (退房或取消预约时调用)"
  AKE-->>PMS: "status: CANCELLED"
```

## 最佳实践

* **传入标准化 `credential` 对象**：只需传入 `{ "type": "PLATE", "value": "WXY1234" }`（去除空格与连字符的大写编码）并填写 `hostUnit`（房号或租户单元号），方便前台通过 `POST /v1/visitors/list` 按房号检索。
* **合理配置出入次数 `maxEntries`**：商务访客一般设 `maxEntries: 1`；酒店住客入住期间需频繁进出，可设多次或直接传 `maxEntries: null`（有效期内不限次进出）。
* **退房即刻取消**：旅客提前退房或取消预订时立即调用 `POST /v1/visitors/cancel` 收回免费权益。
* **前台辅助改车牌**：遇到相机识别偏差时，前台可通过 `POST /v1/sessions/listActive` 检索在场车辆并调用 `POST /v1/sessions/correctPlate` 纠正车牌。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.