# `AshBilling.WebhookEvent`
[🔗](https://github.com/sfelixalejandro/ash_billing/blob/v0.7.0/lib/ash_billing/webhook_event.ex#L1)

A Spark DSL extension for Ash resources representing processed webhook events.

Used for multi-node / distributed webhook deduplication across clustered application servers.

> ### Security Notice
> `AshBilling.WebhookEvent` is an internal deduplication resource. Its actions
> must remain internal to the application and must **never** be exposed through
> public APIs (such as `AshJsonApi`, `AshGraphql`, or public user forms), as mutating
> internal deduplication fields (`status`, `lease_token`, etc.) could compromise webhook integrity.

## Usage

    defmodule MyApp.Billing.WebhookEvent do
      use Ash.Resource,
        domain: MyApp.Billing,
        extensions: [AshBilling.WebhookEvent]

      actions do
        default_accept :*
        defaults [:read, :create, :update, :destroy]
      end
    end

# `billing_webhook_event`
*macro* 

---

*Consult [api-reference.md](api-reference.md) for complete listing*
