Skip to main content
Before offering a loan, you need to know whether a borrower meets your platform’s minimum credit requirements. BlackSwan provides trust tier, credit history, and current APR data so you can make that determination programmatically.

Prerequisites

Install the BlackSwan JavaScript SDK:

Client Setup

Simple Eligibility Check

The function below compares the borrower’s tier against your minimum required tier and ensures they have no defaults on record:

Advanced Risk Profile

For a richer picture, pull the full credit dashboard alongside the borrower’s current APR and history in a single parallel request:

Putting It Together

Here is a complete example that checks eligibility and, if approved, retrieves the full risk profile: