Skip to main content
Every request to the ezInvoice API requires a valid access token. You get this token by calling the Auth endpoint once with your credentials, then include it in every subsequent request.

How it works

Getting your token

Call the Auth endpoint with your registered credentials:
You’ll receive a token in the response. Copy it — you’ll need it for every request.

Using your token

Include the token in the Authorization header on every call:

Important notes

Never share your secret or commit it to source code. Store credentials in environment variables.
Your credentials (VAT number, username, secret) are provided by ezInvoice during account setup. Contact support@einvoice.sa.com if you need them.