EFL
Low-level clients

LeadApiClient

Low-level client for /Lead endpoints used to send contact and lead data.

LeadApiClient provides raw access to /Lead endpoints. Methods return HttpResponse and require a Bearer token.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Api
  • Constructor: accepts EflHttpClient $http.

It is used by EflClient to expose methods that send lead/contact data.

Methods

sendContactForm

Low-level wrapper over POST /lon/api/v1/Lead/SendContactForm.

public function sendContactForm(
    string $transactionId,
    ContactData $contactData,
    string $bearerToken
): HttpResponse

Auth: Bearer token.

Parameters

NameTypeRequiredDescription
transactionIdstringYesIdentifier of the transaction associated with the lead.
contactDataContactDataYesLead/contact data payload.
bearerTokenstringYesBearer token.

The request body is the JSON payload from ContactData::toRequestPayload().

Return value

  • Type: HttpResponse – raw response confirming that the contact form / lead was submitted.