KSA APIs Online
Product DocsWebsite
  • Intro
  • Environments
  • Authentication
    • Access Tokens
    • API KEY
  • Generate Einvoice API
    • UBL2.1 XML
    • UBL2.1 XML (VAT IN URL)
    • JSON
    • JSON (VAT IN URL)
    • Responses
    • Callback Response
    • Technical Guidelines
  • Get Invoice Process Status
  • Get Invoice in PDF
Powered by GitBook
On this page
  • Authentication Header
  • Access Token
  • API Key

Authentication

This section showcases how the 2 types of Authentication mechanisms we support

PreviousEnvironmentsNextAccess Tokens

Last updated 1 year ago

Authentication Header

Access Token

If you have chosen the access token approach then for authentication to work you will need to pass the token in request headers in the following manner

Paramater
Value
Description

Authorization

JWT <access_token>

JWT remains constant following by a space and then the access token received from the associated API

API Key

If you have chosen the API key approach then for authentication to work you will need to pass the token in request headers in the following manner

Paramater
Value
Description

x-api-key

<api_key>

Pass the API key generated from the UI as is in the header

Access Tokens
API KEY