{% extends "base.html" %} {% block content %}

QuickBooks Connection Debug

Diagnosing connection issues with QuickBooks API

Realm ID: {{ realm_id }}
Access Token: {{ access_token_preview }}

🔍 Test Results

{% if auth_success %} {% else %} {% endif %}
Authentication Test

{{ auth_message }}

{% if token_valid %} {% else %} {% endif %}
Token Validity

{% if token_valid %}Token is valid and can make API calls{% else %}Token is invalid or expired{% endif %}

🔧 Common Solutions

Issue: Authentication Failed (401)
  • ✅ Check your Client ID and Client Secret in config.py
  • ✅ Ensure you're using Sandbox credentials for testing
  • ✅ Verify the redirect URI matches in Intuit Developer portal
  • ✅ Make sure your app is published (not in development mode)
Issue: Token Expired
  • ✅ QuickBooks access tokens expire after 1 hour
  • ✅ Use the reconnect button below to get a fresh token
  • ✅ In production, implement token refresh logic
Issue: Wrong Environment
  • ✅ Use "sandbox" for testing with fake companies
  • ✅ Use "production" for real company data
  • ✅ Sandbox and Production have separate credentials
{% endblock %}