---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.ru/dev/market/partner-api/doc/en/concepts/api-access.md
  - https://yandex.ru/dev/market/partner-api/doc/ru/concepts/api-access.md
  - https://yandex.ru/dev/market/partner-api/doc/zh/concepts/api-access.md
  - href: en/concepts/api-access.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/market/partner-api/doc/en/llms.txt

# API Access Control

If Yandex Market API If unavailable, follow these steps: check the access status, determine the reason for the block, and resolve it.

{% note info "Request logs" %}

If the API is unavailable, requests are not executed and are not recorded in [request logs](https://yandex.ru/dev/market/partner-api/doc/en/concepts/debug.md).

{% endnote %}

## How to find out the API access status {#check-status}

Use the following methods:

* [GET v2/campaigns/{campaignId}](https://yandex.ru/dev/market/partner-api/doc/en/reference/campaigns/getCampaign.md) — for a specific store.
* [GET v2/campaigns](https://yandex.ru/dev/market/partner-api/doc/en/reference/campaigns/getCampaigns.md) — for all cabinet stores.

Check the parameter in the response `apiAvailability`:

* `AVAILABLE` — The API is available.
* [`DISABLED_BY_INACTIVITY`](#inactivity) — The API is disabled due to inactivity.
* [`DISABLED_BY_NO_ACTIVE_CONTRACT`](#no-contract) — The API is disabled due to the absence of an active agreement.
* [`MANUALLY_DISABLED`](#manually-disabled) — integration is disabled manually.
* [`DISABLED_BY_NO_PLACEMENT_TYPE`](#no-placement-program) — the store is not connected to the placement program.

You can also view the API access status in [the seller's account on the Market](https://partner.market.yandex.ru/business/any/api-settings) in the section **Settings** → **APIs and modules**.

{% note warning %}

When a store is disconnected from the API, requests from all integrations to this store are blocked.

{% endnote %}

## Reasons for blocking and solutions {#reasons}

### Integration is disabled manually {#manually-disabled}

**Status:** `MANUALLY_DISABLED`

**Error message:**

```text translate=no
API for campaign {campaignId} manually disabled.
```

**How to restore access:**

Enable integration in [the seller's account on the Market](https://partner.market.yandex.ru/business/any/api-settings).

### The store has been inactive for more than 90 days {#inactivity}

**Status:** `DISABLED_BY_INACTIVITY`

**Error message:**

```text translate=no
API for campaign {campaignId} disabled due to inactivity.
```

**Reason:** The store has not placed products in the showcase for more than 90 days.

**How to restore access:**

1. Enable integration in [the seller's account on the Market](https://partner.market.yandex.ru/business/any/api-settings).
2. Check that the integration is working correctly in [query logs](https://yandex.ru/dev/market/partner-api/doc/en/concepts/debug.md).
3. Make sure that the prices and product balances are up to date.
4. Submit the store for moderation to return to the showcase.

### There is no active agreement {#no-contract}

**Status:** `DISABLED_BY_NO_ACTIVE_CONTRACT`

**Error message:**

```text translate=no
API for campaign {campaignId} disabled because there are no active contracts with Market.
```

**How to restore access:**

Complete the account connection in the section ["Legal data"](https://partner.market.yandex.ru/business/any).

### The store is not connected to the placement program {#no-placement-program}

**Status:** `DISABLED_BY_NO_PLACEMENT_TYPE`

**Error message:**

```text translate=no
API for campaign {campaignId} disabled because it has no placement program.
```

**How to restore access:**

Connect the store to the placement program in [the seller's account on the Market](https://partner.market.yandex.ru).

### All cabinet stores are disabled {#business-disabled}

**Error message:**

```text translate=no
API for business {businessId} disabled because it has only disabled partners.
```

**Reason:** All stores in the cabinet are disabled.

**How to restore access:**

Enable the API for at least one merchant profile in [the seller's account on the Market](https://partner.market.yandex.ru/business/any/api-settings).

## Checking access after recovery {#verify-access}

After completing the steps to restore access:

1. Wait up to a minute — The changes may not be applied instantly.
2. Check the access status using the method [GET v2/campaigns/{campaignId}](https://yandex.ru/dev/market/partner-api/doc/en/reference/campaigns/getCampaign.md) or [GET v2/campaigns](https://yandex.ru/dev/market/partner-api/doc/en/reference/campaigns/getCampaigns.md).
3. Make sure that the parameter `apiAvailability` it matters `AVAILABLE`.
4. Make a test API request.
