Document types
A provider’s own capture can also produce
RNM_FRONT, RNM_BACK, ID_DOCUMENT_FRONT and ID_DOCUMENT_BACK. You never upload these types (400), and they satisfy no requirement.
Accepted files
- Formats: PDF, PNG or JPEG. Rinne checks the bytes against the declared
content_type. - Size: up to 10 MB per file.
- One file per document: each side of an identity document is its own document, one image or one PDF. A side that spans several pages is refused by the provider.
Status
Replacing a document
A document is never edited in place. To correct one, upload a new document for the same subject and type: when it completes, the previous one becomesSUPERSEDED and the new one is used from then on. An affiliation already submitted keeps the document it sent.
Uploading the very same file again for the same subject and type creates nothing new: complete answers 201 with the document already stored, and the upload you opened becomes SUPERSEDED by it.
Only your own uploads replace one another. A selfie captured by a biometric verification, a shared document and the attachments of an evidence package stay as they are.
When a provider refuses a document
A refusal is recorded per provider, inrejections:
REJECTED until a new one arrives. Providers that have not refused it keep using it, and an approval by one of them makes it VALIDATED. See When the provider asks for more.
Where a document comes from
Shared documents
When a requirement is still pending and another organization already had a document of the same type validated for the same person or merchant, Rinne can satisfy the requirement with it. Your organization receives aSHARED document of its own: its own id, the type, the subject and the status, and nothing else. It arrives VALIDATED and becomes REJECTED if one of your organization’s providers refuses it. It has no file name, no size, no download_url, and nothing about the organization that uploaded it. The same holds the other way: an organization that receives one of your documents sees only its type, subject and status, never the file, who uploaded it or its refusals.
A shared document never replaces your own: an upload of the same type stays current beside it. To stop sharing your organization’s validated documents, ask Rinne support.
Read and download
GET /v1/onboarding-documents lists your documents, newest first, with the standard pagination. Filter by company_id or by subject_document_number. An upload that expired before complete is left out of the list.
GET /v1/onboarding-documents/{id} adds download_url and download_url_expires_at, a signed link to the file valid for one hour. It is null before the upload completes and on a SHARED document. A merchant using its own API key downloads only the documents presented for it.
Documents cannot be deleted through the API, since they are onboarding evidence. Send erasure requests to Rinne support.
Rinne’s own screening
Each document carriesscreening and screening_note, Rinne’s own check of a file before any provider reads it: PENDING, then PASSED or FAILED with a note saying why. A FAILED document satisfies no requirement and its requirement reads REJECTED. While Rinne does not screen documents, both fields are null.
Events
onboarding-document.status-changed fires on every status change after creation, with the document as payload.entity. It reaches the merchant the document was presented for and, when that merchant is not your organization itself, your organization too. See Statuses and events.
