> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Earning rules activity: Overview

> Understand the Loyalty activity events recorded when a Loyalty v2 earning rule changes or is assigned to a program

An earning rule decides when members earn points or receive benefits. Voucherify records an earning rule activity when a rule is created, updated, deleted, activated, or deactivated, or when it is assigned to or unassigned from a program. These events show when that behavior changes.

These events can start a workflow. For how an earning rule defines triggers, conditions, and earnings, see [Earning rules: Overview](https://docs.voucherify.io/api-reference/loyalty-v2-earning-rules-overview).

## Events in this group

* [Earning rule created](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/created.md)
* [Earning rule updated](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/updated.md)
* [Earning rule deleted](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/deleted.md)
* [Earning rule activated](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/activated.md)
* [Earning rule deactivated](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/deactivated.md)
* [Earning rule drafted](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/drafted.md)
* [Earning rule assigned](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/assigned.md)
* [Earning rule unassigned](https://docs.voucherify.io/api-reference/loyalty-activity/earning-rules/unassigned.md)

## Related resources

> [card] [Workflows](https://docs.voucherify.io/integrations/workflows)
>
> Understand how a Loyalty activity event starts a workflow.

> [card] [Workflows webhooks](https://docs.voucherify.io/api-reference/workflows-webhooks.md)
>
> Review the payload sent when a workflow reaches a webhook callout.

> [card] [Earning rules: Overview](https://docs.voucherify.io/api-reference/loyalty-v2-earning-rules-overview)
>
> Read how an earning rule combines a trigger, conditions, and earnings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.