# `AshBilling.WebhookSync`
[🔗](https://github.com/sfelixalejandro/ash_billing/blob/v0.1.3/lib/ash_billing/webhook_sync.ex#L1)

Synchronizes incoming billing webhook events with Ash resources.

# `sync_event`

Processes a verified billing webhook event and synchronizes database state.

## Options

  * `:customer_resource` - The Ash resource for customers (e.g., `MyApp.Accounts.User`).
  * `:subscription_resource` - The Ash resource for subscriptions (e.g., `MyApp.Billing.Subscription`).
  * `:domain` - The Ash domain module to execute actions with.
  * `:authorize?` - Whether to perform authorization checks. Defaults to `false` so webhooks run without requiring an active actor.
  * `:actor` - Optional system actor to run actions on behalf of.
  * `:tenant` - Optional tenant identifier for multitenant deployments.

---

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