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

# Quickstart

> Discover your authorized facilities, fetch a real-time parking fee quote, and submit your first payment confirmation in under 5 minutes.

## Prerequisites

Before making your first API call, obtain a **Partner API Key** from your AKE Parking portal administrator (`ak_test_...` for Cloud Sandbox, `ak_live_...` for Cloud Production, or `ak_local_...` for Local Direct).

**1. List your authorized facilities**

Every Partner API Key is bound to one or more authorized facilities. Call `POST /v1/facilities/list` to retrieve your `facilityId` values, currencies, and timezones.

```bash cURL theme={null}
curl -X POST https://sandbox-api.akeparking.com/v1/facilities/list \
  -H "Authorization: Bearer ak_test_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"limit": 20}'
```

```javascript Node.js theme={null}
const res = await fetch("https://sandbox-api.akeparking.com/v1/facilities/list", {
  method: "POST",
  headers: {
    "Authorization": "Bearer ak_test_your_api_key",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ limit: 20 })
});
const data = await res.json();
console.log(data.items);
```

```python Python theme={null}
import requests

resp = requests.post(
    "https://sandbox-api.akeparking.com/v1/facilities/list",
    headers={"Authorization": "Bearer ak_test_your_api_key"},
    json={"limit": 20},
    timeout=10,
)
print(resp.json()["items"])
```

**2. Request a real-time parking fee quote**

Pass an authorized `facilityId` and generalized vehicle `credential` (`PLATE`, `CARD`, `TICKET`, or `QR_CODE`) to `POST /v1/fees/quote`.

```bash cURL theme={null}
curl -X POST https://sandbox-api.akeparking.com/v1/fees/quote \
  -H "Authorization: Bearer ak_test_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "facilityId": "MY-KL-001",
    "credential": {
      "type": "PLATE",
      "value": "WXY1234"
    }
  }'
```

The response contains the `sessionId`, `quoteId`, applied merchant validations, tax breakdown (`taxBreakdown`), minor-unit `payableAmount` (for example `400 MYR` = RM 4.00), and the `expiresAt` timestamp.

**3. Notify payment completion**

Once the driver completes checkout in your app or wallet, call `POST /v1/payments/notify` with a unique `Idempotency-Key` header.

```bash cURL theme={null}
curl -X POST https://sandbox-api.akeparking.com/v1/payments/notify \
  -H "Authorization: Bearer ak_test_your_api_key" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
  -H "Content-Type: application/json" \
  -d '{
    "facilityId": "MY-KL-001",
    "sessionId": "ses_98a71c20f4",
    "quoteId": "qt_01JDRBH802K",
    "externalOrderId": "ord_mall_20261127_9921",
    "paidAmount": { "amount": 400, "currency": "MYR" },
    "paymentMethod": "DIGITAL_WALLET",
    "paymentProvider": "GRABPAY",
    "paymentSource": "PARTNER_APP",
    "paidAt": "2026-11-27T12:01:05+08:00"
  }'
```

The facility immediately marks the session settled and grants the configured exit grace period (or opens the barrier if `releaseExitLaneId` was supplied).

## Next Steps

> [card] [Authentication & Scopes](https://openapi-docs.yidianting.cc/docs/guides/authentication.md)
>
> Learn how Partner API Keys map to multiple facilities and granular permission scopes.

> [card] [Scan-to-Pay Recipe](https://openapi-docs.yidianting.cc/docs/guides/recipes/scan-to-pay.md)
>
> Review the complete production sequence including grace-period handling and retries.


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