-
-
Notifications
You must be signed in to change notification settings - Fork 0
Price Lists
MC0RE edited this page Mar 31, 2026
·
1 revision
Read price list definitions in Teamleader Focus.
Price lists define customer-specific or segment-specific pricing that can override the default product selling price. They are read-only through the API.
Access via Teamleader::priceLists().
No pagination.
list()returns all matching price lists in a single response.Only filter is
idsβ no department or status filters.
priceLists
| Capability | Supported |
|---|---|
| Pagination | β Not supported |
| Filtering | β
Supported (ids only) |
| Sorting | β Not supported |
| Sideloading | β Not supported |
| Creation | β Not supported |
| Update | β Not supported |
| Deletion | β Not supported |
use McoreServices\TeamleaderSDK\Facades\Teamleader;
// All price lists
$priceLists = Teamleader::priceLists()->list();
// Filter by specific UUIDs
$priceLists = Teamleader::priceLists()->list([
'ids' => ['price-list-uuid-1', 'price-list-uuid-2'],
]);Throws InvalidArgumentException if the array is empty.
$priceLists = Teamleader::priceLists()->byIds(['uuid-1', 'uuid-2']);| Filter | Type | Description |
|---|---|---|
ids |
array | Filter by price list UUIDs |
[
'data' => [
['id' => 'uuid', 'name' => 'Wholesale'],
['id' => 'uuid', 'name' => 'Retail'],
['id' => 'uuid', 'name' => 'Partner'],
],
]// Build a [id => name] map for a form select
$lists = Teamleader::priceLists()->list();
$options = array_column($lists['data'], 'name', 'id');
// Cache price lists
$lists = Cache::remember('tl_price_lists', 86400, fn() => Teamleader::priceLists()->list());use InvalidArgumentException;
// Empty ids array on byIds()
try {
Teamleader::priceLists()->byIds([]);
} catch (InvalidArgumentException $e) {
// 'At least one price list ID must be provided'
}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