KSA ZATCA API v2
The pages for version 2 of the Saudi Arabia (KSA) ZATCA e-invoicing API: account setup, API keys, EGS onboarding, the Unify API and its error messages. API v2 is a legacy version.
How the v2 API works
API v2 sends Saudi Arabia e-invoices to ZATCA through one main endpoint, the Unify API. It validates business-to-business (B2B) and business-to-consumer (B2C) documents and generates their QR codes in one request.
Before you can send documents, set up your account and onboard your E-Invoice Generation Solution (EGS):
- Sign up to create an account and get a refresh token.
- Sign in with the refresh token to get an access token.
- Generate an API key with the access token.
- Onboard your EGS with the API key.
- Send documents to the Unify API.
Pages
Sign up Create an account and get a refresh token. Sign in Exchange the refresh token for an access token. API key generation Generate the API key that the other v2 requests use. EGS onboarding Onboard your E-Invoice Generation Solution with ZATCA. Unify API Validate, clear or report documents and get their QR codes. Error messages Every error message the Unify API and EGS onboarding return.