I created a separate service generator class as shown is this guide https://futurestud.io/tutorials/retrofit-2-manage-request-headers-in-okhttp-interceptor
ApiServiceGen
You need to use the http client created when building the retrofit instance.
Retrofit.Builder() .baseUrl(BASE_URL) .client(httpClient) // This is the line .addConverterFactory(GsonConverterFactory.create());