-
-
Notifications
You must be signed in to change notification settings - Fork 0
Payment Methods
Read payment method definitions in Teamleader Focus.
The Payment Methods resource provides read-only access to the payment methods configured in your account (bank transfer, direct debit, credit card, etc.). Methods can be active or archived.
Access via Teamleader::payment_methods().
SDK key uses underscores:
payment_methodsβ not camelCase.
paymentMethods
| Capability | Supported |
|---|---|
| Pagination | β Supported |
| Filtering | β
Supported (ids, status) |
| Sorting | β Not supported |
| Sideloading | β Not supported |
| Creation | β Not supported |
| Update | β Not supported |
| Deletion | β Not supported |
use McoreServices\TeamleaderSDK\Facades\Teamleader;
$methods = Teamleader::payment_methods()->list();
$methods = Teamleader::payment_methods()->list(
['status' => ['active']],
['page_size' => 50, 'page_number' => 1]
);Status filter: must be an array. Values are validated:
active,archived.
$method = Teamleader::payment_methods()->info('method-uuid');$active = Teamleader::payment_methods()->active();
$archived = Teamleader::payment_methods()->archived();Throws InvalidArgumentException if array is empty.
$methods = Teamleader::payment_methods()->byIds(['uuid-1', 'uuid-2']);Client-side β calls list() then searches in PHP (case-insensitive). Searches active methods only by default.
$method = Teamleader::payment_methods()->findByName('Bank Transfer');
$method = Teamleader::payment_methods()->findByName('Cash', false); // include archivedPaginates up to 10 pages (100 per page). Not guaranteed exhaustive for very large lists.
$all = Teamleader::payment_methods()->all();
$all = Teamleader::payment_methods()->all(['status' => ['active']]);Returns flat [id => name] map. Calls all() internally.
$options = Teamleader::payment_methods()->asOptions();
// ['uuid-1' => 'Bank Transfer', 'uuid-2' => 'Direct Debit', ...]
$allOptions = Teamleader::payment_methods()->asOptions(false); // include archivedReturns true if a method with that UUID exists.
$exists = Teamleader::payment_methods()->exists('method-uuid');| Filter | Type | Description |
|---|---|---|
ids |
array | Filter by payment method UUIDs |
status |
array |
active or archived β validated |
[
'data' => [
['id' => 'uuid', 'name' => 'Bank Transfer', 'status' => 'active'],
['id' => 'uuid', 'name' => 'Direct Debit', 'status' => 'active'],
],
'meta' => ['page' => ['size' => 20, 'number' => 1], 'matches' => 4],
]// Get method for a register payment call
$method = Teamleader::payment_methods()->findByName('Bank Transfer');
Teamleader::invoices()->registerPayment('invoice-uuid', ['amount' => 500.0, 'currency' => 'EUR'], now()->toIso8601String(), $method['id']);
// Cache methods
$methods = Cache::remember('tl_payment_methods', 3600, fn() => Teamleader::payment_methods()->all());-
Invoices β Payment methods used in
registerPayment() - Payment Terms β Invoice due-date configuration
- Subscriptions β Subscription payment configuration
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