# How to connect Yampi

To connect Yampi to Connecto, you use the API credentials of a Yampi panel user and the store alias.

## How it works

In Yampi, each panel user has two API credentials: the User-Token and the User-Secret-Key. Connecto uses these credentials and reaches the store with the same access that user has in the panel.

## With the API credentials

The Yampi panel is in Portuguese, so its menus are quoted as they appear there.

### 1. Copy the credentials in Yampi

1. Sign in to the Yampi panel as the user the connection will use.
2. In the top right corner, open **Perfil → Credenciais de API**.
3. Copy the **User-Token** and the **User-Secret-Key**.

> The credentials change when this user changes their Yampi password. The connection stops until you paste the new ones.

### 2. Connect in Connecto

1. In **Connections**, click **New Connection** and choose **Yampi**.
2. In **Store alias**, type the store identifier in the Yampi API, for example `my-store`.
3. Paste the User-Token into **User token** and the User-Secret-Key into **User secret key**.
4. Click **Save connection**. Connecto checks the credentials and the alias before saving.

## Common problems

### I don't know the store alias

Type any alias and save. The error message lists the aliases of the stores this user can access. Copy the right one and save again.

### Yampi rejected the token or the key

Copy both credentials again from **Perfil → Credenciais de API** and paste them without spaces at the start or end.

### The connection stopped after a password change

Yampi generated new credentials. Copy the new ones from **Perfil → Credenciais de API**. Then, in **Connections**, click **Reconnect** on the Yampi connection and paste both.
