Overview
Commenda helps you calculate sales tax on transactions using our APIs. This guide walks you through the complete workflow for US sales tax calculation, from initial setup to calculating taxes on your transactions.Prerequisites
Before you can calculate sales tax, you need:- Organization: Contact Commenda to set up your organization.
- Corporation: Create a corporation that reflects one real-world business entity.
- API Token: Use your API token for authentication.
Understanding US sales tax nexus
In the US, you are not required to collect sales tax from customers unless you breach physical or economic nexus in a state. Once you breach nexus (setting aside grace periods), you must:- Register in the state where you have breached nexus
- Collect sales tax from customers in that state
- File and remit the collected taxes
Workflow
1. Create a corporation
Create a corporation using the Create Corporation API. A corporation represents a real-world business entity (e.g., Commenda Technologies Inc.) that will be collecting and remitting taxes.- Provide your organization ID and corporation details
- Save the corporation ID returned in the response for subsequent API calls
- Each corporation should map to one legal entity in your business
2. Monitor nexus exposure
Use the Nexus API to track your latest nexus exposure across states:- Monitor your transaction volume and revenue by state
- Identify states where you are approaching or have breached nexus thresholds
- Determine which states require registration
3. Ingest transactions
Use the Transactions API to submit your transaction data:- Submit completed transactions to track nexus progress
- Include transaction details such as amounts, locations, and dates
- Use bulk import for large transaction volumes
4. Register in exposed states
Once you have breached nexus in a state, create a registration using the Create Registration API:- Provide your API token and corporation ID
- Specify the state where you need to register
- Include registration details such as effective date and tax ID
5. Calculate sales tax
After creating registrations in exposed states, use the Calculate API to calculate taxes on your transactions.Minimum required fields
To calculate US sales tax, you must provide:- Destination address: The ship-to address of the invoice
- Calculation date: The date of the transaction
- Invoice information: Basic invoice details including:
- Invoice total or subtotal
- Line items with amounts and descriptions
- Product tax codes (if applicable)