Access token | ClearTax Docs (2024)

What is an access token?

An access token is a confidential private key that can be used by a client application to authenticate itself to the Clear products (eg: GST, Max ITC, E-Invoice, etc) to access business resources via API.

What is the difference between a client secret and an access token?

Access token | ClearTax Docs (1)

While a client secret can be used to only generate access tokens, an access token so generated can be used to access business resources APIs (eg: to generate E-Invoice, upload documents, etc).

Similar to a client secret, an access token is specific to an environment and a workspace. This means, for the Clear sandbox and production environment, you will need a separate client secret. Similarly, if you have multiple workspaces in Clear, you will need a separate client secret. Based on the products selected at the time of the creation of a client secret, the access token may be restricted to those products as well.

How to generate an access token?

To generate an access token, you will need a client secret. If you do not have a client secret yet, check the guide on creating an API client here. If you already have a client secret, use the "Generate Access Token API" as documented below.

Generate Access Token API

To learn how to generate access token using API, refer to the Generate Access Token API reference.

How to regenerate an access token?

If your existing access token has expired, you may want to regenerate the access token. To regenerate an access token, follow the same steps mentioned for generating an access token.

If your existing access token has not expired, and if you generate a new access token with the same client secret, then you will receive a new access token and the old access token will be automatically revoked.

So even if you want to revoke an existing access token, you can simply generate a new access token to revoke the old access token automatically. If you want to revoke an existing access token and would never want to generate a new access token, then you can log in to Clear and delete the API client permanently.

How to use an access token?

After receiving the access token, it should be kept in a secure location within your ERP or billing system. Depending on your system, there are different methods to store this key:

  • For SAP ECC or S/4HANA, a custom table can be created to manage the access token.

  • For SAP CPI iflows, the keystore can be used to store the access token.

  • For a custom application, the access token can be kept in Vault, environment variables, or another secure location.

It is important to ensure that only authorized users have access to this storage location. The access token must be accessible to your application so that it can seamlessly access business resource APIs.

You can use the access token in the API request header of any product API as below:

x-cleartax-auth-token: {{latest_access_token_here}}
Access token | ClearTax Docs (2024)
Top Articles
Help Center | Lazada E-Wallet | Lazada PH | Lazada
A Background to the Market and Market Makers
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Pac Man Deviantart
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Umn Biology
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
San Pedro Sula To Miami Google Flights
Selly Medaline
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 5927

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.