Skip to content

IntuitDeveloper/SampleApp-SalesTax-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickBooks Sales Tax Sample App

A Flask-based web application that integrates with QuickBooks API to calculate sales tax for transactions.

Features

  • 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

Prerequisites

  • Python 3.x
  • QuickBooks Developer Account
  • ngrok (for local development)

Installation

  1. Clone the repository:
git clone 
cd SalesTax
  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file with your QuickBooks credentials:
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
REDIRECT_URI=your_redirect_uri

Configuration

  1. Update config.py with your QuickBooks API credentials
  2. Set up your QuickBooks Developer account and configure the OAuth2 redirect URI
  3. For local development, use ngrok to create a public URL:
ngrok http 5000

Usage

  1. Start the Flask application:
python3 app.py
  1. Access the application at http://localhost:5000
  2. Click "Connect to QuickBooks" to authenticate
  3. Select a customer and item from the dropdowns
  4. Enter shipping addresses and transaction details
  5. Click "Calculate Tax" to get the tax amount

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •