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

# Webhooks Overview

> Receive real-time push notifications when vehicles enter, exit, complete payment, or when space counts change.

Webhooks notify your backend automatically via HTTPS `POST` whenever significant parking events occur, eliminating polling overhead.

## Unified Event Envelope

All webhook deliveries share the same top-level JSON structure:

```json theme={null}
{
  "id": "evt_01JDRH55E9",
  "type": "payment.succeeded",
  "createdAt": "2026-11-27T12:01:05+08:00",
  "facilityId": "MY-KL-001",
  "data": {
    "paymentId": "pay_01JDRBJ44Q",
    "externalOrderId": "ord_mall_20261127_9921",
    "sessionId": "ses_98a71c20f4",
    "credential": {
      "type": "PLATE",
      "value": "WXY1234"
    },
    "grossAmount": { "amount": 600, "currency": "MYR" },
    "discountAmount": { "amount": 200, "currency": "MYR" },
    "paidAmount": { "amount": 400, "currency": "MYR" },
    "paymentMethod": "DIGITAL_WALLET",
    "paymentProvider": "GRABPAY",
    "paymentSource": "PARTNER_APP",
    "appliedValidations": ["VAL-8821-ABCD"],
    "receiptNumber": "RCPT-20261127-00412",
    "receiptUrl": null,
    "exitAllowedUntil": "2026-11-27T12:16:05+08:00",
    "paidAt": "2026-11-27T12:01:05+08:00"
  }
}
```

## Delivery & Retry Policy

* **Fast acknowledgment**: Respond with any HTTP `2xx` status code within **5 seconds**. Perform heavy downstream work asynchronously in your own queue.
* **Retries**: Non-`2xx` responses or timeouts trigger automatic retries with exponential backoff over **24 hours** (approximately `10s`, `1m`, `5m`, `30m`, `2h`, `6h`, `12h`).
* **Idempotent consumption**: At-least-once delivery means duplicates can occasionally occur during network blips. Deduplicate incoming events using `event.id`.


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