Zapier Integration
Automate U.S. surplus lines tax calculations with Zapier. Connect to 7,000+ apps with no-code automation. Set up in 5-15 minutes.
What is Zapier?
Zapier is the leading no-code automation platform that connects over 7,000 apps. Create "Zaps" that automatically trigger actions across your tools—without writing code. Perfect for insurance professionals who want to automate tax calculations.
Why Use Zapier Integration?
- No Code Required — Build automations with simple point-and-click interface
- 7,000+ App Integrations — Connect to Google Sheets, Slack, Salesforce, HubSpot, and more
- Ready-to-Use Templates — Pre-built Zaps for common insurance workflows
- Instant Calculations — Calculate taxes in under 2 seconds
- 53 Jurisdictions — All 50 states + DC + Puerto Rico + US Virgin Islands
- Historical Rates — Look up tax rates for any past date
Prerequisites
Before using the Zapier integration, ensure you have:
-
Zapier Account
Free or paid Zapier account. Sign up at zapier.com
-
Surplus Lines Tax API Key
Get your API key at app.surpluslinesapi.com. New accounts include 100 free queries.
-
Connected Apps (Optional)
Depending on your use case, you may need connections to Google Sheets, Gmail, webhooks, or other apps.
How It Works
The Zapier app connects your Zaps to the Surplus Lines Tax API with four powerful actions:
Trigger Event
New row in Google Sheets, form submission, webhook, or schedule
Surplus Lines API Action
Calculate tax, search rates, get states, or find historical rates
Output Action
Update spreadsheet, send email, post to Slack, etc.
Installation
The Surplus Lines Tax API app is available in Zapier and ready to use in your Zaps.
Quick Start
- Log in to your Zapier account at zapier.com
- Click Create Zap
- Choose your trigger (e.g., "New Spreadsheet Row in Google Sheets")
- Search for "Surplus Lines Tax API" when adding an action
- Select an action (Calculate Tax, Find Tax Rates, Get States, or Find Historical Tax Rate)
- Connect your API key when prompted
New to Zapier?
Check out Zapier's Getting Started Guide to learn the basics of creating Zaps.
Configuration
Step 1: Connect Your API Key
- In your Zap, add a Surplus Lines Tax API action
- Click Sign in to Surplus Lines Tax API
- Enter your API key from app.surpluslinesapi.com
- Click Yes, Continue
Keep Your API Key Secure
Never share your API key publicly. Zapier securely stores your credentials and uses them only for your Zaps.
Step 2: Configure Action
- Select your connected account from the dropdown
- Choose the action (Calculate Tax, Find Tax Rates, Get States, or Find Historical Tax Rate)
- Map input fields from your trigger or enter values manually
- Click Continue to test
Testing the Integration
Quick Test
- Create a new Zap with a Manual Trigger (Zapier by Zapier)
- Add Surplus Lines Tax API → Calculate Surplus Lines Tax
- Configure:
- State: Texas
- Premium: 10000
- Click Test action
Expected Result: You should see tax calculation output with Texas tax ($485), stamping fee ($4), and total due ($10,489).
Template: Google Sheets Tax Calculator
Automatically calculate surplus lines taxes for new rows in Google Sheets. Perfect for batch processing policies.
Ready-to-Use Template
How It Works
Action 1: Surplus Lines Tax API - Calculate Tax
Action 2: Google Sheets - Update row with tax results
Required Google Sheet Columns
- Policy Number - Your policy identifier
- State - State name (e.g., "Texas")
- Premium - Premium amount (numbers only)
- Total Tax - Calculated tax (auto-filled)
- Total Due - Grand total (auto-filled)
Setup Steps
- Click "Use This Template" above
- Connect your Google Sheets account
- Connect your Surplus Lines API key
- Select your Google Sheet and worksheet
- Map fields (State → Column B, Premium → Column C)
- Turn the Zap ON
Template: Quote Request to Email
Send instant professional quotes when prospects submit your form. Includes pre-formatted email template with tax breakdown.
Ready-to-Use Template
How It Works
Action 1: Surplus Lines Tax API - Calculate Tax
Action 2: Gmail - Send email with quote breakdown
Setup Steps
- Create a Google Form with: Name, Email, State, Premium fields
- Link form responses to a Google Sheet
- Click "Use This Template" above
- Connect Google Forms (select form's spreadsheet)
- Connect Gmail account
- Enter API key from surpluslinesapi.com
- Turn the Zap ON
Workflow: Webhook Integration
Connect any system via HTTP POST to automatically calculate and log results. Universal integration point for custom applications.
Build-It-Yourself Guide
Webhook URLs are unique to each Zapier account, so this needs to be built manually. Follow the step-by-step guide below.
Build Steps
- Create New Zap → Name it "Webhook Tax Calculator"
-
Set Up Trigger - Webhooks by Zapier:
- Search for "Webhooks by Zapier"
- Select "Catch Hook"
- Copy the webhook URL provided
-
Add Action - Surplus Lines Tax API:
- Select "Calculate Surplus Lines Tax"
- Map State and Premium from webhook data
-
Add Action - Google Sheets (optional):
- Log results to a spreadsheet
- Test and turn ON
Test Your Webhook
curl -X POST YOUR_WEBHOOK_URL \
-H "Content-Type: application/json" \
-d '{"state":"California","premium":25000}'
Workflow: Daily Tax Rate Updates
Keep a master rate sheet with all 53 jurisdictions automatically updated every morning. Perfect for compliance tracking.
Build-It-Yourself Guide
Requires Zapier Professional ($29.99/mo) for schedule triggers and multi-row creation.
Build Steps
- Create New Zap → Name it "Daily Tax Rate Updates"
-
Trigger - Schedule by Zapier:
- Select "Every Day"
- Set preferred time (e.g., 9:00 AM)
-
Action - Google Sheets (Clear):
- Clear existing rate data rows
-
Action - Surplus Lines Tax API:
- Select "Find Tax Rates"
- Returns all 53 states with current rates
-
Action - Google Sheets (Create Multiple Rows):
- Map state data to spreadsheet columns
- Test and turn ON
Action: Calculate Surplus Lines Tax
Calculate surplus lines tax for any U.S. state and premium amount with detailed breakdowns.
Required Parameters
| Parameter | Type | Description |
|---|---|---|
state |
Dropdown | Select from 53 U.S. states and territories. You can also use 2-letter state codes (e.g., "TX" or "Texas") |
premium |
Number | Premium amount in USD (must be positive) |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
wet_marine |
Boolean | Wet marine coverage (affects Alaska) |
fire_insurance |
Boolean | Fire insurance (affects SD, MT) |
electronic_filing |
Boolean | Electronic filing (affects MT stamping fee) |
fire_marshal_rate |
Number | Fire marshal tax rate 0-1% (Illinois only) |
medical_malpractice |
Boolean | Medical malpractice (exempt in PR) |
workers_comp |
Boolean | Workers compensation (exempt in VA) |
year |
Number | Tax year (affects Iowa rates 2024-2027) |
new_business |
Boolean | New vs renewal policy (affects Oregon $10 fee) |
Example Output
{
"success": true,
"state": "Texas",
"state_code": "TX",
"premium": 10000,
"total_tax": 503,
"total_due": 10503,
"account": {
"balance": "9.62",
"free_queries_remaining": 99,
"was_free_query": false
}
}
Action: Find Tax Rates
Retrieve current tax rates for all U.S. states and territories, or filter by a specific state.
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
state |
Dropdown | Optional. Filter by specific state. You can use full name or 2-letter code (e.g., "TX" or "Texas"). Leave empty to get all states. |
Example Output
{
"success": true,
"request_id": "req-1770111587080-zv53yfmdb",
"count": 53,
"data": [
{
"state": "Alabama",
"state_code": "AL",
"tax_rate": "6%",
"stamping_fee": null,
"filing_fee": null,
"service_fee": null,
"surcharge": null,
"regulatory_fee": null,
"fire_marshal_tax": null,
"slas_clearinghouse_fee": null,
"flat_fee": null,
"special_notes": null,
"payment_frequency": "Annually",
"legislative_source": "https://law.justia.com/codes/alabama/..."
},
{
"state": "Texas",
"state_code": "TX",
"tax_rate": "4.85%",
"stamping_fee": "0.04%",
"filing_fee": null,
"service_fee": null,
"surcharge": null,
"regulatory_fee": null,
"fire_marshal_tax": null,
"slas_clearinghouse_fee": null,
"flat_fee": null,
"special_notes": null,
"payment_frequency": null,
"legislative_source": "https://statutes.capitol.texas.gov/..."
}
// ... remaining 51 states
],
"account": {
"balance": "9.62",
"free_queries_remaining": 0,
"was_free_query": false
}
}
Action: Get States
Get a list of all supported U.S. states and territories as 2-letter postal codes.
Parameters
None required.
Returns
Array of 2-letter postal codes for all 50 states plus DC, Puerto Rico, and U.S. Virgin Islands.
Example Output
[
"AL",
"AK",
"AZ",
...
"TX",
...
"WY"
]
Action: Find Historical Tax Rate
Look up tax rates that were in effect on a specific date. Perfect for policy audits, renewals, and historical compliance verification.
New Feature
Historical rates allow you to calculate taxes using the rates that were in effect at a specific point in time—essential for policy audits and retroactive calculations.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
state |
Dropdown | Yes | Select from 53 U.S. states and territories. You can also use 2-letter state codes (e.g., "IA" or "Iowa") |
date |
Date | No | The date for which to retrieve historical rates (YYYY-MM-DD format). Defaults to today's date if not provided. |
Example Output
[
{
"success": true,
"state": "Texas",
"state_code": "TX",
"query_date": "2024-01-02",
"rate": {
"tax_rate": "0.0485",
"stamping_fee": "0.0004",
"filing_fee": "0.0000",
"service_fee": "0.0000",
"surcharge": "0.0000",
"regulatory_fee": "0.0000",
"fire_marshal_tax": "0.0000",
"slas_clearinghouse_fee": "0.0000",
"flat_fee": "0.00",
"effective_from": "2024-01-01T00:00:00.000Z",
"effective_to": null,
"legislative_source": "https://statutes.capitol.texas.gov/docs/IN/htm/IN.225.htm",
"confidence": "unknown"
},
"account": {
"balance": "0.00",
"free_queries_remaining": 408,
"was_free_query": true
}
}
]
Output Fields
| Field | Type | Description |
|---|---|---|
query_state |
String | The full state name that was queried |
query_state_code |
String | The 2-letter state code (e.g., "TX", "CA") |
query_date |
String | The date that was queried (YYYY-MM-DD) |
tax_rate |
Number | Surplus lines tax rate as decimal (e.g., 0.0485 = 4.85%) |
stamping_fee |
Number | Stamping fee rate as decimal, or 0 if not applicable |
filing_fee |
Number | Filing fee rate as decimal |
service_fee |
Number | Service fee rate as decimal |
surcharge |
Number | Surcharge rate as decimal |
regulatory_fee |
Number | Regulatory fee rate as decimal |
fire_marshal_tax |
Number | Fire marshal tax rate as decimal |
slas_clearinghouse_fee |
Number | SLAS clearinghouse fee as decimal |
flat_fee |
Number | Flat fee amount in dollars |
effective_from |
String | Date when this rate became effective (YYYY-MM-DD) |
effective_to |
String | Date when this rate expires (YYYY-MM-DD), or null if current |
legislative_source |
String | Legal citation for the tax rate |
confidence |
String | Data confidence level (high, medium, low) |
Use Cases
- Policy Audits — Verify taxes were calculated correctly using rates in effect at policy inception
- Renewals — Compare current rates to prior year rates for renewal quotes
- Compliance — Document historical rate information for regulatory filings
- Retroactive Calculations — Calculate taxes for backdated policies
Troubleshooting
"Authentication failed" error
Your API key is invalid or expired. Verify your key at app.surpluslinesapi.com.
"Insufficient balance" error
Your account balance is depleted. Add funds at app.surpluslinesapi.com.
"Invalid state" error
Use the state dropdown to select a valid state. Do not enter free text.
Zap not triggering
- Verify Zap is ON (toggle in top-right corner)
- Check that your trigger is configured correctly
- For Google Sheets triggers: new rows must be added after the Zap is turned on
- Check Zap history for error messages
States dropdown not loading
Reconnect your API key: click on the account dropdown and select "Reconnect" or add a new connection.
Getting Help
Contact us at support@undtec.com for assistance.
Pricing
Zapier integration usage follows the same pricing as the REST API:
| Free Tier | 100 free queries for new accounts |
| Per Query | $0.38 per calculation |
| Monthly Minimum | $18/month (after free tier) |
| Initial Deposit | $50 (credited to your balance) |
Zapier Plan Requirements
- Templates #1, #2, and Webhook workflow work on Zapier Free
- Daily Rate Updates workflow requires Zapier Professional ($29.99/mo)