---
title: "Проверить подключение снова"
method: POST
path: "/api/v1/settings/integration-connections/{provider}/check"
tags: ["Settings integrations"]
---

# Проверить подключение снова

`POST /api/v1/settings/integration-connections/{provider}/check`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/settings/integration-connections/{provider}/check`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2
    - Authorization code: `https://erp.akeda.ru/oauth2/authorize`
    - Token URL: `https://erp.akeda.ru/oauth2/token` scopes: `akeda:delegate`

Спрашивает платформу с сохранённым токеном и записывает итог — и отказ тоже, чтобы экран показал отозванный ключ. Сведения о магазине при отказе не стираются. Токен в ответ не попадает.

## Path parameters

- `provider` 'yandex_kit' | 'ozon_retail' | 'cdek' | 'fresh_logic' | 'fcq', required

## Headers

- `X-Tenant` string, required

## Response `200`

Подключение с итогом проверки

- SettingsIntegrationConnectionEnvelope
  - `connection` SettingsIntegrationConnection, required
    - `id` string, uuid, required
    - `provider` 'yandex_kit' | 'ozon_retail' | 'cdek' | 'fresh_logic' | 'fcq', required
    - `enabled` boolean, required
    - `client_id` string, required: Открытая часть входа пары (Client ID у Ozon Retail, Account у СДЭК, логин клиента шины у Fresh Logic); у Яндекс KIT пустая
    - `has_secret` boolean, required: Токен сохранён; самого токена в ответе нет никогда
    - `status` 'not_checked' | 'ok' | 'rejected' | 'unavailable', required
    - `last_check_at` string, date-time, nullable, required
    - `last_check_code` string, required: ok, token_rejected, rate_limited, unavailable; у Ozon Retail — credentials_rejected, ip_forbidden; у СДЭК — credentials_rejected
    - `account` SettingsIntegrationAccount, required: Что платформа сообщила о себе при проверке; только для показа
      - `store_id` string
      - `store_slug` string
      - `store_url` string
      - `warehouses` SettingsIntegrationWarehouse[], required
        - `id` string, required: Идентификатор склада у платформы
        - `title` string, required
        - `status` string, required: Статус склада у платформы (ACTIVE)
    - `options` object, required: Настройки человека: юрлицо, склад, соответствие складов; хранятся как присланы
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права
- `404`: Запись не найдена или не видима текущему пользователю
- `503`: На сервере не задан ключ шифрования (secrets_unavailable)

## Changes

- **2026-11-28** `21bfed0de6ec`: 1 warning, 1 info
  - added the new `fcq` enum value to the `connection/provider` response property for the response status `200`
  - added the new enum value `fcq` to the `path` request parameter `provider`
- **2026-11-26** `25c63e470433`: 1 warning, 1 info
  - added the new `fresh_logic` enum value to the `connection/provider` response property for the response status `200`
  - added the new enum value `fresh_logic` to the `path` request parameter `provider`
- **2026-10-27** `281d469b7d47`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/settings/integration-connections/:provider/check/post.md)

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) - [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/084f7bbc939c?raw)
