Solution>
Generate a client secret key from the clear tax account. Go to Settings>Integrations>API client>Create API client
Select GST as products> Select Expiration as never expires>click on create
A client secret will be generated
Then generate access token using the below URL.
Send GET request to the url: {{BASE_URL}}/integration/v1/authz/token
If it is a SB clear tax account, BASE_URL will be https://api-sandbox.clear.in and for production https://api.clear.in
Use headers as ‘x-clear-client-secret’ : {client secret key}.
Reference: Generate Access Token API – ClearTax Docs
A sample added below
