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

# Get facility details and lane topology

> Retrieves full operational metadata for a single authorized park, including supported
vehicle credentials, configured vehicle classes, grace windows, zones with tagged bay
availability, and lane topology with hardware capabilities.

**Required scope:** `facilities:read`




## OpenAPI

````yaml /openapi/openapi.yaml post /v1/facilities/get
openapi: 3.1.0
info:
  title: AKE Parking International Open Platform API
  version: 1.0.0
  description: >-
    Zero-based, international-grade HTTP RPC specification for integrating
    third-party wallets,

    shopping mall loyalty apps, merchant POS systems, hotel/office property
    suites, and facility

    operations platforms with AKE Parking International facilities.


    Core design principles:

    - **Predictable HTTP RPC** (`POST /v1/<domain>/<action>`) with strict
    `camelCase` JSON payloads

    - **Partner-centric authorization** via Bearer API Keys bound to one or more
    facilities and scopes

    - **Deployment-agnostic contract** across Cloud Production, Cloud Sandbox,
    and Local Direct (LAN)

    - **International primitives**: generalized credentials (`PLATE`, `CARD`,
    `TICKET`, `QR_CODE` without
      country-specific fields), ISO 4217 integer minor units (supporting 0/2/3-decimal currencies),
      ISO 8601 timezone-aware timestamps, explicit tax breakdown, and cursor pagination
  contact:
    name: AKE Parking Developer Support
    url: https://www.akeparking.com
servers:
  - url: https://api.akeparking.com
    description: Cloud Production — Global SaaS production environment
  - url: https://sandbox-api.akeparking.com
    description: >-
      Cloud Sandbox — Isolated testing environment with simulated parks and
      devices
  - url: http://{host}:{port}
    description: Local Direct — On-premises LAN server deployment
    variables:
      host:
        default: 192.168.1.100
        description: Local parking server IP address or internal hostname
      port:
        default: '8080'
        description: Local API service port
security:
  - bearerAuth: []
tags:
  - name: Facilities & Occupancy
    description: >-
      Discover authorized facilities, inspect lane topologies and tariffs, and
      manage real-time occupancy counts.
  - name: Sessions & Vehicles
    description: >-
      Query active parked vehicles, historical sessions, correct recognized
      plates, and log manual entries.
  - name: Fees & Payments
    description: >-
      Obtain real-time parking fee quotes with tax and validation breakdowns,
      notify external payments, and process refunds.
  - name: Validations & Merchants
    description: >-
      Browse participating merchants and validation templates, grant digital
      vouchers, claim codes, revoke unused grants, and audit issuance.
  - name: Subscriptions
    description: >-
      Manage subscription plans and long-term parking subscriptions across
      period, stored-value, visit-pack, and duration-pack models.
  - name: Access Lists & Visitors
    description: >-
      Issue timed visitor passes for hotel or office guests and maintain VIP
      allowlists and security blocklists.
  - name: Gates & Devices
    description: >-
      Inspect lane device health, trigger audited gate control operations,
      switch lane modes, send signage/voice prompts, and capture lane cameras.
