> 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/achievement-usage.md).

# Achievement Usage

Each member's progress towards each achievement, exported daily as a delta file.

The Achievement Usage file contains each member's progress towards each achievement.

{% hint style="info" %}
**Delta export.** Each daily file contains the member–achievement progress entries whose progress changed during that day. An entry reappears whenever the member makes further progress. Upsert on `achievementId` + `customerId` and keep the row with the latest `updatedAt`.
{% endhint %}

**File:** `analytics/Achievements/achievements_member_progress_YYYY_MM_DD.csv`\
**Primary key:** `achievementId` + `customerId`

A sample file is provided below:

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

**Available data** (in column order):

<table><thead><tr><th width="212.2421875">Column</th><th width="126.91796875">Type</th><th width="112.74609375">Empty value</th><th>Description</th></tr></thead><tbody><tr><td><code>achievementId</code></td><td><code>uuid</code></td><td>No</td><td>Unique ID of the achievement</td></tr><tr><td><code>achievementName</code></td><td><code>string</code></td><td>No</td><td>Name of the achievement</td></tr><tr><td><code>achievementDescription</code></td><td><code>string</code></td><td>Yes</td><td>Description of the achievement</td></tr><tr><td><code>customerId</code></td><td><code>uuid</code></td><td>No</td><td>ID of the member</td></tr><tr><td><code>limitReached</code></td><td><code>boolean</code></td><td>False</td><td>Whether the member reached the completion limit</td></tr><tr><td><code>completedCount</code></td><td><code>integer</code></td><td>No</td><td>Number of completed achievements</td></tr><tr><td><code>memberProgressRules</code></td><td><code>json array</code></td><td>No</td><td>Progress on each achievement rule</td></tr><tr><td><code>createdAt</code></td><td><code>datetime</code></td><td>No</td><td>Date when the progress entry was created</td></tr><tr><td><code>completedAt</code></td><td><code>datetime</code></td><td>Yes</td><td>Date when the member last completed the achievement</td></tr><tr><td><code>tenantId</code></td><td><code>uuid</code></td><td>No</td><td>ID of the tenant where the achievement was created</td></tr><tr><td><code>updatedAt</code></td><td><code>datetime</code></td><td>No</td><td>Date of the most recent progress update</td></tr><tr><td><code>campaignId</code></td><td><code>uuid</code></td><td>Yes</td><td>Linked campaign ID, if any</td></tr></tbody></table>

{% hint style="warning" %}
`limitReached`, `completedCount`, and `memberProgressRules` are calculated **when the file is produced**, not at the end of the day the file covers.
{% endhint %}

{% hint style="info" %}
Progress towards challenges is exported separately. See [Challenge Member Progress](/technical-guide/data-exports/data-structure-and-types/challenge-member-progress.md).
{% 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/achievement-usage.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.
