Stock documents

Найти складской документ по коду с его листа

Changed on

Код печатается на листе документа: ключ из 20 цифр (первые 8 байт UUID документа беззнаковым числом), ссылка QR с параметром code=<ключ> или UUID целиком. Хост ссылки не проверяется: документ ищется только в кабинете вызывающего и в его области юрлиц, как в журнале. Нераспознанный код, документ чужого юрлица и отсутствие документа дают один и тот же 404. Ответ — список: ключ короче UUID, и совпадение допускается в теории.

get/api/v1/stock/documents/scan

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

Query parameters

code, string required

Ключ из 20 цифр, ссылка с параметром code или UUID документа

Headers

X-Tenant, string required

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

Response

Найденные документы

StockDocumentScanResult required
count, integer required
results, StockScannedDocument[] required

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