Skip to content

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 ​

ConceptDescription
PF / PJOnboarding type: PF (Pessoa Física) for individuals, using a CPF; PJ (Pessoa Jurídica) for companies, using a CNPJ.
CPF / CNPJThe 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 requisitionOne onboarding journey, identified by onboardingId.
onboardingIdThe requisition ID returned at creation, only once when the requisition is first created successfully. Onboarding-phase queries, submissions, and retries all use this ID.
stateThe 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_LIVENESS 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 verificationConfirms 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 representativeFor a company (PJ), the person behind the CPF sent as representativeDocument; that person must complete the liveness verification in person.
PartnersThe shareholders/related persons declared when onboarding a company.
Registration updateThe 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 ​

mermaid
%%{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
    end

3.2 Phase 2: Registration Update ​

mermaid
%%{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
    end

4. 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

mermaid
%%{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 bad

Form and review stage

mermaid
%%{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 gone

4.1 State Reference ​

stateTypeMeaningWhat you should do
AWAITING_LIVENESSIn progressWaiting for the liveness verification to be completedOpen livenessUrl and complete the liveness verification
LIVENESS_FAILEDIn progressLiveness not passed, attempts remainCall the retry endpoint, then open livenessUrl and complete the verification
LIVENESS_EXPIREDIn progressThe liveness link has expiredCall the retry endpoint to get a new livenessUrl, then complete the verification
AWAITING_FORMIn progressWaiting for the form submissionSubmit the form; each requisition can be successfully submitted only once
PROCESSINGIn progressSubmitted, automatic verification running in the back officeWait
IN_REVIEWIn progressAutomatic checks passed, waiting for manual reviewWait
APPROVEDTerminalApprovedOnboarding finished; the later registration update uses the common signature authentication
REJECTEDTerminalRejectedHandle per reason.code; a new requisition may be created
EXPIREDTerminalThe form was not submitted before expiresAtA new requisition may be created

Rules:

  • Drive the flow with state alone: 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.

codeMeaningCan a new requisition be created?
LIVENESS_ATTEMPTS_EXHAUSTEDLiveness attempts used upYes, after a cooldown period (duration TBD)
DOCUMENT_UNREADABLEThe document image cannot be readYes
DATA_MISMATCHThe declared data does not match the official registryYes
IDENTITY_MISMATCHThe face, document, and declared person do not matchYes
COMPLIANCE_DECLINEDDeclined by compliance; no specific reason is disclosedTBD

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:

mermaid
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 doing
statusMeaningWhat you should do
NOT_REQUIREDNo update needed: no deadline, or the previous update was approvedNone
ACTION_REQUIREDUpdate 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_PROGRESSStarted, the hosted page is still in progressOpen onboardingLink and complete the update
IN_REVIEWAutomatic verification finished, waiting for the final decisionWait

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 canStart is true (ACTION_REQUIRED and blocked is true); while the deadline has not passed, it cannot be started early even if the status is ACTION_REQUIRED.
  • An update can be started only after the deadline has passed, so payouts stay blocked during IN_PROGRESS and IN_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 deadline and daysRemaining, 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 to ACTION_REQUIRED with rejectionReason explaining 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_NOT_FOUND. 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.

EndpointResult of a repeated call
Create onboarding requisitionWhen 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 formEach requisition can be successfully submitted only once; calling again returns FORM_ALREADY_SUBMITTED, meaning the data was already accepted — query the requisition status
Retry liveness verificationWhen already AWAITING_LIVENESS, the current requisition is returned unchanged
Start registration updateWhen 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: livenessUrl is valid until expiresAt and can be opened multiple times within the period. When it expires with the liveness still not completed, state becomes LIVENESS_EXPIRED; call Retry Liveness Verification to get a new livenessUrl — the old link becomes invalid immediately.
  • Retry after failure: when the verification is not passed and attempts remain, state becomes LIVENESS_FAILED, and opening the link only shows "not passed". After the partner calls Retry Liveness Verification, start the next attempt with the livenessUrl from 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 returnUrl at 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 representativeDocument.

8. Endpoints ​

EndpointDescription
Create Onboarding RequisitionCreates the requisition; returns onboardingId and the liveness link.
Get Onboarding Requisition StatusQueries state, liveness attempts left, official company data, etc.
Submit Onboarding FormSubmits the data collected by your own form and all document files in one call; each requisition can be successfully submitted only once.
Retry Liveness VerificationOpens the next attempt after a liveness failure; the link stays the same.
Get Registration Update StatusQueries whether an update is needed, whether payouts are blocked (blocked), whether it can be started (canStart), and the update progress.
Start Registration UpdateStarts 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 state through Get Onboarding Requisition Status.
  • While the liveness verification is in progress, poll every 3–5 seconds; if returnUrl was 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 updatedAt to detect changes.
  • Stop polling once state reaches a terminal state (APPROVED, REJECTED, EXPIRED).

Requisition ID

  • Save onboardingId immediately 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_REQUISITION_EXISTS 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.

Liveness verification

  • livenessUrl has a validity period (expiresAt); when state is LIVENESS_EXPIRED, call the retry endpoint to get a new link.
  • When state is LIVENESS_FAILED, adjust the shooting conditions before calling the retry endpoint.

Files

  • Files are base64-encoded (without the data: prefix) inside the documents array 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 (blocked is true).
  • While the update is running on the hosted page (IN_PROGRESS, IN_REVIEW), poll every 10–30 seconds until status returns to NOT_REQUIRED or ACTION_REQUIRED.
  • When status is ACTION_REQUIRED and rejectionReason has 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 codeScenarioHandling
REQUISITION_NOT_FOUNDThe onboardingId does not exist or is not yoursCheck the ID
INVALID_STATEThe current state does not allow this operationQuery the requisition and handle per state
FORM_ALREADY_SUBMITTEDThe form has already been submitted for this requisition; each requisition can be successfully submitted only onceTreat it as the data having been accepted; query the requisition status to track the review
ACTIVE_REQUISITION_EXISTSThe 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_UNAVAILABLEThe document is under internal review, or already has an account opened through another channelContact Adopay support
USE_REGISTRATION_UPDATEThe 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_NOT_AVAILABLEThe white-label brand does not existCheck whitelabelSigla
ONBOARDING_NOT_CONFIGUREDNo available flow is configured for this onboarding type or for the registration updateContact your account manager
MISSING_REQUIRED_DOCUMENTA required file is missing at submissionComplete the files and submit again
OWNERSHIP_SUM_INVALIDThe ownership percentages do not add up to 100Fix and submit again
REPRESENTATIVE_MISMATCHThe legal representative CPF differs from the one at creationFix and submit again
FILE_TOO_LARGEA single file or the total of one submission exceeds the limitCompress and submit again
FILE_INVALIDA file is empty, of an unsupported type, or cannot be parsedCheck and submit again