> For the complete documentation index, see [llms.txt](https://docs.opensports.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opensports.net/admin-help/reports-and-analytics/accounting-codes/how-to-add-accounting-codes-for-better-financial-tracking.md). Agents can also search and read this documentation through its [MCP server](https://docs.opensports.net/~gitbook/mcp).

# How to add Accounting Codes for better financial tracking

Admins can now add accounting codes to events, leagues, memberships, programs, and tournaments—making it easier to track and report on revenue.

{% hint style="info" %}
**Note**: This feature is only available on the [Full-Time Club Plan](https://opensports.net/pricing). To enable it, please contact OpenSports Support.
{% endhint %}

### What are accounting codes? <a href="#why-are-accounting-codes" id="why-are-accounting-codes"></a>

Accounting codes (also known as General Ledger Codes) help categorize financial data for reporting and analysis within the OpenSports reports center, as well as for integration with external systems like Stripe. Essentially, each code is an alphanumeric sequence tagged to every fiscal entry in an organization's books. You can categorize:

* **By Sport**: Useful for multi-sport organizations. For example, soccer could be coded as 101, kickball as 102, volleyball as 102, and so on.
* **By Facility**: Track finances based on the location or facility where the event is held.
* **By Program Type**: Differentiate between activities, such as figure skating lessons having a unique code, standard skating another, and hockey its own distinct code.
* **By Instructor**: Monitor financial transactions based on the instructor running the event.

### How to add an accounting code to an activity <a href="#how-to-add-an-accounting-code-to-an-activity" id="how-to-add-an-accounting-code-to-an-activity"></a>

1. When creating an event, program, league, or tournament, look for the **Accounting Code** section.
2. Click **Add** to create a new code, or use the drop down menu to select a pre-existing accounting code. Accounting codes are only visible to admins within the event or tournament settings; they are not visible to players.

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-39697ba153e3c0f8433907dd998361ad79a00c4f%2Fedit-accounting-code-form.webp?alt=media" alt="" width="375">

For example, you might create an accounting code labeled ‘Outdoor League’ to help differentiate revenue from indoor leagues

3. A modal will appear. Enter the Accounting Code (e.g., "102") and Name (e.g., "Outdoor League").
4. Once saved, this code will be selectable for future events.

***Note***: Group admins, league managers, and event managers can all add and assign accounting codes when creating or editing events and leagues. However, only group admins can access the **Accounting Codes** through **Settings** to edit or delete existing codes.

### How to create reports using Accounting Codes <a href="#how-to-create-reports-using-accounting-codes" id="how-to-create-reports-using-accounting-codes"></a>

Within the reports center, you can use the Accounting Codes dropdown menu to:

* View aggregate financial data for each accounting code
* Filter reports by one or multiple codes at a time for customized insights
* Export this data as a CSV file for deeper analysis in your favorite spreadsheet software like Google Sheets or Excel

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-7972b2fc6339f99120ac59874868382e5f092780%2Freports-accounting-code-filter-dropdown.webp?alt=media)

#### How to add, edit, and delete accounting codes <a href="#how-to-add-edit-and-delete-accounting-codes" id="how-to-add-edit-and-delete-accounting-codes"></a>

1. Navigate to **Group Profile > Dashboard > Settings**
2. Under **Payments**, click **Accounting Codes**

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-0986e9034f0c754d4077fe6fc5161ea54016c8df%2Fgroup-settings-accounting-codes-menu.jpg?alt=media)

3. From here you can view all accounting codes and **Edit or Delete** them.

*Note*: Accounting codes that have been assigned to activities can still be deleted if necessary.

4. To create new accounting codes, click **Add Accounting Code** on the top right

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-18f5b863da3fda8bf9871df04dbddef5154c1d54%2Faccounting-codes-list-and-actions.webp?alt=media)

To learn more about Accounting Codes or General Ledger Codes, take a look at this [guide.](https://blog.mihlfeld.com/the-basics-of-gl-coding)


---

# 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.opensports.net/admin-help/reports-and-analytics/accounting-codes/how-to-add-accounting-codes-for-better-financial-tracking.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.
