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:

  1. Zapier Account

    Free or paid Zapier account. Sign up at zapier.com

  2. Surplus Lines Tax API Key

    Get your API key at app.surpluslinesapi.com. New accounts include 100 free queries.

  3. 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:

1

Trigger Event
New row in Google Sheets, form submission, webhook, or schedule

2

Surplus Lines API Action
Calculate Surplus Lines Tax or Get Tax Rate (current or historical)

3

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

  1. Log in to your Zapier account at zapier.com
  2. Click Create Zap
  3. Choose your trigger (e.g., "New Spreadsheet Row in Google Sheets")
  4. Search for "Surplus Lines Tax API" when adding an action
  5. Select an action (Calculate Surplus Lines Tax or Get Tax Rate)
  6. 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

  1. In your Zap, add a Surplus Lines Tax API action
  2. Click Sign in to Surplus Lines Tax API
  3. Enter your API key from app.surpluslinesapi.com
  4. 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

  1. Select your connected account from the dropdown
  2. Choose the action (Calculate Surplus Lines Tax or Get Tax Rate)
  3. Map input fields from your trigger or enter values manually
  4. Click Continue to test

Testing the Integration

Quick Test

  1. Create a new Zap with a Manual Trigger (Zapier by Zapier)
  2. Add Surplus Lines Tax API → Calculate Surplus Lines Tax
  3. Configure:
    • State: Texas
    • Premium: 10000
  4. 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

Use This Template

How It Works

Trigger: New row added to Google Sheets

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

  1. Click "Use This Template" above
  2. Connect your Google Sheets account
  3. Connect your Surplus Lines API key
  4. Select your Google Sheet and worksheet
  5. Map fields (State → Column B, Premium → Column C, Effective Date → Column D — optional)
  6. 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

Use This Template

How It Works

Trigger: New Google Form submission

Action 1: Surplus Lines Tax API - Calculate Tax
Action 2: Gmail - Send email with quote breakdown

Setup Steps

  1. Create a Google Form with: Name, Email, State, Premium fields
  2. Link form responses to a Google Sheet
  3. Click "Use This Template" above
  4. Connect Google Forms (select form's spreadsheet)
  5. Connect Gmail account
  6. Enter API key from surpluslinesapi.com
  7. 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

  1. Create New Zap → Name it "Webhook Tax Calculator"
  2. Set Up Trigger - Webhooks by Zapier:
    • Search for "Webhooks by Zapier"
    • Select "Catch Hook"
    • Copy the webhook URL provided
  3. 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
  4. Add Action - Google Sheets (optional):
    • Log results to a spreadsheet
  5. 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.

ColumnHeaderSource
AStatePre-filled by you (e.g. "Texas", "California")
BTax Rate (%)Auto-filled by Zap ← Tax Rate
CStamping Fee (%)Auto-filled by Zap ← Stamping Fee
DFiling FeeAuto-filled by Zap ← Filing Fee
ELast UpdatedAuto-filled by Zap ← current timestamp

Build Steps

  1. Create New Zap → Name it "Daily Tax Rate Updates"
  2. Trigger — Schedule by Zapier:
    • Select "Every Day"
    • Set preferred time (e.g., 9:00 AM)
  3. 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
  4. 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
  5. Action — Surplus Lines Tax API → Get Tax Rate:
    • State: map State from the loop
    • Effective Date: leave empty (fetches current rates)
  6. 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}}
  7. 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
successtrue if calculation succeeded
stateFull state name
state_code2-letter state code (e.g., "TX")
premiumPremium amount used for calculation
effective_dateThe date used for historical lookup, or null for current rates
rates_from"current" or "historical"
breakdown.base_tax.rateBase SL tax rate as decimal (e.g., 0.0485 = 4.85%)
breakdown.base_tax.amountBase tax amount in dollars
breakdown.stamping_fee.rateStamping fee rate as decimal
breakdown.stamping_fee.amountStamping fee amount in dollars
total_taxTotal tax amount in dollars (base tax + all fees)
total_duePremium + total tax
notesState-specific notes, or null
legislative_sourceURL to the relevant state legislation
fallback_reasonPopulated if historical date was requested but unavailable; current rates used instead
error_codeError code if calculation failed, or null
error_messageError description if calculation failed, or null
account.balanceYour remaining account balance in USD
account.free_queries_remainingFree queries remaining on your account
account.was_free_querytrue 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
stateFull state name
state_code2-letter state code (e.g., "TX")
rates_from"current" or "historical" — indicates whether current or historical rates were returned
tax_ratePrimary surplus lines tax rate (e.g., "4.85%")
stamping_feeStamping fee rate (e.g., "0.04%"), empty if not applicable
filing_feeFiling fee, empty if not applicable
service_feeService fee, empty if not applicable
surchargeAdditional surcharge, empty if not applicable
regulatory_feeRegulatory fee, empty if not applicable
legislative_sourceURL to the relevant state legislation
confidenceData confidence level: high, medium, or low
fallback_reasonPopulated 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

Get Your API Key View Full Documentation