> For the complete documentation index, see [llms.txt](https://help.openloyalty.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.openloyalty.io/technical-guide/data-exports/data-structure-and-types/tiers.md).

# Tiers

The Tiers file contains data on the various tiers.

{% hint style="info" %}
**Delta export.** Each daily file contains tiers created or updated during that day. Upsert on `levelId` and keep the row with the latest `updatedAt`.
{% endhint %}

**File:** `analytics/Tiers/tiers_YYYY_MM_DD.csv`\
**Primary key:** `levelId`

A sample file is provided below:

{% file src="/files/FuTf3a61ExQrUt4eeUUd" %}

**Available Data:**

<table><thead><tr><th width="158.30078125">Column</th><th width="132.0859375">Type</th><th width="144.76953125">Can be empty</th><th>Description</th></tr></thead><tbody><tr><td><code>levelId</code></td><td>uuid</td><td>No</td><td>Unique tier ID</td></tr><tr><td><code>tenantId</code></td><td>uuid</td><td>No</td><td>Tenant ID</td></tr><tr><td><code>name</code></td><td>string</td><td>Yes</td><td>Tier name</td></tr><tr><td><code>description</code></td><td>string</td><td>Yes</td><td>Tier description</td></tr><tr><td><code>hasPhoto</code></td><td>boolean</td><td>Empty = false</td><td>Whether a photo exists</td></tr><tr><td><code>active</code></td><td>boolean</td><td>Empty = false</td><td>Whether active</td></tr><tr><td><code>conditionValue</code></td><td>decimal</td><td>Yes</td><td>Deprecated minimum condition</td></tr><tr><td><code>rewards</code></td><td>json array</td><td>No</td><td>Tier benefits</td></tr><tr><td><code>createdAt</code></td><td>datetime</td><td>No</td><td>Date created</td></tr><tr><td><code>updatedAt</code></td><td>datetime</td><td>No</td><td>Date last updated</td></tr><tr><td><code>tierSetId</code></td><td>uuid</td><td>Yes</td><td>Tier set ID</td></tr><tr><td><code>tierSetName</code></td><td>string</td><td>Yes</td><td>Tier set name</td></tr><tr><td><code>conditions</code></td><td>json array</td><td>No</td><td>Minimum conditions to reach the tier</td></tr></tbody></table>

{% hint style="danger" %}
**`conditionValue` is a deprecated field.** Use values from the **`conditions`** column instead.
{% endhint %}


---

# 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://help.openloyalty.io/technical-guide/data-exports/data-structure-and-types/tiers.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.
