Skip to content

Embedded B2B lending:
Invoice financing inside a supply chain platform

We added invoice financing to a supply chain SaaS platform, so suppliers get credit decisions and payouts inside their invoice workflow. Supplier retention rose 24%, and decisions come back in under 850ms.

Client: Stellar LegendIndustry: FinTech & Financial ServicesService: SaaS & Software

Higher supplier retention
24%
Credit decision time
<850ms
SOC 2-ready controls
100%

Overview

Project
at a glance

Industry
FinTechA global supply chain management platform handling $4B+ in invoices a year.
How we worked
Dedicated product teamA FinTech architect, 2 backend engineers and a DevSecOps specialist worked inside the core platform team.
Goal
New revenue and better retentionBuild B2B invoice financing (factoring) into the invoice workflow so the platform earns the financing fees.
What we built
Embedded lending API networkA shadow ledger, a credit API and automated payouts that let suppliers get paid early from the invoice screen.

Client

Who we
built it for

Stellar Legend

Global supply chain platform handling $4B+ in invoices a year

About the client
A global supply chain management platform handling $4B+ in invoices a year.
What they needed
Build B2B invoice financing (factoring) into the invoice workflow so the platform earns the financing fees.
Where they were
The client's supply chain SaaS gave suppliers a clear view of shipping and invoicing. For working capital, though, they still had to go to outside banks. That left suppliers with a 30-day funding gap and the platform with high churn.

Engagement snapshot

Industry
FinTech
Service
SaaS & Software
Engagement
Dedicated product team
Delivered
Embedded lending API network
Headline result
24% · Higher supplier retention

The challenge

What was getting
in the way

The client's supply chain SaaS gave suppliers a clear view of shipping and invoicing. For working capital, though, they still had to go to outside banks. That left suppliers with a 30-day funding gap and the platform with high churn.

Each time a supplier left to arrange finance, the platform lost usage and the data that showed how creditworthy that supplier was.

  • Users leaving the workflow

    Suppliers left the platform to arrange financing, which cut daily active use.

  • Lost transaction data

    With financing done elsewhere, the client missed key signals about supplier creditworthiness.

  • Integration complexity

    Traditional lending APIs were too slow for one-click funding inside the product.

The solution

What
we built

  1. 01

    Automatic ledger sync

    A reliable listener copies every invoice status from the SaaS platform into a finance-grade shadow ledger, so risk can be assessed live.

    Throughput
    10k tps
    Pattern
    Transactional outbox
    Reliability
    Exactly once
  2. 02

    Credit-as-code API

    A gRPC integration layer lets the core platform ask for the maximum fundable amount on any invoice and get an answer in under 20ms.

    Protocol
    gRPC Protobuf
    Auth
    Scoped mTLS
    Controls
    SOC 2-gated
  3. 03

    Automated payouts

    Webhooks to established banking rails trigger instant ACH or SEPA transfers the moment a supplier clicks Get Paid Now.

    Rails
    ISO 20022
    Response time
    Under a second
    Audit
    Secure, traceable logs

Key features

What made it
useful

  • CREDIT API

    Invoice-level credit and instant payouts

    A credit API sets the fundable amount per invoice, and early payments trigger instant ACH or SEPA payouts.

    Business impact

    Credit decisions under 850ms

  • FAST RESPONSE

    Pre-calculated risk buckets

    Risk scores are recalculated in the background, so suppliers see pre-approved offers instantly.

    Business impact

    <50ms UI response

  • SECURE BY DESIGN

    Vault-based data isolation

    Sensitive financial data is kept apart from the core SaaS database in a hardware-secured vault.

    Business impact

    Zero personal data leakage

  • LIVE UPDATES

    Reactive settlement engine

    Treasury needs are recalculated automatically as invoices are fulfilled around the world.

    Business impact

    18% higher capital efficiency

Before and after

How the work
changed

Funding journey

Before

External redirects

Suppliers had to sign up again with outside lenders, and 60% dropped out along the way.

After

Inside the workflow

One click on the invoice card requests funding, with no switching between tools.

Data quality

Before

Batch CSV uploads

Stale data led to inaccurate risk pricing and high default rates.

After

Streaming data

Live supply chain data feeds the risk engine, so rates adjust as conditions change.

Growth

Before

Slow monolith

Heavy third-party SDKs slowed down the core SaaS front end.

After

Separate cloud services

Lending runs in its own microservices, which scale without affecting the core platform.

Results

The business
difference

  1. STICKINESS

    24% Retention

    Supplier retention lift

    Instant access to capital gave suppliers a reason to stay on the platform, and gave the client new revenue from financing fees.

    Before: BaselineAfter: 24% Increase

  2. PERFORMANCE

    <850ms End-to-End

    Credit decision time (p99)

    Lending runs behind its own gRPC layer, so credit decisions never slow down the core SaaS application.

    Before: 2s+After: 850ms

Testimonial

What the client
says

“Suppliers on our platform now see pre-approved invoice financing offers, with credit decisions in under 850ms. Coretus connected it to a shadow ledger and instant payouts. Supplier retention is up 24% and capital efficiency 18%.”
Laura PowellVP of Embedded Finance, Stellar Legend

Key results

  • 24% higher supplier retention
  • Credit decisions under 850ms
  • 18% better capital efficiency

Trust and control

How we kept it
safe and reliable

  • 01

    Multi-tenant data privacy

    Row-level security and vault-based isolation keep each SaaS tenant's financial data separate.

    SOC 2-READY
  • 02

    Ledger audit trail

    Every credit decision is backed by an event log that shows the exact data at the moment of approval.

    VERIFIABLE DATA
  • 03

    Growth and reliability

    Stateless cloud microservices handle 10x spikes in invoice volume during holiday peaks.

    READY TO GROW
  • 04

    Code and IP ownership

    The client owns 100% of the embedded finance platform from project completion.

    100% OWNED

Faster delivery

Built on tested foundations

Starting from tested components saved about 10 weeks of setup work, which went into the credit logic and the one-click payout flow.

  • Auth platform module

    Our tested auth module handled scoped mTLS between the SaaS platform and the lending services.

  • Ledger consistency module

    A reusable consistency module gave the shadow ledger exactly-once updates through the transactional outbox pattern.

  • API gateway platform

    An existing API gateway exposed the credit API to the core platform with scoped access.

  • Treasury monitoring

    Ready-made treasury monitoring tracked the capital needed to fund supplier payouts.

FAQ

Straight
answers

Have a different question? Ask it on a 30-minute call.

Book a call

We mirrored every invoice into a finance-grade shadow ledger, built a gRPC credit API that returns the maximum fundable amount in under 20ms, and connected payouts to ACH and SEPA rails. Suppliers click Get Paid Now on the invoice card, and the transfer starts straight away.

Offer financing inside your SaaS product

If your users leave your platform to find working capital, we can help you build lending into the workflow they already use.