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
Boats, Trains, Cars? The Best Way to Travel Is…
Nuvei Legal Licences & Certifications - Compliance and Accreditation Details | Nuvei
Woodward Avenue (M-1) - Automotive Heritage Trail - National Scenic Byway Foundation
Umbc Baseball Camp
#ridwork guides | fountainpenguin
Jennifer Hart Facebook
Mrh Forum
Is Csl Plasma Open On 4Th Of July
How to Type German letters ä, ö, ü and the ß on your Keyboard
Weather Annapolis 10 Day
What Was D-Day Weegy
18443168434
ATV Blue Book - Values & Used Prices
Learn2Serve Tabc Answers
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Aucklanders brace for gales, hail, cold temperatures, possible blackouts; snow falls in Chch
The Ultimate Style Guide To Casual Dress Code For Women
Iu Spring Break 2024
Rs3 Eldritch Crossbow
All Obituaries | Gateway-Forest Lawn Funeral Home | Lake City FL funeral home and cremation Lake City FL funeral home and cremation
Tokyo Spa Memphis Reviews
Webworx Call Management
Relaxed Sneak Animations
Mastering Serpentine Belt Replacement: A Step-by-Step Guide | The Motor Guy
Robert A McDougal: XPP Tutorial
Redding Activity Partners
J&R Cycle Villa Park
Siskiyou Co Craigslist
Spy School Secrets - Canada's History
Lucky Larry's Latina's
Best Workers Compensation Lawyer Hill & Moin
Edict Of Force Poe
The Bold And The Beautiful Recaps Soap Central
Leatherwall Ll Classifieds
Stafford Rotoworld
Blasphemous Painting Puzzle
Anhedönia Last Name Origin
Academy Sports New Bern Nc Coupons
Atom Tickets – Buy Movie Tickets, Invite Friends, Skip Lines
Giovanna Ewbank Nua
Differential Diagnosis
Cch Staffnet
American Bully Puppies for Sale | Lancaster Puppies
Boyfriends Extra Chapter 6
Blog Pch
Minute Clinic Mooresville Nc
Westport gun shops close after confusion over governor's 'essential' business list
Understanding & Applying Carroll's Pyramid of Corporate Social Responsibility
Kidcheck Login
Minecraft Enchantment Calculator - calculattor.com
Mast Greenhouse Windsor Mo
Room For Easels And Canvas Crossword Clue
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.