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 Surplus Lines Tax or Get Tax Rate (current or historical)
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 Surplus Lines Tax or Get 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 Surplus Lines Tax or Get 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)
- Effective Date (optional) - Date in M/D/YYYY or YYYY-MM-DD format. Leave empty for current rates; fill in for historical rate calculations.
- Total Tax - Calculated tax (auto-filled)
- Total Due - Grand total (auto-filled)
Historical Rates Tip
Add an Effective Date column to your sheet to calculate taxes using the rates that were in effect on a specific past date — useful for policy audits and retroactive calculations. Leave the cell empty to use current rates.
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, Effective Date → Column D — optional)
- 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
- Optionally map Effective Date from webhook data for historical rate calculations
-
Add Action - Google Sheets (optional):
- Log results to a spreadsheet
- Test and turn ON
Test Your Webhook
Basic calculation (current rates):
curl -X POST YOUR_WEBHOOK_URL \
-H "Content-Type: application/json" \
-d '{
"state": "California",
"premium": 25000
}'
With historical rate lookup:
curl -X POST YOUR_WEBHOOK_URL \
-H "Content-Type: application/json" \
-d '{
"state": "California",
"premium": 25000,
"effective_date": "2024-06-15"
}'
With all optional parameters:
curl -X POST YOUR_WEBHOOK_URL \
-H "Content-Type: application/json" \
-d '{
"state": "Texas",
"premium": 50000,
"effective_date": "2024-01-01",
"wet_marine": false,
"fire_insurance": false,
"electronic_filing": false,
"medical_malpractice": false,
"workers_comp": false,
"new_business": true
}'
Workflow: Daily Tax Rate Updates
Keep a rate sheet automatically updated every morning. Add the states you want to track and the Zap updates Tax Rate, Stamping Fee, Filing Fee, and Last Updated for each one.
Build-It-Yourself Guide
Requires Zapier Professional ($29.99/mo) for Schedule triggers and Looping by Zapier, which iterates over each state row individually.
Sheet Setup
Create a Google Sheet with these columns. Fill column A with the states you want to track — the Zap fills in the rest automatically.
| Column | Header | Source |
|---|---|---|
| A | State | Pre-filled by you (e.g. "Texas", "California") |
| B | Tax Rate (%) | Auto-filled by Zap ← Tax Rate |
| C | Stamping Fee (%) | Auto-filled by Zap ← Stamping Fee |
| D | Filing Fee | Auto-filled by Zap ← Filing Fee |
| E | Last Updated | Auto-filled by Zap ← current timestamp |
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 → Get Many Spreadsheet Rows:
- Select your "Daily Tax Rates" spreadsheet and sheet
- Enable "Should this step be considered a success if nothing is found?" → Yes
- This fetches all rows that have a state name in column A
-
Action — Looping by Zapier → Create Loop From Line Items:
- Map State (column A) and Row Number from the previous step
- This iterates over each state row one at a time
-
Action — Surplus Lines Tax API → Get Tax Rate:
- State: map State from the loop
- Effective Date: leave empty (fetches current rates)
-
Action — Google Sheets → Update Spreadsheet Row:
- Row: map Row Number from the loop
- Column B (Tax Rate %): map Tax Rate from Get Tax Rate
- Column C (Stamping Fee %): map Stamping Fee from Get Tax Rate
- Column D (Filing Fee): map Filing Fee from Get Tax Rate
- Column E (Last Updated): type
{{zap_meta_human_now}}
- 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 |
|---|---|---|
effective_date |
String | Date for historical rate calculation (YYYY-MM-DD or M/D/YYYY). Leave empty for current rates. Automatically falls back to current rates if historical data is unavailable. |
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,
"effective_date": null,
"rates_from": "current",
"breakdown": {
"base_tax": {
"rate": "4.85%",
"amount": 485
},
"stamping_fee": {
"rate": "0.04%",
"amount": 4
}
},
"total_tax": 489,
"total_due": 10489,
"notes": null,
"legislative_source": "https://statutes.capitol.texas.gov/docs/IN/htm/IN.225.htm",
"fallback_reason": null,
"error_code": null,
"error_message": null,
"account": {
"balance": "9.62",
"free_queries_remaining": 99,
"was_free_query": false
}
}
Output Fields
| Field | Description |
|---|---|
success | true if calculation succeeded |
state | Full state name |
state_code | 2-letter state code (e.g., "TX") |
premium | Premium amount used for calculation |
effective_date | The date used for historical lookup, or null for current rates |
rates_from | "current" or "historical" |
breakdown.base_tax.rate | Base SL tax rate as decimal (e.g., 0.0485 = 4.85%) |
breakdown.base_tax.amount | Base tax amount in dollars |
breakdown.stamping_fee.rate | Stamping fee rate as decimal |
breakdown.stamping_fee.amount | Stamping fee amount in dollars |
total_tax | Total tax amount in dollars (base tax + all fees) |
total_due | Premium + total tax |
notes | State-specific notes, or null |
legislative_source | URL to the relevant state legislation |
fallback_reason | Populated if historical date was requested but unavailable; current rates used instead |
error_code | Error code if calculation failed, or null |
error_message | Error description if calculation failed, or null |
account.balance | Your remaining account balance in USD |
account.free_queries_remaining | Free queries remaining on your account |
account.was_free_query | true if this query was counted as a free query |
Search: Get Tax Rate
Retrieve current or historical tax rates for a specific U.S. state or territory. Automatically falls back to current rates if historical data is unavailable for the requested date.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
state |
Dropdown | Yes | Select from 53 U.S. states and territories (e.g., "Texas" or "TX") |
effective_date |
String | No | Date for historical rates in YYYY-MM-DD format (e.g., 2024-06-15). Leave empty for current rates. Automatically falls back to current rates if historical data is unavailable. |
Example Output
{
"state": "Texas",
"state_code": "TX",
"rates_from": "current",
"tax_rate": "4.85%",
"stamping_fee": "0.04%",
"filing_fee": "",
"service_fee": "",
"surcharge": "",
"regulatory_fee": "",
"legislative_source": "https://statutes.capitol.texas.gov/docs/IN/htm/IN.225.htm",
"confidence": "high",
"fallback_reason": null
}
Output Fields
| Field | Description |
|---|---|
state | Full state name |
state_code | 2-letter state code (e.g., "TX") |
rates_from | "current" or "historical" — indicates whether current or historical rates were returned |
tax_rate | Primary surplus lines tax rate (e.g., "4.85%") |
stamping_fee | Stamping fee rate (e.g., "0.04%"), empty if not applicable |
filing_fee | Filing fee, empty if not applicable |
service_fee | Service fee, empty if not applicable |
surcharge | Additional surcharge, empty if not applicable |
regulatory_fee | Regulatory fee, empty if not applicable |
legislative_source | URL to the relevant state legislation |
confidence | Data confidence level: high, medium, or low |
fallback_reason | Populated when historical data was unavailable and current rates were returned instead |
Use Cases
- Daily Rate Sheets — Keep a reference sheet of rates for your active states, updated automatically
- Policy Audits — Look up the rates that were in effect on a specific past date
- Renewals — Compare current rates to prior year rates for renewal quotes
- Compliance — Document rate information with legislative source links for regulatory filings
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
- Google Sheets Calculator template and Webhook workflow work on Zapier Free
- Daily Rate Updates workflow requires Zapier Professional ($29.99/mo) for Schedule triggers and Looping by Zapier