Retrieve a referral
Returns one referral: its progress, what is needed from the borrower (todos), the lenders it matches,
offers, the credit check, and the payout. Everything O.J. Embed shows comes from this object, so a partner
building its own UI renders the same fields. This is the object to poll if you are not using webhooks.
Authorizations
One client per partner per environment. Access tokens expire after 15 minutes. Scopes are granted per client. Sandbox clients use https://sandbox.api.meet-oj.com/oauth/token.
Path Parameters
"ref_01K5X3K7Q2"
Response
The referral
One business you have sent to O.J., and everything the borrower and your team need to see about it.
O.J. Embed renders only what this object returns, in the same words. If you build your own UI, render the
same fields: progress as a five-step track, todos as a checklist with one button each, matches as the
lenders the business matches, and status_reason as the sentence under it all. payout is for your team
and never appears on a borrower screen.
hosted_url is a link to O.J.'s own page for this referral, for a person at your company.
"ref_01K5X3K7Q2"
Where the referral is, for logic. Use progress and status_label for anything a person reads.
The normal path is received, then prequalified once the business has matches, then submitted when
the file has gone to lenders, then offer when a lender has made one, then funded. A referral pauses in
needs_borrower when the borrower has a to-do, or needs_partner when someone at your company does.
Two statuses are final. declined means a lender reviewed the file and did not approve it; the lender, not
O.J., sends the borrower its notice. closed means the referral ended without a lender decision, for
example because no lender matched, the borrower withdrew, or the business funded elsewhere.
received, prequalified, needs_partner, needs_borrower, submitted, offer, funded, declined, closed The current step's label ("Received", "Documents", "In review", "Offer", "Funded"), or "Declined" or "Closed" when the referral ended. Render as-is.
"In review"
The five steps the borrower sees, in the same words everywhere: Received, Documents, In review, Offer,
Funded. Render the steps as a track. When the referral ends without funding, ended is true and the track
is replaced by status_reason, one plain sentence.
Who the borrower hears from. O.J. does the work either way. With just_refer, O.J. contacts the borrower
directly, introducing itself as working with you, and sends the borrower the link for each to-do. With
work_this_deal, O.J. never contacts the borrower; each to-do arrives in the referral's todos with a link
you place in your own product, so the borrower acts inside your flow.
work_this_deal, just_refer "referral"One plain sentence for the borrower about where things stand. When the referral ends, this is the only thing to show.
"Two lenders are reviewing your file. Most answer within two business days."
Everything needed from outside O.J. right now, one row per item. Empty when nothing is needed.
The first item in todos, for integrations that show one button. Absent when nothing is needed.
A dollar amount expressed in whole US cents, so $85,000.00 is 8500000. Cents avoid rounding errors that decimals cause in some languages.
The lender programs the business matches, named.
O.J. runs a soft credit pull on the primary owner to match on credit score. It does not affect the owner's
score. The owner authorizes it and enters their SSN on O.J.'s screen (Embed or a hosted page); neither
passes through your servers. Until it is authorized, the referral carries an authorize_credit action.
O.J. never shares the score, or anything derived from it, with partners. Lenders run their own credit check if
the borrower accepts an offer.
Present when status is declined or closed.
What the borrower needs after funding. The lender, not O.J., sends and collects the money.
The partner's share on this referral. Money states never imply O.J. holds funds.
A summary of the referral's conversation. GET /referrals/{id}/conversation returns the messages.
The partner's own view of this referral on O.J. (magic-link). Not for the borrower.

