Skip to main content
POST
Upload a document

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.

Headers

Idempotency-Key
string
required

IETF Idempotency-Key semantics (draft-ietf-httpapi-idempotency-key-header). Send a fresh unique value (a UUID) with every new request. A retry with the same key and the same payload returns the original response with the header Idempotent-Replayed: true. The same key with a different payload is rejected with 422 and code idempotency_key_reused. Keys are kept for 24 hours.

Maximum string length: 255

Path Parameters

referral_id
string
required
Example:

"ref_01K5X3K7Q2"

Body

multipart/form-data
file
file
required
type
enum<string>
required

The kinds of documents O.J. can request or accept. cim is a confidential information memorandum, the summary document a business broker prepares for a sale. quality_of_earnings is an accountant's review of reported earnings, required by the SBA for acquisitions of $3M or more. funding_account_auth is the funding account verified through Plaid; voided_check is the fallback when the bank can't be verified.

Available options:
bank_statement,
processing_statement,
voided_check,
funding_account_auth,
tax_return,
profit_and_loss,
balance_sheet,
ar_aging,
ap_aging,
debt_schedule,
business_license,
government_id,
lease,
ownership_document,
cim,
purchase_agreement,
quality_of_earnings,
other
document_request_id
string

Optional. Ties the upload to an open request.

period
string

For statements — the month covered.

Pattern: ^[0-9]{4}-[0-9]{2}$

Response

Document received

A file attached to a referral. status starts at received, becomes processing while O.J. extracts the figures from it, and ends at extracted (or rejected if the file could not be read or was the wrong document). source records who supplied it.

id
string
required
Example:

"doc_01K5X3R2D7"

referral_id
string
required
type
enum<string>
required

The kinds of documents O.J. can request or accept. cim is a confidential information memorandum, the summary document a business broker prepares for a sale. quality_of_earnings is an accountant's review of reported earnings, required by the SBA for acquisitions of $3M or more. funding_account_auth is the funding account verified through Plaid; voided_check is the fallback when the bank can't be verified.

Available options:
bank_statement,
processing_statement,
voided_check,
funding_account_auth,
tax_return,
profit_and_loss,
balance_sheet,
ar_aging,
ap_aging,
debt_schedule,
business_license,
government_id,
lease,
ownership_document,
cim,
purchase_agreement,
quality_of_earnings,
other
filename
string
required
status
enum<string>
required
Available options:
received,
processing,
extracted,
rejected
created_at
string<date-time>
required
object
string
Allowed value: "document"
document_request_id
string
period
string
source
enum<string>
Available options:
partner_api,
partner_upload,
borrower_upload,
bank_connection,
email