# `Stripe.Services.Billing.AlertService`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/services/billing/alert_service.ex#L2)

ThresholdsResourceAlert

A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.

# `activate`

```elixir
@spec activate(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Activate a billing alert

Reactivates this alert, allowing it to trigger again.

# `archive`

```elixir
@spec archive(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Archive a billing alert

Archives this alert, removing it from the list view and APIs. This is non-reversible.

# `create`

```elixir
@spec create(Stripe.Client.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Create a billing alert

Creates a billing alert

# `deactivate`

```elixir
@spec deactivate(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Deactivate a billing alert

Deactivates this alert, preventing it from triggering.

# `list`

```elixir
@spec list(Stripe.Client.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

List billing alerts

Lists billing active and inactive alerts

# `retrieve`

```elixir
@spec retrieve(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Retrieve a billing alert

Retrieves a billing alert given an ID

---

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