﻿---
sidebar_position: 1
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get clusters list
 Gets information about clusters and warehouses



`Function GetClustersList(Val ClientID, Val APIKey, Val ClusterType = "CLUSTER_TYPE_OZON") Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | ClientID | --clientid | String | &#x2714; | Client identifier |
  | APIKey | --apikey | String | &#x2714; | API key |
  | ClusterType | --type | String | &#x2716; | Cluster type: CLUSTER_TYPE_OZON (Russia), CLUSTER_TYPE_CIS (CIS) |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Ozon Seller API

<br/>

:::tip
Method at API documentation: [post /v1/cluster/list](https://docs.ozon.ru/api/seller/#operation/SupplyDraftAPI_DraftClusterList)
:::
<br/>



```bsl title="1C:Enterprise/OneScript code example"
    ClientID = "2479669";
    APIKey   = "09f65e9f-262d-4aca...";

    Result = OPI_Ozon.GetClustersList(ClientID, APIKey);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint ozon GetClustersList \
             --clientid "***" \
             --apikey "***"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint ozon GetClustersList ^
             --clientid "***" ^
             --apikey "***"
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "clusters": [
  {
   "logistic_clusters": [
    {
     "warehouses": [
      {
       "warehouse_id": 6048863967000,
       "type": "FULL_FILLMENT",
       "name": "Тверь_Хаб"
      },
      {
       "warehouse_id": 23021125185000,
       "type": "FULL_FILLMENT",
       "name": "ТВЕРЬ_РФЦ"
      },
      {
       "warehouse_id": 22089924655000,
       "type": "EXPRESS_DARK_STORE",
       "name": "FRESH_MAX_ТВЕРЬ_КАЛИНИНА"
      },
      {
       "warehouse_id": 1020002080349000,
       "type": "SORTING_CENTER",
       "name": "ТВЕРЬ_КОНЯЕВСКАЯ_ФБС"
      },
      {
       "warehouse_id": 23552438554000,
       "type": "SORTING_CENTER",
       "name": "ТВЕРЬ_ХАБ_БОРОВЛЁВО"
      },
      {
       "warehouse_id": 1020000995840000,
       "type": "SORTING_CENTER",
       "name": "ТВЕРЬ_ХАБ_КОНЯЕВСКАЯ_2"
      },
      {
       "warehouse_id": 1020000893884000,
       "type": "SORTING_CENTER",
       "name": "ТВЕРЬ_ХАБ_КОНЯЕВСКАЯ_1"
      },
      {
       "warehouse_id": 23470817390000,
       "type": "SORTING_CENTER",
       "name": "ТВЕРЬ_ХАБ_КГТ"
      },
      {
       "warehouse_id": 1020001556829000,
       "type": "SORTING_CENTER",
       "name": "ТВЕРЬ_ХАБ_КОНЯЕВСКАЯ_2_КГТ"
      },
      {
       "warehouse_id": 1020001001744000,
       "type": "SORTING_CENTER",
       "name": "СЦ_ТВЕРЬ_КОНЯЕВСКАЯ_2_Возвраты"
      },
      {
       "warehouse_id": 1020001775656000,
       "type": "SORTING_CENTER",
       "name": "ТВЕРЬ_ТСЦ"
      }
     ]
    },
    {
     "warehouses": [
      {
       "warehouse_id": 1020001878356000,
       "type": "SORTING_CENTER",
       "name": "СЫКТЫВКАР_ХАБ_ОКТЯБРЬСКИЙ"
      },
      {
       "warehouse_id": 1020001878456000,
       "type": "SORTING_CENTER",
       "name": "СЫКТЫВКАР_ХАБ_ЛЕСОПАРКОВАЯ"
      },
      {
       "warehouse_id": 1020001887245000,
       "type": "SORTING_CENTER",
       "name": "СЦ_СЫКТЫВКАР_ХАБ_ЛЕСОПАРКОВАЯ_Возвраты"
      },
      {
       "warehouse_id": 1020001887250000,
       "type": "SORTING_CENTER",
       "name": "СЦ_СЫКТЫВКАР_ХАБ_ОКТЯБРЬСКИЙ_Возвраты"
      },
      {
       "warehouse_id": 1020001345518000,
       "type": "SORTING_CENTER",
       "name": "СЦ_СЫКТЫВКАР_ЛЕСОПАРКОВАЯ_3PL_Возвраты"
      },
      {
       "warehouse_id": 1020002341771000,
       "type": "SORTING_CENTER",
       "name": "СЫКТЫВКАР_ХАБ_ОКТЯБРЬСКИЙ_КГТ"
      },
      {
       "warehouse_id": 23840122253000,
       "type": "SORTING_CENTER",
       "name": "СЫКТЫВКАР_ХАБ_ЛЕСОПАРКОВАЯ_3PL"
      },
      {
       "warehouse_id": 1020001021069000,
       "type": "SORTING_CENTER",
       "name": "СЫКТЫВКАР_ХАБ_ОКТЯБРЬСКИЙ_131_3PL "
      },
      {
       "warehouse_id": 1020001345521000,
       "type": "SORTING_CENTER",
       "name": "СЦ_СЫКТЫВКАР_ОКТЯБРЬСКИЙ_131_3PL _Возвраты"
      }
     ]
    },
    {
     "warehouses": [
      {
       "warehouse_id": 1020001370734000,
       "type": "SORTING_CENTER",
       "name": "АРХАНГЕЛЬСК_ХАБ_НАХИМОВА"
      },
      {
       "warehouse_id": 1020001371887000,
       "type": "SORTING_CENTER",
       "name": "СЦ_АРХАНГЕЛЬСК_ХАБ_НАХИМОВА_Возвраты"
      },
      {
       "warehouse_id": 1020001371884000,
       "type": "SORTING_CENTER",
       "name": "АРХАНГЕЛЬСК_ХАБ_КГТ"
      },
      {
       "warehouse_id": 20547967270000,
       "type": "SORTING_CENTER",
       "name": "КОТЛАС_ХАБ_КУЗНЕЦОВА_3PL"
      },
      {
       "warehouse_id": 1020001345511000,
       "type": "SORTING_CENTER",
       "name": "СЦ_КОТЛАС_КУЗНЕЦОВА_3PL_Возвраты"
      }
     ]
    },
    {
     "warehouses": [
      {
       "warehouse_id": 1020000809707000,
       "type": "SORTING_CENTER",
       "name": "СЦ_ВЛАДИМИР_МЕЩЁРСКАЯ_Возвраты"
      },
      {
       "warehouse_id": 1020000930201000,
...
```
