2 min read
Call the endpoint
The quote lives at GET /public/v1/quote/onetime. It takes amount, term and frequency:
const q = await fetch(
`https://hub.credicorp.co.uk/public/v1/quote/onetime?amount=${amount}&term=${term}&frequency=${freq}`
).then(r => r.json());Because the ring is unauthenticated and CORS-friendly for reads, you can call it straight from the browser.
Clamp before you call
Constrain your slider or inputs to the engine's range up front — £50–£500 and 14–84 days — so a user cannot request a figure the engine will reject. If a value still slips through, the endpoint returns a 422 with the bound in the detail; show a friendly message rather than the raw error.
Respect the rate limit
Debounce the widget so dragging a slider does not fire a request per pixel — you share the 60 req/60s per-IP window with everyone behind the same IP. Fire on release, or throttle to a few calls a second. Then hand a qualified user to apply.
Frequently asked questions
Can I call the quote endpoint from the browser?
Yes. The public read endpoints are unauthenticated and CORS-friendly, so a browser widget can call the quote endpoint directly with no server proxy.
How do I avoid throttling on a slider?
Debounce or throttle — fire the request on slider release or cap it to a few calls per second. A request per pixel will exhaust the 60 req/60s window quickly, especially for users sharing an IP.
Related reading
Funding for UK limited companies
Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.

