Collect Taxes with UniBee
UniBee provides comprehensive tax collection capabilities for both international (VAT) and US (Sales Tax) customers. The system automatically calculates taxes based on customer location, validates VAT numbers, and ensures compliance with tax regulations.Overview
UniBee supports two main tax systems:- VAT (Value Added Tax): For EU and international customers
- US Sales Tax: For US customers via TaxJar integration
VAT Tax System (EU/International)
Available VAT Gateways
UniBee supports multiple VAT gateway options to suit different business needs:1. Default Gateway (Built-in)
Best for: Small businesses or businesses that need basic VAT calculation Features:- ✅ Built-in VAT rate database
- ✅ No API key required
- ✅ Free to use
- ✅ Supports most EU and international countries
- ✅ Based on official EU tax rates
2. VATSense Gateway
Best for: Businesses that need professional VAT validation and real-time rate updates Features:- ✅ Real-time VAT number validation
- ✅ Automatic weekly rate updates
- ✅ EORI number validation support
- ✅ Professional VAT service provider
3. VATStack Gateway
Best for: Alternative professional VAT service Features:- ✅ VAT number validation
- ✅ Country tax rate queries
- ✅ Webhook support for async validation
4. Github VIES Gateway
Best for: EU-only businesses looking for a free VAT validation solution Features:- ✅ Free service
- ✅ EU VAT number validation via VIES system
- ✅ Format and entity validation
Setting Up a VAT Gateway
- Go to Settings page in UniBee Admin Portal
- Navigate to Configuration → Integrates tab
- Select your preferred VAT gateway
- Enter API key (if required)
- Save the configuration
💡 Which gateway should I choose?
- Start with Default Gateway if you need basic VAT calculation
- Use VATSense or VATStack if you need VAT number validation
- Choose Github VIES for free EU-only VAT validation
How VAT Calculation Works
UniBee automatically calculates VAT based on:- Customer’s country: Tax rates vary by country
- VAT number: Valid VAT numbers result in 0% tax (business-to-business)
- Product type: Some products may have different tax rates
- Payment gateway rules: You can configure custom rates per gateway
VAT Number Validation
When customers provide a VAT number, UniBee automatically validates it:- Real-time validation: VAT numbers are checked against official databases
- Automatic exemption: Valid VAT numbers result in 0% tax
- Validation history: All validations are recorded for your records
- Customer enters VAT number during checkout
- UniBee validates the number format
- System checks validation history (cached results)
- If not cached, calls VAT gateway for real-time validation
- Valid VAT number = 0% tax applied automatically
⚠️ Important: VAT validation only confirms the number is valid. You may still need to verify the customer’s name and address matches the VAT registration after purchase.
Changing Customer Tax for Recurring Payments
When you change a customer’s country, the tax rate will automatically update:- Go to Customers → User List
- Select the customer
- Edit their country information
- The next invoice will use the new tax rate (if changed before the next billing cycle)
Custom Tax Rates via API
You can also manage taxes within your own system and pass custom tax rates via UniBee API. Custom rates take precedence over gateway-provided rates.APIs Supporting Custom Tax Rates
- Subscription Create Preview
- Subscription Create Submit
- Subscription Update Preview
- Subscription Update Submit
- Subscription Renew
Fields to Use
When calling these APIs, you can specify:taxPercentage: Custom tax rate (in basis points, e.g., 1900 = 19%)vatNumber: Customer’s VAT numbervatCountryCode: Customer’s country code
💡 Priority: Custom tax rates specified via API take precedence over rates provided by VAT gateways.
Tax on Refunds
When processing refunds, UniBee automatically:- ✅ Uses the original invoice’s tax rate
- ✅ Calculates refund tax accurately
- ✅ Maintains tax compliance for refunds
Best Practices
For VAT Setup
-
Choose the right gateway:
- Start with Default Gateway for basic needs
- Upgrade to VATSense/VATStack if you need validation
- Use Github VIES for free EU-only validation
-
Enable VAT number validation:
- Allows B2B customers to provide VAT numbers
- Automatically exempts valid VAT numbers from tax
-
Keep rates updated:
- Default Gateway uses built-in rates
- VATSense/VATStack update weekly automatically
- Verify rates periodically for accuracy
For Tax Compliance
- Verify VAT numbers: Even though UniBee validates VAT numbers, verify customer details match registration
- Keep records: All tax calculations and VAT validations are logged for audit purposes
- Monitor changes: Tax rates can change - ensure your gateway stays updated
Related Topics
- US VAT & TaxJar Setup - For US sales tax collection
- Invoice Computation - Understanding tax in invoices

