A Flask-based web application that integrates with QuickBooks API to calculate sales tax for transactions.
- QuickBooks OAuth2 authentication
- Customer and Item selection from QuickBooks
- Sales tax calculation based on shipping addresses
- Real-time tax rate calculation using QuickBooks Tax API
- Python 3.x
- QuickBooks Developer Account
- ngrok (for local development)
- Clone the repository:
git clone
cd SalesTax
- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file with your QuickBooks credentials:
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
REDIRECT_URI=your_redirect_uri
- Update
config.py
with your QuickBooks API credentials - Set up your QuickBooks Developer account and configure the OAuth2 redirect URI
- For local development, use ngrok to create a public URL:
ngrok http 5000
- Start the Flask application:
python3 app.py
- Access the application at
http://localhost:5000
- Click "Connect to QuickBooks" to authenticate
- Select a customer and item from the dropdowns
- Enter shipping addresses and transaction details
- Click "Calculate Tax" to get the tax amount