paths:
  /v1/facilities/get:
    post:
      tags:
        - Facilities & Occupancy
      summary: Get facility details and lane topology
      description: >
        Retrieves full operational metadata for a single authorized park,
        including supported

        vehicle credentials, configured vehicle classes, grace windows, zones
        with tagged bay

        availability, and lane topology with hardware capabilities.


        **Required scope:** `facilities:read`
      operationId: getFacility
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FacilityIdRequest'
            example:
              facilityId: MY-KL-001
      responses:
        '200':
          description: Detailed facility configuration and lane topology.
          content:
            application/json:
              schema:
                type: object
                required:
                  - facility
                properties:
                  facility:
                    allOf:
                      - $ref: '#/components/schemas/FacilitySummary'
                      - type: object
                        required:
                          - supportedCredentials
                          - entryGraceMinutes
                          - exitGraceMinutes
                          - areas
                          - lanes
                        properties:
                          supportedCredentials:
                            type: array
                            items:
                              $ref: '#/components/schemas/CredentialType'
                          supportedVehicleClasses:
                            type: array
                            items:
                              type: object
                              required:
                                - code
                                - name
                              properties:
                                code:
                                  $ref: '#/components/schemas/VehicleClass'
                                customClassCode:
                                  type:
                                    - string
                                    - 'null'
                                name:
                                  type: string
                          entryGraceMinutes:
                            type: integer
                            minimum: 0
                            description: >-
                              Complimentary stay window after initial entry if
                              unpaid.
                          exitGraceMinutes:
                            type: integer
                            minimum: 0
                            description: Allowed exit window after fee settlement.
                          areas:
                            type: array
                            items:
                              $ref: '#/components/schemas/AreaInfo'
                          lanes:
                            type: array
                            items:
                              $ref: '#/components/schemas/LaneInfo'
              example:
                facility:
                  facilityId: MY-KL-001
                  name: Pavilion Sentral Parking
                  countryCode: MY
                  timezone: Asia/Kuala_Lumpur
                  currency: MYR
                  address: 168 Jalan Bukit Bintang, 55100 Kuala Lumpur
                  coordinates:
                    latitude: 3.1489
                    longitude: 101.7133
                  entryGraceMinutes: 15
                  exitGraceMinutes: 15
                  totalSpaces: 1200
                  availableSpaces: 342
                  status: ONLINE
                  supportedCredentials:
                    - PLATE
                    - TICKET
                    - QR_CODE
                    - CARD
                  supportedVehicleClasses:
                    - code: STANDARD
                      customClassCode: null
                      name: Passenger Car
                    - code: EV
                      customClassCode: null
                      name: Electric Vehicle
                    - code: MOTORCYCLE
                      customClassCode: null
                      name: Motorcycle
                  areas:
                    - areaCode: B1-MAIN
                      name: Basement 1 Main Zone
                      isPrimary: true
                      totalSpaces: 700
                      occupiedSpaces: 505
                      availableSpaces: 195
                      byTag:
                        - tag: PUBLIC
                          totalSpaces: 640
                          occupiedSpaces: 465
                          availableSpaces: 175
                        - tag: EV
                          totalSpaces: 60
                          occupiedSpaces: 40
                          availableSpaces: 20
                  lanes:
                    - laneId: LN-IN-01
                      name: North Entry Lane 1
                      direction: ENTRY
                      areaCode: B1-MAIN
                      mode: NORMAL
                      capabilities:
                        - LPR
                        - TICKET_DISPENSER
                        - QR_SCANNER
                        - CARD_READER
                      status: ONLINE
                    - laneId: LN-OUT-01
                      name: North Exit Lane 1
                      direction: EXIT
                      areaCode: B1-MAIN
                      mode: NORMAL
                      capabilities:
                        - LPR
                        - QR_SCANNER
                        - PAYMENT_TERMINAL
                      status: ONLINE
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    FacilityIdRequest:
      type: object
      required:
        - facilityId
      properties:
        facilityId:
          $ref: '#/components/schemas/FacilityId'
    FacilitySummary:
      type: object
      required:
        - facilityId
        - name
        - countryCode
        - timezone
        - currency
        - exitGraceMinutes
        - totalSpaces
        - availableSpaces
        - status
      properties:
        facilityId:
          $ref: '#/components/schemas/FacilityId'
        name:
          type: string
        countryCode:
          type: string
          minLength: 2
          maxLength: 2
        timezone:
          type: string
        currency:
          $ref: '#/components/schemas/CurrencyCode'
        address:
          type: string
        coordinates:
          $ref: '#/components/schemas/Coordinates'
        exitGraceMinutes:
          type: integer
          minimum: 0
        totalSpaces:
          type: integer
        availableSpaces:
          type: integer
        status:
          type: string
          enum:
            - ONLINE
            - OFFLINE
    CredentialType:
      type: string
      enum:
        - PLATE
        - CARD
        - TICKET
        - QR_CODE
      description: >-
        Generalized entry/exit credential types: `PLATE` (normalized uppercase
        ASCII without spaces/hyphens), `CARD` (physical/RFID/tokenized card ID —
        never pass raw payment card PAN), `TICKET` (paper/barcode ticket ID),
        `QR_CODE` (QR or app user code).
    VehicleClass:
      type: string
      enum:
        - STANDARD
        - MOTORCYCLE
        - LARGE
        - OTHER
      default: STANDARD
      description: >-
        Physical vehicle classification used for clearance and tariff tiers:
        `STANDARD`, `MOTORCYCLE`, `LARGE` (SUV/van/oversized/bus), or `OTHER`.
    AreaInfo:
      type: object
      required:
        - areaCode
        - name
        - isPrimary
        - totalSpaces
        - occupiedSpaces
        - availableSpaces
        - byTag
      properties:
        areaCode:
          type: string
        name:
          type: string
        isPrimary:
          type: boolean
        totalSpaces:
          type: integer
        occupiedSpaces:
          type: integer
        availableSpaces:
          type: integer
        byTag:
          type: array
          items:
            $ref: '#/components/schemas/SpaceTagCount'
    LaneInfo:
      type: object
      required:
        - laneId
        - name
        - direction
        - mode
        - capabilities
        - status
      properties:
        laneId:
          type: string
        name:
          type: string
        direction:
          type: string
          enum:
            - ENTRY
            - EXIT
        areaCode:
          type: string
        mode:
          type: string
          enum:
            - NORMAL
            - PEAK
            - ALWAYS_OPEN
            - DISABLED
        capabilities:
          type: array
          items:
            type: string
            enum:
              - LPR
              - TICKET_DISPENSER
              - QR_SCANNER
              - CARD_READER
              - PAYMENT_TERMINAL
        status:
          type: string
          enum:
            - ONLINE
            - OFFLINE
    FacilityId:
      type: string
      description: Unique external facility identifier within your partner scope.
      example: MY-KL-001
    CurrencyCode:
      type: string
      minLength: 3
      maxLength: 3
      description: >-
        Three-letter uppercase ISO 4217 currency code (e.g. `MYR`, `SGD`, `USD`,
        `JPY`, `KWD`).
      example: MYR
    Coordinates:
      type: object
      required:
        - latitude
        - longitude
      properties:
        latitude:
          type: number
        longitude:
          type: number
    SpaceTagCount:
      type: object
      required:
        - tag
        - occupiedSpaces
        - availableSpaces
      properties:
        tag:
          type: string
          description: Space tag such as `PUBLIC`, `EV`, `VIP`, or `ACCESSIBLE`.
        totalSpaces:
          type: integer
        occupiedSpaces:
          type: integer
        availableSpaces:
          type: integer
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
            details:
              type:
                - object
                - 'null'
  responses:
    BadRequest:
      description: Invalid request payload or malformed parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: INVALID_REQUEST
              message: Field 'facilityId' is required.
              requestId: req_01JDR9X7V2M8K
              details: null
    Unauthorized:
      description: Missing, expired, or invalid API Key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNAUTHORIZED
              message: Invalid or missing API key.
              requestId: req_01JDR9X8A1P3Q
              details: null
    Forbidden:
      description: >-
        API Key lacks the required scope or does not have access to the
        requested `facilityId`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: FACILITY_ACCESS_DENIED
              message: This API key is not authorized to access facility MY-KL-009.
              requestId: req_01JDR9X9B4N7W
              details: null
    NotFound:
      description: Requested facility, session, subscription, or validation was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: SESSION_NOT_FOUND
              message: No active parking session matched credential WXY1234.
              requestId: req_01JDR9Y1C5R2Z
              details: null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >
        Partner API Key passed in the `Authorization` header: `Authorization:
        Bearer ak_live_...`

        (or `ak_test_...` for Cloud Sandbox, `ak_local_...` for Local Direct).

````

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