Marking orders

Закрыть заказ кодов в СУЗ

Changed on

Закрывает заказ в СУЗ: неполученные коды пропадают, деньги за них не возвращаются. Действие уходит во внешнюю систему и необратимо, поэтому нужен узкий глагол marking.gismt:send, а агент исполняет его только после предпросмотра и явного согласия человека. СУЗ принимает закрытие с откреплённой подписью УКЭП тела (§ 4.4.8): signature — подпись тела из подготовки закрытия; без неё СУЗ откажет всем группам, кроме лекарств.

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

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 выбранного кабинета; кабинет не является юрлицом

Request body

object required
signature, string

Откреплённая подпись УКЭП (CMS в base64) тела из «Подготовить закрытие»

Response

Заказ после закрытия

MarkingCodeOrderEnvelope required
order, MarkingCodeOrder 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