-
-
Notifications
You must be signed in to change notification settings - Fork 0
Withholding Tax Rates
Read withholding tax rate definitions in Teamleader Focus.
Withholding tax rates apply to invoices where tax is withheld at source β common in certain professional services invoicing contexts. The rates are configured in Teamleader Focus settings and cannot be modified through the API.
Access via Teamleader::withholdingTaxRates().
No filters, pagination, or sorting.
list()passes an empty filter object to the API and returns all rates in one response. All helpers are client-side.Float comparison uses tolerance of
0.0001infindByRate()to avoid IEEE 754 floating-point precision issues.
withholdingTaxRates
| Capability | Supported |
|---|---|
| Pagination | β Not supported |
| Filtering | β Not supported |
| Sorting | β Not supported |
| Sideloading | β Not supported |
| Creation | β Not supported |
| Update | β Not supported |
| Deletion | β Not supported |
Returns all withholding tax rates in a single response.
use McoreServices\TeamleaderSDK\Facades\Teamleader;
$rates = Teamleader::withholdingTaxRates()->list();All helpers are client-side β they call list() then filter in PHP.
Returns the rate object with that UUID, or null.
$rate = Teamleader::withholdingTaxRates()->find('rate-uuid');Matches using float tolerance (0.0001). Returns the first match, or null.
$rate = Teamleader::withholdingTaxRates()->findByRate(0.15); // 15%
$rate = Teamleader::withholdingTaxRates()->findByRate(0.10); // 10%Case-insensitive search. Default is exact match; pass false for partial.
$rate = Teamleader::withholdingTaxRates()->findByDescription('15%');
$rate = Teamleader::withholdingTaxRates()->findByDescription('15', false); // partialReturns all rates between two values (inclusive). Returns an empty array if none found.
$rates = Teamleader::withholdingTaxRates()->findByRateRange(0.05, 0.15);Returns flat [id => description] map.
$options = Teamleader::withholdingTaxRates()->asOptions();
// ['uuid-1' => '15%', 'uuid-2' => '10%', 'uuid-3' => '0%'][
'data' => [
['id' => 'uuid', 'description' => '15%', 'rate' => 0.15],
['id' => 'uuid', 'description' => '10%', 'rate' => 0.10],
['id' => 'uuid', 'description' => '0%', 'rate' => 0.0],
],
]// Use on invoice creation
$rate = Teamleader::withholdingTaxRates()->findByRate(0.15);
Teamleader::invoices()->create([
...,
'withholding_tax_rate_id' => $rate['id'],
]);
// Cache rates
$rates = Cache::remember('tl_withholding_tax_rates', 86400, fn() =>
Teamleader::withholdingTaxRates()->list()
);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