Avalara · JSON Structure

Portal Oauth Token Response Structure

TokenResponse schema from Avalara API

Type: object Properties: 5
Taxes

TokenResponse is a JSON Structure definition published by Avalara, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

access_token token_type expires_in scope refresh_token

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalara/refs/heads/main/json-structure/portal-oauth-token-response-structure.json",
  "description": "TokenResponse schema from Avalara API",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The OAuth 2.0 access token"
    },
    "token_type": {
      "type": "string",
      "enum": [
        "Bearer"
      ]
    },
    "expires_in": {
      "type": "int32",
      "description": "Token expiry time in seconds"
    },
    "scope": {
      "type": "string",
      "description": "Granted scopes"
    },
    "refresh_token": {
      "type": "string",
      "description": "Refresh token (if applicable)"
    }
  },
  "name": "TokenResponse"
}