Hankintailmoitukset / hilma-api

11 stars 0 forks source link

Cannot re-submit a notice #178

Closed eduardsmirnov closed 1 year ago

eduardsmirnov commented 1 year ago

Maybe I do something totally wrong.

I submitted a notice (procedure=7004, id=8430) which was accepted by Hilma and later rejected by TED. After some intermediate fixes on Mercell and Hilma sides, I want to re-submit a notice with correct information.

For that, I call Validate API (success) and then "Create a notice to a procedure" API. Last call returns "Procedure already contains a notice in draft or waiting to be published state."

What should I do in this case? @Havunen ?

Havunen commented 1 year ago

Hi, we will investigate this

Havunen commented 1 year ago

Thanks for reporting this issue. We will go through this tomorrow and check if this is actually missing functionality in the eForms API

Havunen commented 1 year ago

It is now possible to re-submit a eforms notice through the API, but only when Hilma state of the notice is DRAFT and Ted state is one of the following DELETED, STOPPED, VALIDATION_FAILED or NOT_PUBLISHED. It is important that the notice etsIdentifier must not change when resubmitting the notice. The hilma state will go back to draft automatically when TED returns one of those states from their API.

Please re-open if this is still an issue