401 Unauthorized Error : Reporting API

Hi Everyone,

Yesterday, I received an Unauthorized (401) error on some random API calls. However, when I resynced the same invoice, it was accepted successfully. I would like to confirm: if I encounter a 401 error, should I re-use the same ICV or generate a new one?

whenever you resubmit an invoice, you should keep all the content exactly same including ICV, PIH, UUID and hash.

Thank you @Ankit.K.Tiwari

I have one more case to clarify. If I receive a 400 error, should I use a new ICV along with a new PIH (last synced bill hash), or a new ICV with the same PIH?

@Abhishek when you receive a 400 error, you will have to fix the issue(s) which results in 400 error(s) and corrected invoice should have a new ICV, UUID, PIH and hash.