# RetailCRM: Настройка

## RetailCRM: Настройка

***

* [Данные для интеграции из RetailCRM](#dannye-dlya-integracii)
  * [Домен учетной записи](#domen)
  * [Символьный код магазина](#kod-magazina)
  * [Ключ доступа к API](#klyuch-dostupa-k-api)
* [Подключение интеграции в Fasttrack](#podklyuchenie)

***

## Данные для интеграции

Чтобы подключить RetailCRM к Fasttrack, вам необходимо правильно заполнить карточку интеграции. Для настройки вам потребуются `Домен`, `Код магазина` и `Ключ доступа к API`.

Все необходимые параметры вы можете найти в вашей учетной записи RetailCRM.

### Домен

Скопируйте домен вашей учетной записи в RetailCRM (`example.retailcrm.ru`):

<figure><img src="https://1710238474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F15Vbfdlj1toq4QxXgBym%2Fuploads%2FiRWwRPDwGf40e7XWrW06%2F2024-11-29%20at%2006.38.41%402x.jpg?alt=media&#x26;token=ab0723a7-9851-45f0-b061-853c71223600" alt=""><figcaption></figcaption></figure>

### Код магазина

Перейдите в раздел «Настройки» → «Магазины» → «Магазины», выберите ваш магазин, откройте его настройки и скопируйте значение из поля «Символьный код»:

<figure><img src="https://1710238474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F15Vbfdlj1toq4QxXgBym%2Fuploads%2FZfOBud4dL3ru5YJ5kNIo%2F2024-11-29%20at%2005.51.51%402x.jpg?alt=media&#x26;token=811b5a77-e1ac-4703-bd9e-6b79d7ead759" alt=""><figcaption></figcaption></figure>

### Ключ доступа к API

Прежде чем скопировать ключ, убедитесь, что он правильно настроен.

1. API-ключ должен связан с правильным магазином в RetailCRM:

<figure><img src="https://1710238474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F15Vbfdlj1toq4QxXgBym%2Fuploads%2FGnfhOvpzqlN6JBssNvRL%2F2024-11-29%20at%2006.18.59%402x.jpg?alt=media&#x26;token=b5623b86-d444-48f1-b1f3-ef1db4eb037d" alt=""><figcaption></figcaption></figure>

2. В блоке «Разрешенные действия в API» включена опция «Редактирование (integration\_write)» для пункта «Интеграции»:

<figure><img src="https://1710238474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F15Vbfdlj1toq4QxXgBym%2Fuploads%2FHA150UtOnbus4Cvirkcz%2F2024-11-29%20at%2005.56.59%402x.jpg?alt=media&#x26;token=ff1cc3f8-7717-4c2d-983f-0acab2f8ea62" alt=""><figcaption></figcaption></figure>

Скопируйте ключ доступа к API:

<figure><img src="https://1710238474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F15Vbfdlj1toq4QxXgBym%2Fuploads%2FWRFOQTpJaXR5b53oQ1rS%2F2024-11-29%20at%2006.14.24%402x.jpg?alt=media&#x26;token=970fb050-d93d-4810-8481-d7597cc76eca" alt=""><figcaption></figcaption></figure>

## Подключение

Откройте ваш проект в Fasttrack и перейдите в раздел «Интеграции». Найдите карточку RetailCRM и нажмите «Подключить».

<figure><img src="https://1710238474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F15Vbfdlj1toq4QxXgBym%2Fuploads%2FuqVYtu4ti7h22BDH9Xv4%2F2024-11-29%20at%2012.13.58%402x.jpg?alt=media&#x26;token=0c33acce-6348-4892-83ac-696fad868431" alt=""><figcaption></figcaption></figure>

Откроется форма настройки. Заполните поля формы и нажмите Подключить.

<figure><img src="https://1710238474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F15Vbfdlj1toq4QxXgBym%2Fuploads%2Fze0ltJyGHXisyVdSzat0%2F2024-11-29%20at%2012.12.41%402x.jpg?alt=media&#x26;token=5671fddf-34c9-4371-b2ca-ed940e48bd20" alt=""><figcaption></figcaption></figure>


---

# 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://docs.fstrk.io/knowledge_base/intagrations/retailcrm/settings.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.
