Thanks for reaching out, apologies for the delay in response.
Please note that you should proceed with the second approach which is
When 401 response that’s mean the invoice didn’t submit yet, the correct action is to resubmit the same invoice with the same ICV and new PIH.