getClient

open suspend fun getClient(): ClientResponse


open suspend fun getClient(traceId: String?): ClientResponse

Fetches the client details from the API.

Return

A ClientResponse object containing the client information.

Parameters

traceId

Optional trace ID forwarded as the X-Portal-Trace-Id header. When null, a new UUID is generated for this request.

Throws

on a backend HTTP 400 response. Wrap the call in try/catch — this method does not return a Result<T> and the throw escapes uncaught.

If the API request fails or response parsing encounters an issue.