Stock imports

Состояние сессии загрузки склада

Changed on

Сессию видит только её автор. status=pending — байты ждём или завершение можно повторить; attached — прогон заведён, published_ref — номер прогона импорта; failed — причина в failure. Адрес для байтов здесь не повторяется: он выдаётся один раз при открытии сессии.

get/api/v1/stock/upload-sessions/{id}

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Response

Состояние сессии

TransferSession required

Сессия загрузки файла по подписанному адресу хранилища. Ключи хранилища наружу не отдаются.

id, string uuid required
owner_type, string required
owner_id, string
name, string required
mime_type, string required
size_bytes, integer required
sha256, string
attributes, object
status, 'pending' | 'processing' | 'attached' | 'failed' | 'expired' required
failure, 'infected' | 'size' | 'checksum' | 'storage' | 'owner' | 'aborted' | 'expired'
failure_detail, string
scan_status, 'pending' | 'clean' | 'infected' | 'skipped'
scan_verdict, string
published_ref, string

Номер строки, заведённой по файлу; у почты — id загрузки для upload_ids

expires_at, string date-time required
created_at, string date-time required
completed_at, string date-time
upload, TransferInstructions

Как передать байты. Выдаётся один раз, при открытии сессии.

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    3 more changes in this revision