Skip to main content
An onboarding document is a file about a subject: a person’s CPF, the merchant’s CNPJ, or the CPF of a merchant that is a natural person. It belongs to your organization, it is not tied to any provider or affiliation, and it is reused wherever the same subject and type are required, across every merchant of your organization and every later attempt. How to upload one, step by step: Build with the API. The onboarding link uploads through the same calls.

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 becomes SUPERSEDED 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 document a provider’s capture produced, such as the selfie of 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, in rejections:
Your organization never sends a refused document to that provider again, for any of its merchants, and the requirement it satisfied reads REJECTED until a new one arrives. A refusal of one side of a CNH, RG or RNE also refuses the other side sent with it, so the identity document needs both sides again. 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 a SHARED document of its own: its own id, the type, the subject, the status and Rinne’s screening of the file (screening, with screening_note on a FAILED), 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, status and Rinne’s screening, 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 carries screening and screening_note, Rinne’s own check of a file: PENDING until Rinne looks at the file, then PASSED or FAILED. screening_note says why on a FAILED and is null otherwise. The screening is informative and blocks nothing. A FAILED document still satisfies its requirement and still goes to the provider. Use the verdict to decide whether to upload a replacement as Replacing a document describes: your own earlier upload becomes SUPERSEDED, while a document a provider’s capture produced or a shared document stays listed beside the new one, with its verdict. A verdict changes no status, so it fires no event: read the document to see it. Both fields are null on a document Rinne does not screen: a SELFIE, the RNM_* and ID_DOCUMENT_* types a provider’s capture produces, and a file attached to an EVIDENCE_PACKAGE.

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.