EFL
Low-level clients

TestingApiClient

Low-level client for /Testing endpoints used in sandbox scenarios.

TestingApiClient provides sandbox-only utilities under /Testing. Methods return HttpResponse and require a Bearer token.

Class definition

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

This client is primarily useful for automated testing against the EFL sandbox.

Methods

sendItn

Low-level wrapper over POST /lon/api/v1/Testing/SendITN.
It sends a flattened list of transactions to the EFL sandbox testing endpoint and returns the raw HTTP response describing how the ITN payload was processed.

public function sendItn(array $transactionListFlattened, string $bearerToken): HttpResponse

Parameters

NameTypeRequiredDescription
transactionListFlattenedarray<string, mixed>YesAssociative array with flattened transaction list payload.
bearerTokenstringYesBearer token for the sandbox testing endpoint.

The data is sent as a JSON body.

Return value

  • Type: HttpResponse – raw HTTP response; the body describes how the ITN payload was processed.