# ledger_updated

> For the complete machine-readable documentation index, see [llms.txt](https://apidocs.chargebee.com/llms.txt).


Triggered when a batch of [ledger operations](/docs/api/ledger_operations) is persisted for a subscription unit. The event content includes the related `ledger_operations`, `ledger_account_balance`, `grant_blocks`, and `ledger_entries`.

## Event Schema

- `id` (string)
  Unique identifier for the event
- `occurred_at` (integer (unix timestamp))
  Timestamp when the event occurred
- `source` (string)
  Source that triggered the event (e.g., admin_console, api, scheduled_job)
- `object` (string)
  Always "event" for webhook events
- `api_version` (string)
  API version used for this event
- `event_type` (string)
  Type of the webhook event
- `webhook_status` (string)
  Status of the webhook delivery

- `content` (object)
  Content of the event

  - `ledger_account_balance` (object)
    The ledger_account_balance object affected by this event

## Sample Payload

```json
{
    "id": "ev_ledgerupdl6ga8k",
    "occurred_at": 1788418925,
    "source": "admin_console",
    "object": "event",
    "api_version": "v2",
    "event_type": "ledger_updated",
    "webhook_status": "not_applicable",
    "content": {
        "ledger_account_balance": {
            "subscription_id": "1mGETgZVF2umUZq",
            "unit_id": "ai_credits",
            "unit_type": "credit_unit",
            "created_at": 1746723600,
            "modified_at": 1774978599,
            "...": "..."
        }
    }
}
```

