Quickstart

Quickstart: fetch a single Credicorp product by id

GET /public/v1/products/{id} returns the full detail for one product. Use it to power a product page after the reader picks an item from the list — it carries the same headline fields plus any per-product term options and eligibility notes.

2 min read

GET/public/v1/products/{id}
404Unknown id → not_found
idStable string key

Fetch one product

curl -s https://api.credicorp.co.uk/public/v1/products/flex-business \
  -H 'Accept: application/json'

The id is the stable string from the list response (for example flex-business). Passing an unknown id returns a 404 with code: not_found.

Handle the not-found case

r = requests.get(f'{BASE}/products/{pid}', timeout=10)
if r.status_code == 404:
    return render_unknown_product(pid)
r.raise_for_status()
product = r.json()

Cache per product

Product detail is as cacheable as the list. Cache by id and honour the response Cache-Control; invalidate when your list-level cache refreshes.

Frequently asked questions

Where do product ids come from?

From the id field of each item in GET /public/v1/products. Treat them as opaque stable strings; do not construct them yourself.

What if the id doesn't exist?

You get a 404 with code: not_found in the standard error envelope. Render a friendly fallback rather than surfacing the raw error.

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.