> ## 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.

# 环境与接入地址

> 通过云端 API（生产 / 沙箱）或本地局域网直连服务器接入同一套标准接口契约。

AKE Parking 国际版开放平台支持**两种部署接入拓扑**。两种模式暴露完全一致的 `POST /v1/<domain>/<action>` 路径、请求字段与响应结构，同一套业务代码无需修改即可在云端车场与本地部署车场间无缝复用。

> [tab] 1. 云端 API（Cloud API）
>
> 当对接托管在 AKE Parking 云端平台的多车场运营方时，使用 **云端 API**。
>
> | 环境 | Base URL | API Key 前缀 | 用途说明 |
> | - | - | - | - |
> | **生产环境（Production）** | `https://api.akeparking.com` | `ak_live_` | 线上真实停车场、真实交易结算与道闸控制 |
> | **沙箱环境（Sandbox）** | `https://sandbox-api.akeparking.com` | `ak_test_` | 隔离测试环境，提供模拟车场与虚拟车辆进行联调 |
>
> ```bash theme={null}
> curl -X POST https://sandbox-api.akeparking.com/v1/facilities/list \
>   -H "Authorization: Bearer ak_test_98a1f04c2e1b4d7c" \
>   -H "Content-Type: application/json" \
>   -d '{"limit": 20}'
> ```

> [tab] 2. 本地直连 API（Local Direct API）
>
> 当您的系统与车场本地服务器部署在**同一局域网（LAN）或专网**内（例如离线园区或商场内网对接）时，使用 **本地直连 API**。
>
> 获取现场实施提供的车场本地服务器 IP 与端口后，按如下规则直接拼接请求地址：
>
> ```text theme={null}
> http://<local-server-ip>:<port>/v1/<domain>/<action>
> ```
>
> * **密钥前缀**：`ak_local_`（在车场本地管理控制台生成）
> * **通信协议**：隔离内网默认使用 HTTP；如现场配置了内网 TLS 证书，也可使用 HTTPS。
>
> ```bash theme={null}
> curl -X POST http://192.168.1.100:8080/v1/facilities/list \
>   -H "Authorization: Bearer ak_local_44e0b8c9d211" \
>   -H "Content-Type: application/json" \
>   -d '{"limit": 20}'
> ```

## 云端 vs. 本地直连选型对比

| 对比维度 | 云端 API | 本地直连 API |
| - | - | - |
| **网络要求** | 公网 HTTPS（TLS 1.2+） | 同一局域网（LAN / 专网 VLAN） |
| **多车场授权** | 单个合作方 API Key 可绑定多个车场 | 作用域仅限当前本地车场 |
| **测试环境** | 提供独立的 `sandbox-api.akeparking.com` | 使用现场测试服务器（若已配置） |
| **协议契约** | 完全一致的 `/v1/...` HTTP RPC 载荷 | 完全一致的 `/v1/...` HTTP RPC 载荷 |


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