Marking orders

Получить готовые коды заказа в реестр

Changed on

Забирает из СУЗ готовые пачки кодов заказа в реестр кабинета: полные коды ложатся шифротекстом, наружу не выходят. Полученные пачки запоминаются, поэтому повтор не задваивает коды и received, а оборванная пачка забирается снова. has_more — в СУЗ остались коды, вызов стоит повторить. Закрытый или отклонённый заказ — 409.

post/api/v1/marking/orders/{id}/receive

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

Path parameters

id, string uuid required

Заказ кодов

Headers

X-Tenant, string required

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

Response

Итог получения

MarkingOrderReceiveResult required
order, MarkingCodeOrder required
received_now, integer required
duplicates, integer required
rejected, integer required

Не разобраны по формату группы: сохранены шифротекстом, разбираются заново

bound, integer required

Коды юрлица, бывшие в реестре без заказа, привязаны к заказу (входят в received_now)

conflicts, integer required

Коды, что числятся за другим юрлицом: не привязаны, сохранены неразобранными

has_more, boolean required

Changes

    • info

      added the required property order/items/items/permit to the response with the status

    • info

      added the optional property place to the response with the status

    • info

      added the optional property place to the response with the status

    4 more changes in this revision