Skip to content

/v3/onboarding/form Create Onboarding Requisition ​

Background ​

/v3/onboarding/form is the first step of the onboarding flow: it creates an onboarding requisition for an individual (PF) or a company (PJ). On success it returns the requisition ID onboardingId and the liveness link livenessUrl; every later call — status query, submission, and retry — uses this ID. See Onboarding API Overview for the full flow.

Each document can have only one in-progress requisition at a time. When an in-progress requisition already exists for the document, this endpoint returns ACTIVE_REQUISITION_EXISTS and does not return the ID. onboardingId is returned only when the requisition is first created successfully — save it immediately.

Integration Specifications ​

  • This endpoint requires no authentication headers: during onboarding, no public key has been uploaded to the platform yet.

Endpoint ​

ItemValue
MethodPOST
Path/v3/onboarding/form
Content-Typeapplication/json
PurposeCreate an onboarding requisition

Request Fields ​

FieldLocationTypeLengthRequiredDescription
Content-TypeHeaderstring16YesMust be application/json.
documentLegalIdBodystring18YesIndividual CPF or company CNPJ; formatted values are accepted (e.g. 123.456.789-09) — dots, slashes, and hyphens are stripped and check digits are validated before processing. Must be sent as a JSON string so that documents starting with 0 do not lose their leading zeros.
emailBodystring255YesContact e-mail, stored lowercase.
onboardingTypeBodystring2YesPF for individuals — the document must be a valid CPF; PJ for companies — the document must be a valid CNPJ.
representativeDocumentBodystring14Required for PJCPF of the legal representative; formatted values are accepted. That person must complete the liveness verification in person. Do not send for PF.
whitelabelSiglaBodystring50NoWhite-label brand code; must be an existing brand. When omitted, the default brand is used.
returnUrlBodystring255NoAddress the liveness page redirects back to once the verification is completed.

onboardingType Enum ​

ValueDescription
PFIndividual onboarding, using a CPF.
PJCompany onboarding, using a CNPJ; representativeDocument is required.

Request Examples ​

Individual (PF):

http
POST /v3/onboarding/form HTTP/1.1
Content-Type: application/json

{
  "documentLegalId": "123.456.789-09",
  "email": "maria.santos@example.com",
  "onboardingType": "PF",
  "returnUrl": "https://merchant.example.com/onboarding/done"
}

Company (PJ):

http
POST /v3/onboarding/form HTTP/1.1
Content-Type: application/json

{
  "documentLegalId": "11.222.333/0001-81",
  "email": "financeiro@example.com",
  "onboardingType": "PJ",
  "representativeDocument": "111.444.777-35",
  "returnUrl": "https://merchant.example.com/onboarding/done"
}

Response Fields ​

data is the onboarding requisition object, exactly the same structure as returned by Get Onboarding Requisition Status. At creation, focus on the following fields:

FieldTypeLengthAlways returnedDescription
statusint4YesResponse code
msgstring128YesCorresponds to status
dataobject-YesOnboarding requisition object; full fields at Get Onboarding Requisition Status.
data.onboardingIdstring22YesRequisition ID, a case-sensitive 22-character string. Returned only when the requisition is first created successfully — save it immediately; every later endpoint uses it.
data.statestring32YesAWAITING_LIVENESS for a new requisition.
data.livenessUrlstring255NoLiveness link; present when the state is AWAITING_LIVENESS or LIVENESS_FAILED, valid until expiresAt; once expired, call Retry Liveness Verification to get a new link.
data.livenessAttemptsLeftint1YesLiveness attempts left; 3 for a new requisition.
data.expiresAtstring20NoDeadline of the action currently being waited on, ISO 8601 UTC (YYYY-MM-DDTHH:MM:SSZ). For a new requisition it is the livenessUrl validity; if it passes without the liveness completed, the requisition moves to LIVENESS_EXPIRED.

Response Example ​

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "onboardingId": "SCM968p7SzK-WXY9QBzDnA",
    "onboardingType": "PF",
    "documentLegalId": "12345678909",
    "representativeDocument": null,
    "state": "AWAITING_LIVENESS",
    "reason": null,
    "livenessUrl": "https://onboarding.adopay.example/l/Zx81Qp",
    "livenessAttemptsLeft": 3,
    "company": null,
    "expiresAt": "2026-10-19T09:00:00Z",
    "submittedAt": null,
    "decidedAt": null,
    "updatedAt": "2026-10-12T09:00:00Z"
  }
}

Response Error Codes ​

Business rules:

  • Repeated calls: when an in-progress requisition already exists for the document, ACTIVE_REQUISITION_EXISTS is returned and no ID is returned. If the create request times out without returning the ID, or the creation parameters were wrong, wait for the original requisition to expire (expiresAt) and create again.
  • Creating again: when the previous requisition is already REJECTED or EXPIRED, a new requisition is created and a new onboardingId is returned.
  • When creation is not allowed: if the document is under internal review or already has an account opened through another channel, DOCUMENT_UNAVAILABLE is returned without a specific reason; if the document has already been approved for an account through this API group, USE_REGISTRATION_UPDATE is returned and no ID is returned — switch to the registration update flow.
  • Brand and configuration: a whitelabelSigla that does not exist returns WHITELABEL_NOT_AVAILABLE; an onboarding type with no configured flow returns ONBOARDING_NOT_CONFIGURED — contact your account manager.
  • Field validation: an invalid CPF/CNPJ format or check digit, a document type not matching onboardingType, a PJ missing representativeDocument, or an invalid e-mail returns 1004 (validation failed), with the field path in msg.
  • Legal representative: for company onboarding, the person behind representativeDocument must complete the liveness verification in person, and the form submission must flag the same CPF as isLegalRepresentative.
  • Company data: after a PJ requisition is created, the back office queries the official registry asynchronously; the result is returned in company by Get Onboarding Requisition Status.

Back to Onboarding API Overview