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

# List validation templates

> Lists available digital parking voucher templates configured for merchants under a park,
covering prepaid inventory batches (`PREPAID`) and pay-as-you-go templates (`POSTPAID`)
with stacking, custom-value, and multi-park eligibility metadata.

**Required scope:** `validations:read`




## OpenAPI

````yaml /openapi/openapi.yaml post /v1/validations/templates/list
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/validations/templates/list:
    post:
      tags:
        - Validations & Merchants
      summary: List validation templates
      description: >
        Lists available digital parking voucher templates configured for
        merchants under a park,

        covering prepaid inventory batches (`PREPAID`) and pay-as-you-go
        templates (`POSTPAID`)

        with stacking, custom-value, and multi-park eligibility metadata.


        **Required scope:** `validations:read`
      operationId: listValidationTemplates
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - facilityId
              properties:
                facilityId:
                  $ref: '#/components/schemas/FacilityId'
                merchantCode:
                  type: string
                settlementModel:
                  $ref: '#/components/schemas/ValidationSettlementModel'
                status:
                  type: string
                  enum:
                    - ACTIVE
                    - EXHAUSTED
                    - DISABLED
            example:
              facilityId: MY-KL-001
              merchantCode: MRC-DINING-01
      responses:
        '200':
          description: Matching validation templates.
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/ValidationTemplate'
              example:
                items:
                  - templateId: tpl_2hr_dining
                    merchantCode: MRC-DINING-01
                    title: 2-Hour Dining Validation
                    discountType: FREE_MINUTES
                    discountValue: 120
                    currency: null
                    settlementModel: POSTPAID
                    inventoryBatchId: null
                    allowCustomValue: false
                    maxCustomValue: null
                    stackable: true
                    maxStackCount: 2
                    minParkingFee:
                      amount: 200
                      currency: MYR
                    validDurationDays: 1
                    remainingQuota: null
                    applicableFacilityIds:
                      - MY-KL-001
                    status: ACTIVE
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    FacilityId:
      type: string
      description: Unique external facility identifier within your partner scope.
      example: MY-KL-001
    ValidationSettlementModel:
      type: string
      enum:
        - PREPAID
        - POSTPAID
    ValidationTemplate:
      type: object
      required:
        - templateId
        - merchantCode
        - title
        - discountType
        - settlementModel
        - allowCustomValue
        - stackable
        - maxStackCount
        - applicableFacilityIds
        - status
      properties:
        templateId:
          type: string
        merchantCode:
          type: string
        title:
          type: string
        discountType:
          $ref: '#/components/schemas/ValidationDiscountType'
        discountValue:
          type:
            - integer
            - 'null'
        currency:
          type:
            - string
            - 'null'
        settlementModel:
          $ref: '#/components/schemas/ValidationSettlementModel'
        inventoryBatchId:
          type:
            - string
            - 'null'
        allowCustomValue:
          type: boolean
        maxCustomValue:
          type:
            - integer
            - 'null'
        stackable:
          type: boolean
        maxStackCount:
          type: integer
        minParkingFee:
          oneOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
        validDurationDays:
          type:
            - integer
            - 'null'
        remainingQuota:
          type:
            - integer
            - 'null'
        applicableFacilityIds:
          type: array
          items:
            $ref: '#/components/schemas/FacilityId'
        status:
          type: string
          enum:
            - ACTIVE
            - EXHAUSTED
            - DISABLED
    ValidationDiscountType:
      type: string
      enum:
        - FREE_MINUTES
        - FIXED_AMOUNT
        - PERCENTAGE
        - CAPPED_RATE
        - FULL_WAIVER
        - MULTI_USE_WAIVER
    Money:
      type: object
      required:
        - amount
        - currency
      properties:
        amount:
          type: integer
          description: >
            Integer amount in ISO 4217 minor currency units:

            - 2-decimal currencies (`MYR`, `SGD`, `USD`, `EUR`): `1550` =
            `15.50`

            - 0-decimal currencies (`JPY`, `KRW`, `VND`): `1550` = `1550`

            - 3-decimal currencies (`KWD`, `BHD`): `1550` = `1.550`
        currency:
          $ref: '#/components/schemas/CurrencyCode'
    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'
    CurrencyCode:
      type: string
      minLength: 3
      maxLength: 3
      description: >-
        Three-letter uppercase ISO 4217 currency code (e.g. `MYR`, `SGD`, `USD`,
        `JPY`, `KWD`).
      example: MYR
  responses:
    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
  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.