# Step 1: Connect stores and locations

## 1. Connect store

### 1.1 Select store type

<figure><img src="/files/Pg0Mg4u3N8kNAU9aHMay" alt=""><figcaption></figcaption></figure>

After installing, there will be 2 type of store to be selected for the store you just installed the app:&#x20;

#### 1. Main store

Choose this if

* You are using this as your primary store&#x20;
* It has the most accurate inventory level&#x20;
* It is connected to the physical warehouse or locations&#x20;
* It has the largest customer base&#x20;

#### 2. Connected store

Choose this if&#x20;

* It is not your primary store&#x20;
* It is dropshipping store&#x20;
* It needs to sync inventory levels from primary or main store

{% hint style="info" %}
Almost every actions to manage the app will be taken on the primary store. So the document will focus on the Main store. Any actions need to be taken from Connected store will be noted&#x20;
{% endhint %}

### 2. Generate Connection key

<figure><img src="/files/9OUS6q4nlBcSrwWLbDE1" alt=""><figcaption></figcaption></figure>

After choosing Main store, click on Connect store to generate a Connection key.

<figure><img src="/files/w1X0Rrktis2WBUBnwPq7" alt=""><figcaption></figcaption></figure>

Copy this Connection Key, paste it to the Connected store, and click Connect.&#x20;

<figure><img src="/files/NrTaOUi7pXiCD4nNoLLM" alt=""><figcaption><p>Screenshot from Connected store</p></figcaption></figure>

## 2. Connect locations

Click on Add connect location to connect the shared location between 2 stores.&#x20;

<figure><img src="/files/L4kKo2haiXJCQXyeRvbw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/mCCGwfORCEze4uJv5P1F" alt=""><figcaption></figcaption></figure>

Select the shared location and click on Connect.&#x20;

{% hint style="info" %}
In case you have multiple shared location between your stores, click on Add connect location to add more and add all the shared location you have.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unicorner-document.gitbook.io/unicorner/unisync-guideline/step-1-connect-stores-and-locations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
