---
title: Stok lokasyonları
description: Depo ve mağaza stok lokasyonlarını sorgulayın.
full: true
---

## StockLocation nesnesi [#StockLocation]

**`StockLocation`** (v1 · v2)

| Alan | Tip | Açıklama |
| --- | --- | --- |
| `address` | `StockLocationAddress` | Stok lokasyonunun adres bilgisi. |
| `createdAt` | `Timestamp` | Kaydın oluşturulma zamanı (milisaniye cinsinden Unix zaman damgası). |
| `deleted` | `Boolean!` | Kaydın silinmiş olup olmadığı. |
| `deliveryTime` | `StockLocationDeliveryTimeEnum` | Stok lokasyonunun teslimat süresi. Değerler: `TWO_IN_FOUR_DAYS`, `WITHIN_FOUR_HOURS`, `WITHIN_ONE_HOUR`, `WITHIN_PLUS_FIVE_DAYS`, `WITHIN_TWENTY_FOUR_HOURS`, `WITHIN_TWO_HOURS`. |
| `description` | `String` | Stok lokasyonunun açıklaması. |
| `id` | `String!` | Kaydın ID değeri. |
| `isRemindOutOfStockEnabled` | `Boolean` |  |
| `name` | `String!` | Stok lokasyonunun adı. |
| `outOfStockMailList` | `[String!]` |  |
| `translations` | `[StockLocationTranslation!]` | Stok lokasyonunun çevirileri. |
| `type` | `StockLocationTypeEnum` | Stok lokasyonunun tip enum'u. Değerler: `PHYSICAL`, `VIRTUAL`. |
| `updatedAt` | `Timestamp` | Kaydın son güncellenme zamanı (milisaniye cinsinden Unix zaman damgası). |

Örnek (temsili):

```json
{
  "address": {
    "address": "Örnek Mah. 1. Sok. No: 1",
    "city": null,
    "country": null,
    "district": null,
    "phone": "+905551112233",
    "postalCode": "34000",
    "state": null
  },
  "createdAt": 1735725600000,
  "deleted": false,
  "deliveryTime": "TWO_IN_FOUR_DAYS",
  "description": "Örnek açıklama",
  "id": "0f9d2c3e-6b1a-4c7e-9a52-3d8e1f4b7c21",
  "isRemindOutOfStockEnabled": true,
  "name": "Örnek",
  "outOfStockMailList": [
    "string"
  ],
  "translations": [
    {
      "description": "Örnek açıklama",
      "locale": "tr"
    }
  ],
  "type": "PHYSICAL",
  "updatedAt": 1735725600000
}
```

## Stok lokasyonlarını listele [#listStockLocation]

**`listStockLocation`** (query, v1 · v2)

Parametreler:

| Alan | Tip | Açıklama |
| --- | --- | --- |
| `id` | `StringFilterInput` | Kaydın ID değeri. |
| `name` | `StringFilterInput` |  |
| `updatedAt` | `DateFilterInput` | Kaydın son güncellenme zamanı (milisaniye cinsinden Unix zaman damgası). |

Dönen değer: `[StockLocation!]!`

Örnek istek - Stok Lokasyonlarını Listeleme (`POST https://api.myikas.com/api/v2/admin/graphql`):

```graphql
query ListStockLocation {
  listStockLocation {
    address {
      address
      city {
        code
        id
        name
      }
      country {
        code
        id
        iso2
        iso3
        name
      }
      district {
        code
        id
        name
      }
      phone
      postalCode
      state {
        code
        id
        name
      }
    }
    createdAt
    deleted
    deliveryTime
    description
    id
    isRemindOutOfStockEnabled
    name
    outOfStockMailList
    translations {
      description
      locale
    }
    type
    updatedAt
  }
}
```

Örnek yanıt (temsili):

```json
{
  "data": {
    "listStockLocation": [
      {
        "address": {
          "address": "Örnek Mah. 1. Sok. No: 1",
          "city": {
            "code": "string",
            "id": "0f9d2c3e-6b1a-4c7e-9a52-3d8e1f4b7c21",
            "name": "Örnek"
          },
          "country": {
            "code": "string",
            "id": "0f9d2c3e-6b1a-4c7e-9a52-3d8e1f4b7c21",
            "iso2": "string",
            "iso3": "string",
            "name": "Örnek"
          },
          "district": {
            "code": "string",
            "id": "0f9d2c3e-6b1a-4c7e-9a52-3d8e1f4b7c21",
            "name": "Örnek"
          },
          "phone": "+905551112233",
          "postalCode": "34000",
          "state": {
            "code": "string",
            "id": "0f9d2c3e-6b1a-4c7e-9a52-3d8e1f4b7c21",
            "name": "Örnek"
          }
        },
        "createdAt": 1735725600000,
        "deleted": false,
        "deliveryTime": "TWO_IN_FOUR_DAYS",
        "description": "Örnek açıklama",
        "id": "0f9d2c3e-6b1a-4c7e-9a52-3d8e1f4b7c21",
        "isRemindOutOfStockEnabled": true,
        "name": "Örnek",
        "outOfStockMailList": [
          "string"
        ],
        "translations": [
          {
            "description": "Örnek açıklama",
            "locale": "tr"
          }
        ],
        "type": "PHYSICAL",
        "updatedAt": 1735725600000
      }
    ]
  }
}
```

Örnek istek - Stok lokasyonlarını listeleme (`POST https://api.myikas.com/api/v2/admin/graphql`):

```graphql
{
  listStockLocation {
    address {
      address
      city {
        code
        id
        name
      }
      country {
        code
        id
        name
      }
      district {
        code
        id
        name
      }
      phone
      postalCode
      state {
        code
        id
        name
      }
    }
    createdAt
    deleted
    id
    name
    type
    updatedAt
  }
}
```

Örnek yanıt:

```json
{
  "data": {
    "listStockLocation": [
      {
        "address": {
          "address": "Örnek Mah. 1. Sok. No: 1",
          "city": null,
          "country": null,
          "district": null,
          "phone": "+905551112233",
          "postalCode": "34000",
          "state": null
        },
        "createdAt": 1609769593424,
        "deleted": false,
        "id": "a99752f3-c2c9-4fe2-8928-4e20d8ca9f8d",
        "name": "HQ",
        "type": "PHYSICAL",
        "updatedAt": 1609769593424
      }
    ]
  }
}
```
