Stock documents

Получить складской документ

Changed on

Документ чужого вида и документ недоступного юрлица одинаково отвечают «не найдено».

get/api/v1/stock/documents/{id}

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Response

Складской документ

StockDocumentRead required

Складской документ с необязательной вычисляемой проекцией названий. Чтение документа, область и маскирование стоимости применяются до проекции.

id, string uuid required
type_id, string uuid required
type_key, string required
type_name, string required
number, string required
date, string date required
status, 'draft' | 'posted' | 'cancelled' required
basis_type, string uuid nullable required
basis_id, string uuid nullable required
basis_number, string required
entity_refs, EntityRefs required
payload, Payload required
comment, string required
is_marked_deleted, boolean required
created_by, integer nullable required
created_by_name, string required
created_at, string date-time required
updated_at, string date-time required
posted_at, string required
cancelled_at, string required
custom, Custom

Значения своих полей кабинета (графы вида core.document.<ключ вида>). Отдаёт карточка документа; списки поле не несут

presentation, StockDocumentPresentation

Названия только точных сохранённых ссылок разрешённого документа или отобранной страницы: без цен, оценки и остатков, без зависимости от согласований. Поля не сохраняются и не принимаются командами записи.

Changes

    • info

      added the optional property presentation/processing_home_warehouse_id to the response with the status

    • info

      added the optional property presentation/task_number to the response with the status