I have begun working on integrating with the ZATCA system using the API Integration Sandbox, and I would like to seek your clarification on a few questions:
OTP Usage: The OTP is generated from the Fatoora portal. Is it used just once to generate the CSID, or do we need a new OTP each time we generate a CSID?
CSR Configuration: from where can I create a valid CSR
InvoiceHash: I created invoice hash from the SDK but I got [{“type”=>“ERROR”, “code”=>“invalid-invoice-hash”, “category”=>“INVOICE_HASHING_ERRORS”, “message”=>“The invoice hash API body does not match the (calculated) Hash of the XML”, “status”=>“ERROR”}],
“status”=>“ERROR”}
Transaction Types: Please describe how we can specify the type of transaction (e.g., invoice, debit note, credit note, etc.).
CSID Renewal: Could you clarify when the renewal of the CSID is needed and when it expires?
You can find an example in the SDK in /Data/input directory
Is it simplified or standard invoice? if its simplified, you need to sign the invoice.
Did you modify the invoice after generating the hash? If you modify the invoice, you need to generate a new hash
Did you use Fatoora -invoiceRequest -invoice [invoice path] command to generate the invoice body? The mentioned command ensures that the request body matches the submitted invoice.