-
-
Notifications
You must be signed in to change notification settings - Fork 0
Withholding Tax Rates
Access withholding tax rate information in Teamleader Focus.
The Withholding Tax Rates resource provides read-only access to withholding tax rates configured in your Teamleader account. Withholding tax rates are used for certain types of invoices where tax is withheld at source.
Important: This resource is read-only. Withholding tax rates are configured in Teamleader Focus settings and cannot be created or modified through the API.
- Endpoint
- Capabilities
- Available Methods
- Helper Methods
- Response Structure
- Usage Examples
- Best Practices
- Related Resources
withholdingTaxRates
- Pagination: β Not Supported
- Filtering: β Not Supported
- Sorting: β Not Supported
- Sideloading: β Not Supported
- Creation: β Not Supported
- Update: β Not Supported
- Deletion: β Not Supported
Get all available withholding tax rates.
Parameters: None
Example:
use McoreServices\TeamleaderSDK\Facades\Teamleader;
// Get all withholding tax rates
$rates = Teamleader::withholdingTaxRates()->list();Find a withholding tax rate by its exact rate value.
// Find 15% withholding tax rate
$rate = Teamleader::withholdingTaxRates()->findByRate(0.15);Find a withholding tax rate by its description.
$rate = Teamleader::withholdingTaxRates()->findByDescription('15%');Get withholding tax rates formatted as key-value pairs for dropdowns.
$options = Teamleader::withholdingTaxRates()->asOptions();
// Returns: ['uuid-1' => '15%', 'uuid-2' => '10%', ...]{
"data": [
{
"id": "uuid",
"description": "15%",
"rate": 0.15
},
{
"id": "uuid",
"description": "10%",
"rate": 0.10
},
{
"id": "uuid",
"description": "0%",
"rate": 0.00
}
]
}$rates = Teamleader::withholdingTaxRates()->list();
echo "Available withholding tax rates:\n";
foreach ($rates['data'] as $rate) {
echo "- {$rate['description']} ({$rate['rate']})\n";
}// Get withholding tax rate
$withholdingRate = Teamleader::withholdingTaxRates()->findByRate(0.15);
$invoice = Teamleader::invoices()->create([
'invoice_date' => '2024-02-01',
'invoicee' => [...],
'grouped_lines' => [...],
'withholding_tax_rate_id' => $withholdingRate['id']
]);$amount = 1000.00;
$rate = Teamleader::withholdingTaxRates()->findByRate(0.15);
$withholdingTax = $amount * $rate['rate'];
$netAmount = $amount - $withholdingTax;
echo "Gross amount: β¬{$amount}\n";
echo "Withholding tax ({$rate['description']}): β¬{$withholdingTax}\n";
echo "Net amount: β¬{$netAmount}\n";use Illuminate\Support\Facades\Cache;
$rates = Cache::remember('withholding_tax_rates', 86400, function () {
return Teamleader::withholdingTaxRates()->list();
});// Good: Clear and concise
$rate = Teamleader::withholdingTaxRates()->findByRate(0.15);
// Less ideal: Manual searching
$rates = Teamleader::withholdingTaxRates()->list();
$rate = null;
foreach ($rates['data'] as $r) {
if ($r['rate'] === 0.15) {
$rate = $r;
break;
}
}Last Updated: August 2026 β’ SDK Version: 2.2.2 β’ Made with β€οΈ by MCore Services
- Departments
- Users
- Teams
- Custom Fields
- Work Types
- Document Templates
- Currencies
- Notes
- Email Tracking
- Closing Days
- Day Off Types
- Days Off
- User Schedules
- Invoices
- Credit Notes
- Subscriptions
- Payment Methods
- Payment Terms
- Tax Rates
- Withholding Tax Rates
- Commercial Discounts
Next Gen Projects
Legacy Projects