Note, this TestXML page can only be used to test Invoices signed using Certificates and Private keys contained in the SDK, this will result in an error if your invoice is signed using another certificate and private key.
The best way is to test invoice directly to the Compliance Check Invoice API or Reporting Api / Clearance Api.
This is my result test of .NET8 library from Zatca.eInvoice.SDK
I. ONBOARDING PROCESS
Step 1
CSR and PrivateKey Generated Successfully
Step 2
GET CCSID Successfully
Step 3
Send Sample Invoice Successfully
Step 4
Get PCSID Successfully
Data has been serialized to the file.
II. APPROVAL PROCESS
1. Get Standard Invoice Approval
Clearance Standard Invoice
{
"requestType": "Invoice Reporting",
"requestUrl": "https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices",
"statusCode": "200-OK",
"clearanceStatus": "CLEARED",
"validationResults": {
"status": "PASS",
"infoMessages": [
{
"status": "PASS",
"type": "INFO",
"code": "XSD_ZATCA_VALID",
"category": "XSD validation",
"message": "Complied with UBL 2.1 standards in line with ZATCA specifications"
}
],
"warningMessages": [],
"errorMessages": []
},
"clearedInvoice": ".........."
}
Clearance Standard Credit Note
{
"requestType": "Invoice Reporting",
"requestUrl": "https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices",
"statusCode": "200-OK",
"clearanceStatus": "CLEARED",
"validationResults": {
"status": "PASS",
"infoMessages": [
{
"status": "PASS",
"type": "INFO",
"code": "XSD_ZATCA_VALID",
"category": "XSD validation",
"message": "Complied with UBL 2.1 standards in line with ZATCA specifications"
}
],
"warningMessages": [],
"errorMessages": []
},
"clearedInvoice": ".........."
}
Clearance Standard Debit Note
{
"requestType": "Invoice Reporting",
"requestUrl": "https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices",
"statusCode": "200-OK",
"clearanceStatus": "CLEARED",
"validationResults": {
"status": "PASS",
"infoMessages": [
{
"status": "PASS",
"type": "INFO",
"code": "XSD_ZATCA_VALID",
"category": "XSD validation",
"message": "Complied with UBL 2.1 standards in line with ZATCA specifications"
}
],
"warningMessages": [],
"errorMessages": []
},
"clearedInvoice": ".........."
}
1. Get Simplified Invoice Approval
Reporting Simplified Invoice
{
"requestType": "Invoice Reporting",
"requestUrl": "https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices",
"statusCode": "200-OK",
"reportingStatus": "REPORTED",
"validationResults": {
"status": "PASS",
"infoMessages": [
{
"status": "PASS",
"type": "INFO",
"code": "XSD_ZATCA_VALID",
"category": "XSD validation",
"message": "Complied with UBL 2.1 standards in line with ZATCA specifications"
}
],
"warningMessages": [],
"errorMessages": []
}
}
Reporting Simplified Credit Note
{
"requestType": "Invoice Reporting",
"requestUrl": "https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices",
"statusCode": "200-OK",
"reportingStatus": "REPORTED",
"validationResults": {
"status": "PASS",
"infoMessages": [
{
"status": "PASS",
"type": "INFO",
"code": "XSD_ZATCA_VALID",
"category": "XSD validation",
"message": "Complied with UBL 2.1 standards in line with ZATCA specifications"
}
],
"warningMessages": [],
"errorMessages": []
}
}
Reporting Simplified Debit Note
{
"requestType": "Invoice Reporting",
"requestUrl": "https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices",
"statusCode": "200-OK",
"reportingStatus": "REPORTED",
"validationResults": {
"status": "PASS",
"infoMessages": [
{
"status": "PASS",
"type": "INFO",
"code": "XSD_ZATCA_VALID",
"category": "XSD validation",
"message": "Complied with UBL 2.1 standards in line with ZATCA specifications"
}
],
"warningMessages": [],
"errorMessages": []
}
}
ALL DONE!
C:\Users\Incredible One\source\repos\ZatcaWithSDK\ZatcaWithSDK\bin\Debug\net8.0\ZatcaWithSDK.exe (process 11512) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .