New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worked, How do I get PIH (previous invoice hash)? #6
Comments
The 400 Failure with
Yes, you will have to store the last invoice hash as a PIH somewhere whenever you create an invoice. |
So, with the first phase, I have to store the xml invoices correct? |
ZATCA's first phase does not require you to store any XMLs. But yes, for the second phase you will need to store the invoices as a custom object and then generate an XML every time. Or just store the signed XML for each invoice. |
Sorry for bothering you, in the first phase, what format does the invoice take? |
This package is intended for phase 2. Try something like @mrsool/zatca for phase 1. |
Thanks @wes4m for your help! |
I have pretty much the same example as you. When I runcheckInvoiceCompliance
orreportInvoice
I getRequest failed with status code 400
.One more question, do I store PIH in a DB or how do you get it?
The text was updated successfully, but these errors were encountered: