2 min read
The two hosts
- Production —
https://api.credicorp.co.uk. Real product data, real enquiries, production rate limits. - Sandbox —
https://sandbox.credicorp.co.uk. A deterministic mirror with test data, looser limits and no side effects; safe to hammer in CI.
Both expose the identical /public/v1 route tree, so the only difference between environments is the host.
Drive it from one variable
# .env.development
CREDICORP_BASE=https://sandbox.credicorp.co.uk/public/v1
# .env.production
CREDICORP_BASE=https://api.credicorp.co.uk/public/v1Read CREDICORP_BASE everywhere and you will never accidentally submit a test enquiry to production, or fail a CI run against live rate limits.
Fail safe by default
When the variable is unset, default to the sandbox host, not production. A missing config should degrade to the harmless environment, so a misconfigured deploy cannot silently write to your live enquiry stream.
Frequently asked questions
Are the endpoints identical on both hosts?
Yes. The sandbox mirrors the public ring route-for-route so you can develop against it and promote to production by changing only the host.
Is sandbox data stable?
Sandbox returns deterministic fixtures, so the same request gives the same response — ideal for snapshot tests and CI assertions.
Do I need separate keys per environment?
The public ring needs no keys at all. The partner ring uses separate OAuth2 client credentials per environment; never reuse production credentials in the sandbox.
Related reading

Quickstart: your first Credicorp public API call with curl
The fastest way to see the Credicorp public API working is a single curl call to GET /public/v1/products. The…
Read →
Quickstart: set the right request headers for the public API
A handful of request headers make the difference between a clean integration and a flaky one. Always send…
Read →
Quickstart: call the Credicorp public API from Node.js
Node 18+ ships a global fetch, so you can call the Credicorp public API with zero dependencies. This…
Read →
Quickstart: verify connectivity with the healthz endpoint
Before you debug an integration, prove you can reach the API at all with GET /public/v1/healthz. It is a…
Read →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.