This is sample C# Code how to use .Net 8 and NET Framework 4.8 Zatca eInvoice SDK library (zatca-einvoicing-sdk-238-R3.3.7) provided by Zatca.
This code is full step to get Integrating with Zatca
-
Onboarding
- Generate CSR and PrivateKey
- Get Compliance CSID
- Sending Sample Invoice to Compliance Check Url (Standar, Credit Note and Debit Note for Standard and Simplified)
- Get Production CSID
- Save OnboardingInfo to File as Reference for Approval Process
-
Invoice Approval (Clearance & Report)
- Standard Invoice
- Standard Credit Note
- Standard Debit Note
- Simplified Invoice
- Simplified Credit Note
- Simplified Debit Note
All Done In Sandbox Protal (Non Production Environtment) and Should not any Problem for Simulation and Production Environment
It just Simple code, that show how working with Zatca SDK. Ofcourse, we can use another feature that provided in Zatca SDK
All work well in my test on Windows OS, please let me know, if anyone has problem trying this sample code.
Reference :
- https://zatca.gov.sa/en/E-Invoicing/Pages/default.aspx
- https://sandbox.zatca.gov.sa/downloadSDK
- https://sandbox.zatca.gov.sa/IntegrationSandbox
- https://zatca1.discourse.group/
Thank you.