WHEN I TRIED TO CALL sandbox or simulation clearance API it returned this error
“errorMessages”: [
{
“type”: “ERROR”,
“code”: “XML-INVOICE-ERROR”,
“category”: “INVOICETYPE_ERRORS”,
“message”: "XML Submitted using reporting API is not a simplified document ",
“status”: “ERROR”
}
],
“status”: “ERROR”
Although I’m using invoice examples provided by SDK
Dear @abdulah
Thank you for reaching out, and welcome to our community.
The error message “XML Submitted using reporting API is not a simplified document” suggests that the XML file you’re submitting through the API is expected to be a “simplified document” type, but the submitted document doesn’t meet these requirements.
Kindly note that in reporting API (B2C invoices), the taxpayer is attempting to report invoices and continue at this way until successful reported, maintaining the official timeline of reporting invoices to ZATCA within 24 hours of issuing.
In clearance API (B2B invoices), the taxpayer is sending a B2B invoices using clearance API.
If you are submitting a B2B invoice, once you submit the B2B invoice the ZATCA API response should be “cleared “, Only for the B2C invoices that the ZATCA API response should be “reported”. Please make sure that in your submission to your invoices you are using the correct APIs then the invoices will be shared successfully.
Thanks & Regards,
thank you for replying, when i tried to send B2B to clearance it successfully cleared but when I tried then to send it to the reporting API it sent back this error “errorMessages”: [
{
“type”: “ERROR”,
“code”: “XML-INVOICE-ERROR”,
“category”: “INVOICETYPE_ERRORS”,
“message”: "XML Submitted using reporting API is not a simplified document ",
“status”: “ERROR”
}
],
“status”: “ERROR” so you mean to send b2b to clearance but b2c to reporting
and if “yes” when i send b2b to clearance and returns status code 200, does it mean it is reported and there is no need to use reporting API ?
@abdulah, Reporting API should be used only for sending Simplified Invoices (B2C invoices where Invoice Type Code is 0200000). You are getting this error as you may be sending Standard Tax Invoice (B2B invoice with Invoice Type Code 0100000) to Reporting API. If you need to send B2B invoice, please use Clearance API. Also, please go through guidelines on ZATCA’s website.