EflClient
getAuthToken
Retrieves an authentication token for a given partner id using the ApiKey security scheme.
getAuthToken() is the entry point for obtaining a Bearer token that will be used in subsequent calls to the EFL Leasing Online API.
It wraps the low-level ProcessApiClient::getToken() call and returns the token as a simple string.
All methods on EflClient may throw:
ApiException– when the EFL API returns an error response.HttpException– when the HTTP transport fails.
Handle these exceptions at your application boundary.
Method signature
public function getAuthToken(string $partnerId): string
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
partnerId | string | Yes | Partner identifier assigned by EFL. |
Return value
- Type:
string– token string to be used as a Bearer token in subsequent API calls.