Quickstart

Quickstart: Format amounts as GBP for UK readers

Amounts come back as plain numbers in GBP; format them with the platform's own number formatter, not string concatenation. This recipe shows the exact code, uses only the unauthenticated public ring, and links out to the endpoints and the application flow so the reader always has a next step.

2 min read

GBPCurrency is pounds
IntlUse the built-in formatter
en-GBUK locale

Format in JavaScript

const gbp = new Intl.NumberFormat('en-GB', {
  style: 'currency', currency: 'GBP', maximumFractionDigits: 0,
});
gbp.format(product.max_amount);  // "\u00a3150,000"

Format in PHP and Python

$fmt = new NumberFormatter('en_GB', NumberFormatter::CURRENCY);
echo $fmt->formatCurrency($product['max_amount'], 'GBP'); // \u00a3150,000
import babel.numbers
babel.numbers.format_currency(product['max_amount'], 'GBP', locale='en_GB')

Amounts vs repayments

Product min_amount/max_amount are whole pounds, so display them with no decimal places. A quote repayment can carry pence, so format those with two decimal places. Mixing the two — showing a repayment as a round number — quietly misstates the cost, so pick the right precision per field.

Never build currency strings by hand

Prepending a \u00a3 and inserting commas with your own code breaks the moment an amount crosses a thousands boundary or you support another locale. The platform formatters above handle grouping, the currency symbol and rounding correctly, and they are the same across your whole app — so a figure looks identical wherever it appears. Keep one formatter instance and reuse it rather than constructing a new one per value.

Frequently asked questions

What currency are amounts in?

Pounds sterling (GBP). Credicorp lends to UK limited companies, so all public figures are in GBP.

Should I round?

Product amounts are whole pounds; display with no decimal places. Quote repayments may include pence, so format those with two decimals.

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.