---
title: "Получить карточку задания склада"
method: GET
path: "/api/v1/stock/warehouse-tasks/{kind}/{id}"
tags: ["Stock purchasing"]
---

# Получить карточку задания склада

`GET /api/v1/stock/warehouse-tasks/{kind}/{id}`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/stock/warehouse-tasks/{kind}/{id}`
- 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`
  - HTTP bearer

Карточка строки «Заданий» любого вида (ERP-2859): поля строки списка, реквизиты, строки, документы и история. Строка карточки: need — сколько нужно, on_hand — на складе-отправителе, held_by_others — в резерве у других, available — свободно, reserved — в резерве этого задания, line_status — reserved, available, short или done. История — created, reserved, started, posted, cancelled. Только чтение.

## Path parameters

- `kind` 'task' | 'order' | 'purchase' | 'transfer' | 'transfer_task', required
- `id` string, uuid, required

## Headers

- `X-Tenant` string, required

## Response `200`

Карточка задания

- StockWarehouseTaskCard: Карточка задания склада (ERP-2859): строка списка, реквизиты, строки, документы и история
  - [`StockWarehouseTaskRow`](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/084f7bbc939c/schema?at=%2Fcomponents%2Fschemas%2FStockWarehouseTaskRow)
  - object
    - `company_id` string, uuid
    - `marketplace_store` StockWarehouseTaskRef
      - `id` string, uuid, required
      - `name` string
    - `contact` StockWarehouseTaskRef
      - `id` string, uuid, required
      - `name` string
    - `writeoff_reason_id` string, uuid
    - `comment` string
    - `state` 'draft' | 'active' | 'cancelled'
    - `lines` StockWarehouseTaskCardLine[], required
      - `line_no` integer, required
      - `product_id` string, uuid, required
      - `sku` string
      - `name` string
      - `condition_id` string, uuid
      - `comment` string
      - `need` string, required
      - `on_hand` string, required
      - `held_by_others` string, required
      - `available` string, required
      - `reserved` string, required
      - `picked` string: Сколько собрано по строке в черновике сборки; нет поля — сборка не начата
      - `line_status` 'reserved' | 'available' | 'short' | 'done', required
      - `codes` StockDocumentProductCode[]: Действующие коды товара (ШК, GTIN, артикулы каналов и площадок, производителя) для столбцов строк, как у открытого документа
        - `kind` 'barcode' | 'gtin' | 'channel_article' | 'manufacturer_article', required
        - `source_ref` string, required: Источник кода: global, код канала продаж или пространство магазина «<площадка>:<магазин>:<поле>»
        - `value` string, required
        - `is_primary` boolean, required
    - `documents` StockWarehouseTaskDocument[], required
      - `id` string, uuid, required
      - `type` string, required
      - `number` string, required
      - `status` string, required
    - `history` StockWarehouseTaskHistoryEvent[], required
      - `event` 'created' | 'reserved' | 'started' | 'posted' | 'cancelled', required
      - `at` string, date-time, required
      - `by` StockWarehouseTaskUser
        - `id` integer, required
        - `name` string
    - `journal` CoreActionJournalEntry[]
      - `id` string, uuid, required
      - `created_at` string, date-time, required
      - `actor_user_id` integer, nullable: Пользователь; пусто — система или приложение
      - `actor_name` string, required: Имя автора на момент действия; пусто — система
      - `module` string, required: Модуль-владелец объекта
      - `action` string, required: created, edited, posted, reposted, unposted, cancelled, marked_deleted, unmarked_deleted, deleted, rebuilt, rebuild_refused, shelf_life_set, period_closed, period_reopened, marking_changed
      - `object_type` string, required: Вид объекта: document, period, product, product_category
      - `object_id` string, uuid, nullable
      - `object_label` string, required: Подпись объекта на момент действия, например вид и номер документа
      - `details` object, required: Подробности: изменённые поля, было и стало, дата документа

## Other responses

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

## Changes

- **2026-12-04** `1ffbc487f62d`: 2 info
  - added the optional property `allOf[#/components/schemas/StockWarehouseTaskRow]/wms/missing` to the response with the `200` status
  - added the optional property `allOf[#/components/schemas/StockWarehouseTaskRow]/wms/missing_lines` to the response with the `200` status
- **2026-11-30** `3c47464f0c82`: 1 warning, 1 info
  - added the new `picked_elsewhere` enum value to the `allOf[#/components/schemas/StockWarehouseTaskRow]/next_action` response property for the response status `200`
  - added the optional property `allOf[#/components/schemas/StockWarehouseTaskRow]/wms` to the response with the `200` status
- **2026-11-29** `ed09f147dad7`: 1 info
  - added the optional property `allOf[#/components/schemas/StockWarehouseTaskRow]/wms_receipt` to the response with the `200` status
- **2026-11-23** `68cabf340aab`: 1 info
  - added the optional property `allOf[subschema #2]/lines/items/codes` to the response with the `200` status
- **2026-11-20** `1be0a8cd2ba8`: 1 info
  - added the optional property `allOf[#/components/schemas/StockWarehouseTaskRow]/qty_unit` to the response with the `200` status

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/stock/warehouse-tasks/:kind/:id/get.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)
