sometimes, when sending the invoice to Zatca, we receive responses like these (Connection Aborted , reset by peer) or (URL Open error , Could not connect to endpoint) .
so we resend the invoice based on communication with the support provided by Zatca and their confirmation that there is no problem to do that .
now we have another case,
in the case of an invoice that was sent to Zatca and was rejected due to data issues, such as the total tax amount with the total of the items differing from invoice total, if we resend it to Zatca, it gets accepted , how was it rejected the first time and accepted the second time?
Thank you for reaching out, and welcome to our community.
It is not expected behavior for the system to reject an invoice with incorrect data, only for it to be accepted upon resubmission. To investigate this issue thoroughly, could you please provide an XML sample of the case where the invoice was initially rejected and then accepted upon resubmission? Please send the sample to sp_support@zatca.gov.sa.
Additionally, if you could share the full request and response from the API for the 500 (URL Open Error) response, it would be very helpful. This is a known issue, and our team is actively working on resolving it.