-
-
Notifications
You must be signed in to change notification settings - Fork 0
Product Categories
MC0RE edited this page Mar 31, 2026
·
1 revision
Read product category definitions in Teamleader Focus.
Product categories organise products and carry ledger account numbers per department for accounting purposes. They are read-only through the API and must be managed in the Teamleader Focus web interface.
Access via Teamleader::productCategories().
No pagination.
list()returns all categories for the given filter in a single response.Response includes
ledgersarray β one entry per department, each with aledger_account_numberfor bookkeeping.
productCategories
| Capability | Supported |
|---|---|
| Pagination | β Not supported |
| Filtering | β
Supported (department_id) |
| Sorting | β Not supported |
| Sideloading | β Not supported |
| Creation | β Not supported |
| Update | β Not supported |
| Deletion | β Not supported |
use McoreServices\TeamleaderSDK\Facades\Teamleader;
// All categories
$categories = Teamleader::productCategories()->list();
// Filtered by department
$categories = Teamleader::productCategories()->list([
'department_id' => 'dept-uuid',
]);$categories = Teamleader::productCategories()->forDepartment('dept-uuid');| Filter | Type | Description |
|---|---|---|
department_id |
string | Department UUID |
[
'data' => [
[
'id' => 'category-uuid',
'name' => 'Asian Flowers',
'ledgers' => [
[
'department' => ['type' => 'department', 'id' => 'dept-uuid'],
'ledger_account_number' => '70100',
],
],
],
],
]// Get category for product creation
$categories = Teamleader::productCategories()->forDepartment('dept-uuid');
$categoryId = $categories['data'][0]['id'];
Teamleader::products()->create([
'name' => 'Product A',
'product_category_id' => $categoryId,
// ...
]);
// Build a [id => name] map
$map = array_column($categories['data'], 'name', 'id');
// Cache categories
$categories = Cache::remember('tl_product_categories', 3600, fn() =>
Teamleader::productCategories()->list()
);-
Products β Products are assigned a
product_category_id - Tax Rates β Also department-scoped, similar pattern
- Commercial Discounts β Also department-scoped
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