> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/cleartax-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/cleartax-docs/e-invoicing-ksa-api/learn-e-invoicing-ksa-api-basics/ksa-e-invoicing-integration-architecture.md).

# KSA E-Invoicing Integration Architecture

## Sequence Diagram for Onboarding and E-Invoice Generation

![](https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2F5uHFgUFjMkZGfafFzvnX%2FKSA%20Phase%20II%20Integration.drawio.png?alt=media\&token=1b98e516-0cef-4d5d-8f70-1066e68e43a2)

## Flow Diagram for Standard Controls and Checks on the ERP Side

![](https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FnoH8z0KR26NeniyI77DC%2FKSA%20Phase%20II%20Flow%20Chart.drawio.png?alt=media\&token=d4fc5d1b-8ab1-4dc7-848a-865b858dc6c7)
