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

# Frictionless Autopay

> Enable barrier-free automated wallet charging when enrolled vehicles reach an exit lane.

Digital wallets and mobility platforms can let enrolled members drive straight out of participating facilities without scanning a QR code or stopping to tap a phone.

## Event-Driven Autopay Flow

```mermaid theme={null}
sequenceDiagram
  autonumber
  participant Vehicle as "Enrolled Vehicle"
  participant AKE as "AKE Parking Platform"
  participant Wallet as "Partner Wallet Backend"

  Vehicle->>AKE: "Stops at Exit Lane (LN-OUT-01)"
  AKE->>Wallet: "Webhook: vehicle.exitIntercepted (sessionId, quoteId, payableAmount)"
  Wallet->>Wallet: "Verify signature & charge user wallet"
  Wallet->>AKE: "POST /v1/payments/notify (releaseExitLaneId: LN-OUT-01)"
  AKE-->>Wallet: "status: SUCCEEDED, gateReleased: true"
  AKE->>Vehicle: "Barrier raises automatically"
```

## Implementation Notes

**1. Verify enrollment on vehicle.entered (optional)**

Listen to `vehicle.entered` webhooks to check whether the arriving plate belongs to an active wallet autopay subscriber and notify the driver with a push welcome message.

**2. Charge promptly on vehicle.exitIntercepted**

Because the vehicle is physically waiting at the exit barrier, aim to execute your wallet charge and call `POST /v1/payments/notify` with `releaseExitLaneId` within 3 seconds.

**3. Fallback when debit fails**

If the wallet charge fails or times out, do not call `POST /v1/payments/notify`. The exit terminal keeps the barrier closed and displays the fallback payment options (on-site card tap or dynamic QR scan) so the driver can settle immediately at the lane.


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