Upload a document
Uploads a document you already hold, such as bank statements from your own ledger or a confidential
information memorandum from a data room. If the document has to come from the borrower, you do not need
this endpoint: the referral’s todos gives you a hosted upload page to show them instead.
Files can be up to 25 MB, in PDF, PNG, JPG or CSV. O.J. reads the document in the background, and matches update once the figures have been extracted.
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.
Headers
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.
255Path Parameters
"ref_01K5X3K7Q2"
Body
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.
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 Optional. Ties the upload to an open request.
For statements — the month covered.
^[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.
"doc_01K5X3R2D7"
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.
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 received, processing, extracted, rejected "document"partner_api, partner_upload, borrower_upload, bank_connection, email 
