Skip to main content
GET
Retrieve a referral

Authorizations

Authorization
string
header
required

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

referral_id
string
required
Example:

"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.

id
string
required
Example:

"ref_01K5X3K7Q2"

external_id
string
required
status
enum<string>
required

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.

Available options:
received,
prequalified,
needs_partner,
needs_borrower,
submitted,
offer,
funded,
declined,
closed
status_label
string
required

The current step's label ("Received", "Documents", "In review", "Offer", "Funded"), or "Declined" or "Closed" when the referral ended. Render as-is.

Example:

"In review"

progress
object
required

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.

intent
enum<string>
required

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.

Available options:
work_this_deal,
just_refer
business
object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
object
string
Allowed value: "referral"
status_reason
string

One plain sentence for the borrower about where things stand. When the referral ends, this is the only thing to show.

Example:

"Two lenders are reviewing your file. Most answer within two business days."

todos
object[]

Everything needed from outside O.J. right now, one row per item. Empty when nothing is needed.

next_action
object

The first item in todos, for integrations that show one button. Absent when nothing is needed.

requested_amount
integer

A dollar amount expressed in whole US cents, so $85,000.00 is 8500000. Cents avoid rounding errors that decimals cause in some languages.

matches
object[]

The lender programs the business matches, named.

offers_available
integer
credit
object

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.

outcome
object

Present when status is declined or closed.

funded
object

What the borrower needs after funding. The lender, not O.J., sends and collects the money.

payout
object

The partner's share on this referral. Money states never imply O.J. holds funds.

conversation
object

A summary of the referral's conversation. GET /referrals/{id}/conversation returns the messages.

hosted_url
string<uri>

The partner's own view of this referral on O.J. (magic-link). Not for the borrower.

metadata
object