Onboarding API
Last updated: 2026-10-13
The Onboarding API is used by partners to register customers for account opening, as individuals (PF) or companies (PJ). After the account is active, the same group of APIs also handles the registration update when the registration-update deadline has expired.
This API group uses the own-form flow: the partner collects the data with their own form — Adopay does not host the data-collection page. The partner only needs to open Adopay's liveness link (livenessUrl) to complete the verification; the data and the document files are submitted by the partner through the API.
1. Key Concepts
| Concept | Description |
|---|---|
| PF / PJ | Onboarding type: PF (Pessoa Física) for individuals, using a CPF; PJ (Pessoa Jurídica) for companies, using a CNPJ. |
| CPF / CNPJ | The Brazilian individual taxpayer number (11 digits) and the legal-entity registry number (14 digits). The API accepts formatted values (e.g. 123.456.789-09); dots, slashes, and hyphens are stripped and check digits are validated before processing. |
| Onboarding requisition | One onboarding journey, identified by onboardingId. |
onboardingId | The requisition ID returned at creation, only once when the requisition is first created successfully. Onboarding-phase queries, submissions, and retries all use this ID. |
state | The stage the requisition is currently in; returned by create, query, and the other endpoints. state is read-only for the partner: it is updated by the server based on business outcomes, and the partner cannot modify it directly — the flow advances only through action endpoints such as Submit Onboarding Form. This one field is all you need to drive the flow: every value maps to exactly one next action for the partner — for example, AWAITING_ means open livenessUrl and complete the liveness verification, AWAITING_FORM means submit the form, and PROCESSING means wait for the review. See Onboarding State Machine for all values. |
| Liveness verification | Confirms by selfie that the operator is a real person; completed on the liveness link livenessUrl. The link has a validity period — once it expires, a new one is obtained through a retry. |
| Legal representative | For a company (PJ), the person behind the CPF sent as representative; that person must complete the liveness verification in person. |
| Partners | The shareholders/related persons declared when onboarding a company. |
| Registration update | The data update performed after the account is active, once the registration-update deadline has expired; completed on an Adopay-hosted page. Called with the common signature authentication; see status for the state and blocked for whether payouts are blocked. |
2. Requisition ID
- Origin: returned by Create Onboarding Requisition; the unique identifier of this onboarding journey.
- Onboarding phase only: status queries, form submission, and liveness retry all use the same
onboardingId. The registration update does not use this ID — the account is identified by the common signature authentication. - Use it as-is: store and send back the ID as an opaque string; do not parse its contents.
- Keep it safe: the onboarding endpoints use no signed authentication — holding the ID is enough to query and submit the requisition. Store it on your server and do not expose it to others; see Authentication & Repeated Calls.
3. Integration Sequence
The lifecycle has two phases: first onboarding (the requisition identified by onboardingId); after the account is active, a registration update once the registration-update deadline has expired (the account identified by the common signature authentication). This API group has no webhook notifications; states are obtained through the query endpoints.
3.1 Phase 1: Onboarding
%%{init: {"sequence": {"boxMargin": 30, "noteMargin": 16}}}%%
sequenceDiagram
participant P as Partner
participant A as Adopay
P->>A: 1. Create onboarding requisition<br/>POST /v3/onboarding/form
A-->>P: state = AWAITING_LIVENESS<br/>returns onboardingId, livenessUrl
P->>A: 2. Open livenessUrl and complete the liveness verification
A-->>P: Redirect back to returnUrl (if provided at creation)
loop Every 3-5 seconds until state is no longer AWAITING_LIVENESS
P->>A: 3. Get onboarding requisition status<br/>GET /v3/onboarding/{onboardingId}
A-->>P: state
end
opt state = LIVENESS_FAILED (liveness not passed, attempts remain) or LIVENESS_EXPIRED (link expired)
P->>A: 4. Retry liveness verification<br/>POST /v3/onboarding/{onboardingId}/liveness/retry
A-->>P: state = AWAITING_LIVENESS, livenessUrl (a new link when it had expired)
P->>A: 5. Open livenessUrl and complete the liveness verification again
Note over P,A: Keep polling until state = AWAITING_FORM
end
P->>A: 6. Submit onboarding form (data + all files)<br/>POST /v3/onboarding/{onboardingId}/submit
A-->>P: state = PROCESSING
Note over P,A: Each requisition can be successfully submitted only once
loop Every 10-30 seconds until state is APPROVED or REJECTED
P->>A: 7. Get onboarding requisition status<br/>GET /v3/onboarding/{onboardingId}
A-->>P: state
end3.2 Phase 2: Registration Update
%%{init: {"sequence": {"boxMargin": 30, "noteMargin": 16}}}%%
sequenceDiagram
participant P as Partner
participant A as Adopay
loop Poll periodically (e.g. once a day) until canStart = true
P->>A: 1. Get registration update status<br/>GET /v3/onboarding/registration-update/status
A-->>P: status, deadline, blocked, canStart
end
Note over P,A: status = ACTION_REQUIRED and blocked = true: deadline expired, payouts blocked
P->>A: 2. Start registration update<br/>POST /v3/onboarding/registration-update<br/>body: email
A-->>P: onboardingId, onboardingLink, status = PENDING
P->>A: 3. Open onboardingLink and update the data on the hosted page
loop Every 10-30 seconds until status is NOT_REQUIRED or ACTION_REQUIRED
P->>A: 4. Get registration update status<br/>GET /v3/onboarding/registration-update/status
A-->>P: status (IN_PROGRESS then IN_REVIEW)
end
alt status = NOT_REQUIRED
Note over P,A: Update approved, blocked = false, payouts resumed
else status = ACTION_REQUIRED, with rejectionReason
Note over P,A: Update rejected: fix the issues and start the registration update again
end4. Onboarding State Machine
Nodes are states; the labels on the arrows are the actions that trigger each transition. The flow is split into two stages: liveness verification, and form plus review.
Liveness verification stage
%%{init: {"flowchart": {"nodeSpacing": 110, "rankSpacing": 80}}}%%
flowchart TB
S(["Start"]) -->|"Partner: create onboarding requisition"| AL["AWAITING_LIVENESS<br/>waiting for liveness"]
AL -->|"Partner: not passed<br/>attempts remain"| LF["LIVENESS_FAILED<br/>liveness not passed"]
AL -->|"System: past expiresAt<br/>link expired"| LE["LIVENESS_EXPIRED<br/>link expired"]
LF --->|"Partner: retry liveness verification"| AL
LE --->|"Partner: retry liveness verification<br/>get a new livenessUrl"| AL
AL -->|"Partner: liveness passed"| AF(["AWAITING_FORM<br/>enter the form and review stage"])
AL -->|"Partner: last attempt failed"| RJ(["REJECTED<br/>rejected"])
classDef doing fill:#eef4ff,stroke:#4a7bd0,color:#1f2d3d
classDef ok fill:#e8f7ee,stroke:#2f9e5b,color:#1f2d3d
classDef bad fill:#fdecec,stroke:#d04a4a,color:#1f2d3d
classDef gone fill:#f2f2f2,stroke:#999999,color:#1f2d3d
class AL,LF,LE,AF doing
class RJ badForm and review stage
%%{init: {"flowchart": {"nodeSpacing": 60, "rankSpacing": 70}}}%%
flowchart TB
AF["AWAITING_FORM<br/>waiting for form submission"] -->|"Partner: submit onboarding form"| PR["PROCESSING<br/>automatic verification"]
AF -->|"System: past expiresAt"| EX(["EXPIRED<br/>expired"])
PR -->|"Back office: automatic checks passed"| IR["IN_REVIEW<br/>waiting for manual review"]
IR -->|"Manual review: approved"| AP(["APPROVED<br/>approved"])
IR -->|"Manual review: rejected"| RJ(["REJECTED<br/>rejected"])
classDef doing fill:#eef4ff,stroke:#4a7bd0,color:#1f2d3d
classDef ok fill:#e8f7ee,stroke:#2f9e5b,color:#1f2d3d
classDef bad fill:#fdecec,stroke:#d04a4a,color:#1f2d3d
classDef gone fill:#f2f2f2,stroke:#999999,color:#1f2d3d
class AF,PR,IR doing
class AP ok
class RJ bad
class EX gone4.1 State Reference
state | Type | Meaning | What you should do |
|---|---|---|---|
AWAITING_ | In progress | Waiting for the liveness verification to be completed | Open livenessUrl and complete the liveness verification |
LIVENESS_FAILED | In progress | Liveness not passed, attempts remain | Call the retry endpoint, then open livenessUrl and complete the verification |
LIVENESS_ | In progress | The liveness link has expired | Call the retry endpoint to get a new livenessUrl, then complete the verification |
AWAITING_FORM | In progress | Waiting for the form submission | Submit the form; each requisition can be successfully submitted only once |
PROCESSING | In progress | Submitted, automatic verification running in the back office | Wait |
IN_REVIEW | In progress | Automatic checks passed, waiting for manual review | Wait |
APPROVED | Terminal | Approved | Onboarding finished; the later registration update uses the common signature authentication |
REJECTED | Terminal | Rejected | Handle per reason.; a new requisition may be created |
EXPIRED | Terminal | The form was not submitted before expiresAt | A new requisition may be created |
Rules:
- Drive the flow with
statealone: find the current value in the table above and perform the listed action.reason, remaining attempts, and other fields are supplementary — do not use them to drive the flow. - Terminal states never change. Once terminal, a new requisition can be created for the same document and receives a new
onboardingId. - Each document can have only one in-progress requisition at a time. If the creation parameters were wrong, wait for the requisition to reach a terminal state and create again.
4.2 Reason Codes
reason has a value only when state is REJECTED; it is null otherwise. The final enum values are pending confirmation by risk & compliance.
code | Meaning | Can a new requisition be created? |
|---|---|---|
LIVENESS_ | Liveness attempts used up | Yes, after a cooldown period (duration TBD) |
DOCUMENT_ | The document image cannot be read | Yes |
DATA_MISMATCH | The declared data does not match the official registry | Yes |
IDENTITY_ | The face, document, and declared person do not match | Yes |
COMPLIANCE_ | Declined by compliance; no specific reason is disclosed | TBD |
5. Registration Update State Machine
After onboarding is approved, the account may be given a registration-update deadline. The registration update state is expressed by status, and whether payouts are blocked by blocked:
flowchart TB
S((Onboarding approved)) --> NR["NOT_REQUIRED<br/>no update needed"]
NR -->|"System: registration-update deadline set"| AR["ACTION_REQUIRED<br/>update needed"]
AR -->|"Partner: start registration update<br/>(canStart = true)"| IP["IN_PROGRESS<br/>hosted page in progress"]
IP -->|"Partner: data submitted<br/>on the hosted page"| IV["IN_REVIEW<br/>waiting for the final decision"]
IV -->|"Review: approved"| NR
IV --->|"Review: rejected"| AR
classDef idle fill:#e8f7ee,stroke:#2f9e5b,color:#1f2d3d
classDef todo fill:#fdecec,stroke:#d04a4a,color:#1f2d3d
classDef doing fill:#eef4ff,stroke:#4a7bd0,color:#1f2d3d
class NR idle
class AR todo
class IP,IV doingstatus | Meaning | What you should do |
|---|---|---|
NOT_REQUIRED | No update needed: no deadline, or the previous update was approved | None |
ACTION_REQUIRED | Update needed: not started yet, or the previous update was rejected (rejectionReason explains why) | Start the update when canStart is true; remind early based on deadline before it passes |
IN_PROGRESS | Started, the hosted page is still in progress | Open onboardingLink and complete the update |
IN_REVIEW | Automatic verification finished, waiting for the final decision | Wait |
Payout blocking: look at blocked only. It is true once the registration-update deadline (deadline) has passed — the account's payouts are blocked, regardless of status; after an update is approved, status returns to NOT_REQUIRED, the deadline is cleared, blocked becomes false, and payouts resume.
Rules:
- The update can be started only when
canStartistrue(ACTION_REQUIREDandblockedistrue); while the deadline has not passed, it cannot be started early even if the status isACTION_REQUIRED. - An update can be started only after the deadline has passed, so payouts stay blocked during
IN_PROGRESSandIN_REVIEW. - The registration update has no notifications; obtain it through Get Registration Update Status: poll periodically (e.g. once a day), remind early based on
deadlineanddaysRemaining, and poll every 10–30 seconds for progress after starting an update. - After approval the status returns to
NOT_REQUIRED; after a rejection it returns toACTION_REQUIREDwithrejectionReasonexplaining why, and the update can be started again.
6. Authentication & Repeated Calls
Authentication: during onboarding, no public key has been uploaded to the platform yet, so the four endpoints — create, query, submit, and liveness retry — require no authentication headers; the requisition is identified by onboardingId, and responses use the unified status/msg/data structure. The two registration-update endpoints use the common signature authentication (see Common Authentication).
Ownership: during onboarding, holding the onboardingId grants access to that requisition; a non-existent ID returns REQUISITION_. The registration update can only access the account behind the authenticated credentials.
Repeated calls: no additional idempotency key is needed; on timeout, simply retry the same request.
| Endpoint | Result of a repeated call |
|---|---|
| Create onboarding requisition | When an in-progress requisition for the document already exists under this partner, the existing requisition is returned (same onboardingId) instead of creating a new one; the existing requisition's parameters prevail |
| Submit onboarding form | Each requisition can be successfully submitted only once; calling again returns FORM_, meaning the data was already accepted — query the requisition status |
| Retry liveness verification | When already AWAITING_, the current requisition is returned unchanged |
| Start registration update | When an update without a final decision yet already exists, that update is returned instead of creating a new one |
Time format: all time fields are ISO 8601 UTC, to the second (YYYY-MM-DDTHH:MM:SSZ).
7. Liveness Verification
- Link validity:
livenessUrlis valid untilexpiresAtand can be opened multiple times within the period. When it expires with the liveness still not completed,statebecomesLIVENESS_; call Retry Liveness Verification to get a newEXPIRED livenessUrl— the old link becomes invalid immediately. - Retry after failure: when the verification is not passed and attempts remain,
statebecomesLIVENESS_FAILED, and opening the link only shows "not passed". After the partner calls Retry Liveness Verification, start the next attempt with thelivenessUrlfrom the response (unchanged while the link has not expired). Before retrying, adjust the shooting conditions first (e.g. remove glasses, move to a well-lit place). - Counted per actual verification: an attempt is counted only when the verification is actually completed; calling the retry endpoint and link expiry do not consume attempts. The default maximum is 3; once the attempts are used up, the requisition moves to
REJECTED(LIVENESS_).ATTEMPTS_ EXHAUSTED - Results sync automatically: the back office guarantees delivery of the result (vendor callback + query on page completion + scheduled compensation); the partner does not need to refresh anything.
- Return to the partner page: pass
returnUrlat creation; after the liveness is completed the page redirects there, the result is already final, and a single query is enough. - Company onboarding: must be completed in person by the legal representative behind
representative.Document
8. Endpoints
| Endpoint | Description |
|---|---|
| Create Onboarding Requisition | Creates the requisition; returns onboardingId and the liveness link. |
| Get Onboarding Requisition Status | Queries state, liveness attempts left, official company data, etc. |
| Submit Onboarding Form | Submits the data collected by your own form and all document files in one call; each requisition can be successfully submitted only once. |
| Retry Liveness Verification | Opens the next attempt after a liveness failure; the link stays the same. |
| Get Registration Update Status | Queries whether an update is needed, whether payouts are blocked (blocked), whether it can be started (canStart), and the update progress. |
| Start Registration Update | Starts the update once the deadline has passed; returns the hosted-page link. |
9. Best Practices
Polling
- This API group has no webhook notifications; obtain the latest
statethrough Get Onboarding Requisition Status. - While the liveness verification is in progress, poll every 3–5 seconds; if
returnUrlwas provided at creation, one query after the redirect back is enough. - After the form is submitted, poll every 10–30 seconds, gradually lengthening the interval and capping it; use
updatedAtto detect changes. - Stop polling once
statereaches a terminal state (APPROVED,REJECTED,EXPIRED).
Requisition ID
- Save
onboardingIdimmediately after creation; store it as a case-sensitive 22-character string. - The ID is returned only when the requisition is first created successfully. If the create request times out and you call again,
ACTIVE_is returned instead of the ID, and you must wait for the original requisition to reach a terminal state before creating again — therefore set a sufficiently long timeout on the create request.REQUISITION_ EXISTS
Liveness verification
livenessUrlhas a validity period (expiresAt); whenstateisLIVENESS_, call the retry endpoint to get a new link.EXPIRED - When
stateisLIVENESS_FAILED, adjust the shooting conditions before calling the retry endpoint.
Files
- Files are base64-encoded (without the
data:prefix) inside thedocumentsarray and submitted in one call with Submit Onboarding Form. Each file must not exceed 8 MB and one submission must not exceed 25 MB in total (both measured after base64 decoding); compress or downscale images before submitting. - Each requisition can be successfully submitted only once; after submission the data cannot be changed even if mistakes are found — confirm the data and files are complete and correct before submitting.
Registration update
- Poll Get Registration Update Status periodically (e.g. once a day) and schedule updates ahead of
deadline; payouts are blocked as soon as the deadline passes (blockedistrue). - While the update is running on the hosted page (
IN_PROGRESS,IN_REVIEW), poll every 10–30 seconds untilstatusreturns toNOT_REQUIREDorACTION_REQUIRED. - When
statusisACTION_REQUIREDandrejectionReasonhas a value, the previous update was rejected; fix per the reason and start again.
10. Error Codes
Onboarding business errors use the unified integer status (a dedicated range; values pending allocation). Branch on the error code; msg is for display only. Signing errors and field-format errors reuse 1003 and 1004 from Response Status; field errors carry the field path in msg, e.g. partners[1].cpf.
| Error code | Scenario | Handling |
|---|---|---|
REQUISITION_ | The onboardingId does not exist or is not yours | Check the ID |
INVALID_STATE | The current state does not allow this operation | Query the requisition and handle per state |
FORM_ | The form has already been submitted for this requisition; each requisition can be successfully submitted only once | Treat it as the data having been accepted; query the requisition status to track the review |
ACTIVE_ | The document already has an in-progress onboarding requisition (the ID is not returned) | Continue with the ID saved at the first creation; if it was not saved, wait for the original requisition to reach a terminal state and create again |
DOCUMENT_ | The document is under internal review, or already has an account opened through another channel | Contact Adopay support |
USE_ | The document has already been approved for an account through the onboarding API (the ID is not returned) | Switch to the registration update (using the account holder's Bearer token) |
WHITELABEL_ | The white-label brand does not exist | Check whitelabelSigla |
ONBOARDING_ | No available flow is configured for this onboarding type or for the registration update | Contact your account manager |
MISSING_ | A required file is missing at submission | Complete the files and submit again |
OWNERSHIP_ | The ownership percentages do not add up to 100 | Fix and submit again |
REPRESENTATIVE_ | The legal representative CPF differs from the one at creation | Fix and submit again |
FILE_TOO_LARGE | A single file or the total of one submission exceeds the limit | Compress and submit again |
FILE_INVALID | A file is empty, of an unsupported type, or cannot be parsed | Check and submit again |