> For the complete documentation index, see [llms.txt](https://docs.perkville.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.perkville.com/integrations/integration-reference/mariana-tek/how-earning-works.md).

# How earning works

Perkville can use activity and purchase data from Mariana Tek to automate loyalty earning. The exact earning rules, source fields, filters, and point values depend on how your Perkville program and integration are configured.

## Common earning use cases

Depending on your setup, Mariana Tek activity can be used for earning rules such as:

* **Class attendance**
* **Appointments or services**
* **Purchases or spend**
* **Other mapped activities supported by the integration**

Perkville can also use these source activities with [Custom earning rules](https://docs.perkville.com/features/earning-rules/custom.md), which lets your loyalty program define the customer-facing activity name, points or instant rewards, applicable locations, referral-completion behavior, and earning limits.

{% hint style="info" %}
The activities available to a specific business depend on the Mariana Tek data available through the integration and how the program has been configured.
{% endhint %}

## When classes, services, or products change

Adding or renaming an item in Mariana Tek does not always mean it will automatically match an existing Perkville earning rule.

If your program rewards specific classes, services, products, or activity types, the integration mapping may need to be reviewed when you:

* add a new class or service type;
* rename an existing source activity;
* create a new product or category; or
* want a new Mariana Tek activity to qualify for an existing Perkville earning rule.

For example, if a studio introduces a new class type and expects it to earn under an existing **Class Attended** rule, confirm that the new source activity is included in the integration logic for that rule.

## Troubleshooting missing points

If a Mariana Tek activity did not earn the expected points:

1. Confirm the member completed the source activity in Mariana Tek.
2. Confirm the applicable Perkville earning rule is active and available at that location.
3. If the rule is intended for only certain classes, services, products, or categories, confirm the new or renamed source activity is included in the integration mapping.
4. Review the member's Perkville transaction history to see whether the activity arrived under a different rule or did not arrive at all.
5. If the source activity is present in Mariana Tek but missing from Perkville, contact [Perkville Support](https://docs.perkville.com/overview/support.md) with the member, location, activity date, and the Mariana Tek class, service, or purchase details.

{% hint style="info" %}
When the issue is caused by a newly added or renamed source activity, Support may need to review the integration mapping rather than change the Perkville earning rule itself.
{% endhint %}

## Additional earning options

| Use case                     | Configuration to confirm                                                                                                                                                                                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Advance booking              | The required lead time, such as booking 15 days ahead, and the qualifying reservation.                                                                                                                                                                                                     |
| Early arrival                | The arrival threshold, such as five minutes before class, and the recorded arrival event.                                                                                                                                                                                                  |
| Purchases and refunds        | Qualifying product/payment types and the refund rules that reverse purchase points.                                                                                                                                                                                                        |
| Membership tiers             | Award points, instant rewards, or both once per qualifying active tier. Confirm the membership type/status selected by the integration and enable [Membership tiers](https://docs.perkville.com/features/earning-rules/membership-tiers.md). Separate sign-up rewards use their own rules. |
| Anniversaries and milestones | Whether the date is based on account creation or first class attendance.                                                                                                                                                                                                                   |

See the [Mariana Tek partner profile](https://partners.perkville.com/partners/mariana-tek) for these capabilities. Your CSR can help map them to the program's rules.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.perkville.com/integrations/integration-reference/mariana-tek/how-earning-works.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
