@Ankit_Tiwari , PIH should be from the invoice hash we get when we generate invoice request from requestGenerator(),
var invoiceapiReq = invoiceRequest.GenerateRequest(signedXmlDocument);
the above method returns invoicehash,uuid and base64 of invoice. Should we use this hash for the subsequent invoice during singing of the subsequent invoice xml ? or do we need to use the hash of the final invoice hash which we receive after clearance , we get after calling this api “https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/invoices/clearance/single”;
your response is highly appreciated.Thankyou