Quickstart

Quickstart: Credicorp public API for a B2B marketplace

You run a B2B marketplace and want to offer financing to buyers or sellers at the point of need. This quickstart shows the exact endpoints and code, uses the unauthenticated public ring, and always ends with a clean handoff to the real application — Credicorp lends to UK limited companies with no personal guarantee.

2 min read

point of needAt basket or invoice
amount-awareQuote the order value
seller or buyerEither side

Finance at the point of need

At basket or invoice stage, quote the order value with the quote endpoint and show 'spread this cost' with a real monthly figure.

Hand the buyer off

Submit an enquiry with the order context and redirect to the handoff_url. Credicorp lends to the buyer's limited company, keeping your marketplace out of the credit relationship.

async function financeOrder(order) {
  const res = await fetch(`${BASE}/enquiries`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json', 'Idempotency-Key': order.id },
    body: JSON.stringify({
      company: { name: order.buyer.companyName, number: order.buyer.companyNumber },
      contact: { email: order.buyer.email },
      amount: order.total,
      purpose: 'stock_purchase',
    }),
  });
  const { handoff_url } = await res.json();
  window.location.href = handoff_url;
}

Place it at the right moment

Timing decides conversion. Surface the option where the buyer feels the cost — at basket review, on the invoice, or on an order-confirmation screen for a repeat purchase — not on a generic footer. Pre-fill the amount from the order total so the quote is instantly relevant, and pass the marketplace order id as the idempotency key so a retried checkout never creates a duplicate enquiry.

Stay out of the credit chain

Your marketplace introduces the buyer; Credicorp underwrites and lends to the buyer's limited company directly. That keeps you clear of the regulated credit relationship while still adding a genuinely useful funding option. For revenue share and settlement callbacks, onboard to the partner ring.

Frequently asked questions

Who holds the credit relationship?

Credicorp lends directly to the borrowing company. Your marketplace is the introducer, not the lender.

Can I finance sellers too?

Yes — a seller needing working capital is a standard use case. Quote and hand off exactly the same way.

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.