PIH for Next Invoice in Simplified Reporting

We successfully reported to Simplified. When we tried to report the simplified invoice, we used the default PIH as NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2E5N2ZiNTdlOQ==. After the submission, we received the following response:

{
  "invoiceHash": "hjrE1wFirAV76SfmlfsxqQB7M5bM4EFQc6Ql8ylcut0=",
  "uuid": "b0a514bf-df0f-4a5e-8a79-370d92b63fc8",
  "invoice": "PD94bWwgdmVyc2lvbj0…"
}

What will be the PIH for the next invoice? Should we set it to the same hash as the previous invoice: "hjrE1wFirAV76SfmlfsxqQB7M5bM4EFQc6Ql8ylcut0="?

Dear @koot

Thanks for reaching out,

Yes, Correct.

Thanks,
Ibrahem Daoud.

Should we hash and send the PIH in Base64? We are facing the following error during PIH validation:

2025-03-23 09:49:36,719 [ERROR] ValidationProcessorImpl - CODE : KSA-13, MESSAGE : PIH is invalid.

@idaoud any idea ? :folded_hands:

@koot you might be getting this error while validating through sdk.
update your pih file in sdk and try to validate.