> 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/abc-gymsales/connecting-gymsales.md).

# Connecting GymSales

{% stepper %}
{% step %}

### **Your Customer Success Representative will invite you to our integration platform, Middle, via email**

Follow the link in the email to complete your registration by setting a password.
{% endstep %}

{% step %}

### Enter your GymSales admin credentials in Middle

{% hint style="info" %}
We recommend creating an admin user that will only be used to facilitate the integration. This ensures long-term integration function. If the user you authenticate with in the future is removed, the integration will break.
{% endhint %}

Once signed in to Middle:

1. Click on the **GymSales app** (top left corner).
2. Select **Edit Connection**.
3. Enter the **username and password** for your **GymSales account** (must have **admin privileges**).
4. Click **Submit** to finalize the integration.
   {% endstep %}
   {% endstepper %}

## If you encounter a 401 error

A 401 Authentication error during the OAuth authorization process indicates that the authentication request is being rejected before authorization can be completed.

**Common causes:**

* GymSales username or password being used is incorrect
* Account does not have sufficient permissions
* Account is inactive, locked or requires password reset

**Verify the following:**

* You are entering your GymSales credentials. Sometimes Middle autofills credential fields with your Middle login username and password.
* That the account can successfully log in directly to your GymSales instance
* That the account is active and not subject to any restrictions


---

# 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/abc-gymsales/connecting-gymsales.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.
