Amazon Product API in Kotlin: java.net.http, Data Classes and Retries
Call an Amazon product API from Kotlin with the JDK's own java.net.http client: a 120-second timeout, the key in the X-Api-Key header, data classes for product lookup, offers and statistics, a separate type for the statistics price in cents so it never mixes with a decimal one, and retries that respect what the API already billed.