Generate a client ID and client secret from your Avalara1099 account: Your Profile → API.
Send a POST request to the Identity Token URL with your client ID and client secret from Step 1 as form-encoded parameters:
POST https://identity.avalara.com/connect/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
client_id=<your client ID>
client_secret=<your client secret>Body parameters
| Parameter | Value |
| :--- | :--- |
| grant_type | Always client_credentials |
| client_id | Your client ID from Step 1 |
| client_secret | Your client secret from Step 1 |
Successful response
{
"access_token": "eyJhbGci...",
"expires_in": 3600,
"token_type": "Bearer"
}Use the access_token as a bearer token in the Authorization header on every A1099 API request:
Authorization: Bearer <access_token>For more on authenticating requests, see the A1099 authentication guide.
| Environment | Avalara 1099 API URL | Identity Token URL |
| :--- | :--- | :--- |
| Production | https://api.avalara.com/avalara1099 | https://identity.avalara.com/connect/token |
| Sandbox | https://api.sbx.avalara.com/avalara1099 | https://ai-sbx.avlr.sh/connect/token |