# `PolarExpress.Services.LicenseKeysService`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/services/license_keys_service.ex#L2)

LicenseKeys

LicenseKeys API operations.

# `activate_license_key`

```elixir
@spec activate_license_key(PolarExpress.Client.t(), map(), keyword()) ::
  {:ok, PolarExpress.Schemas.LicenseKeyActivationRead.t()}
  | {:error, PolarExpress.Error.t()}
```

Activate License Key

Activate a license key instance.

**Scopes**: `license_keys:write`

See `PolarExpress.Params.LicenseKeysActivateLicenseKeyParams` for parameter details.

# `deactivate_license_key`

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

Deactivate License Key

Deactivate a license key instance.

**Scopes**: `license_keys:write`

See `PolarExpress.Params.LicenseKeysDeactivateLicenseKeyParams` for parameter details.

# `get_activation`

```elixir
@spec get_activation(
  PolarExpress.Client.t(),
  String.t(),
  String.t(),
  map(),
  keyword()
) ::
  {:ok, PolarExpress.Schemas.LicenseKeyActivationRead.t()}
  | {:error, PolarExpress.Error.t()}
```

Get Activation

Get a license key activation.

**Scopes**: `license_keys:read` `license_keys:write`

See `PolarExpress.Params.LicenseKeysGetActivationParams` for parameter details.

# `get_license_key`

```elixir
@spec get_license_key(PolarExpress.Client.t(), String.t(), map(), keyword()) ::
  {:ok, PolarExpress.Schemas.LicenseKeyWithActivations.t()}
  | {:error, PolarExpress.Error.t()}
```

Get License Key

Get a license key.

**Scopes**: `license_keys:read` `license_keys:write`

See `PolarExpress.Params.LicenseKeysGetLicenseKeyParams` for parameter details.

# `list_license_keys`

```elixir
@spec list_license_keys(PolarExpress.Client.t(), map(), keyword()) ::
  {:ok, PolarExpress.ListObject.t()} | {:error, PolarExpress.Error.t()}
```

List License Keys

Get license keys connected to the given organization & filters.

**Scopes**: `license_keys:read` `license_keys:write`

See `PolarExpress.Params.LicenseKeysListLicenseKeysParams` for parameter details.

# `update_license_key`

```elixir
@spec update_license_key(PolarExpress.Client.t(), String.t(), map(), keyword()) ::
  {:ok, PolarExpress.Schemas.LicenseKeyRead.t()}
  | {:error, PolarExpress.Error.t()}
```

Update License Key

Update a license key.

**Scopes**: `license_keys:write`

See `PolarExpress.Params.LicenseKeysUpdateLicenseKeyParams` for parameter details.

# `validate_license_key`

```elixir
@spec validate_license_key(PolarExpress.Client.t(), map(), keyword()) ::
  {:ok, PolarExpress.Schemas.ValidatedLicenseKey.t()}
  | {:error, PolarExpress.Error.t()}
```

Validate License Key

Validate a license key.

**Scopes**: `license_keys:write`

See `PolarExpress.Params.LicenseKeysValidateLicenseKeyParams` for parameter details.

---

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