Onboarding API
Download OpenAPI specification:Download
API for creating account onboarding in the ONZ platform.
This API allows account creation for:
- Natural Person (NATURAL_PERSON)
- Legal Person (LEGAL_PERSON)
Create new onboarding
Endpoint for creating account onboarding in the platform
Authorizations:
OAuth2
Request Body schema: application/jsonrequired
One of
| accountType required | string Value: "NATURAL_PERSON" |
required | object (Person) |
Responses
Response Schema: application/json
| message | string |
| id | string <uuid> |
| status | integer |
Request samples
- Payload
Content type
application/json
Example
{- "accountType": "NATURAL_PERSON",
- "person": {
- "name": "John Smith",
- "socialName": "Johnny",
- "document": "55389012704",
- "phone": "49999464580",
- "address": {
- "zipCode": "89900000",
- "address": "Itaberaba Street",
- "number": "1070",
- "complement": "Room 304",
- "district": "Downtown"
}
}
}Response samples
- 201
- 400
- 401
- 422
Content type
application/json
{- "message": "Onboarding created successfully",
- "id": "4fdd34d2-e9fa-4bb5-bfeb-84281f77f19a",
- "status": 1
}Upload onboarding images
This endpoint allows uploading identification documents and a selfie for a previously created onboarding process.
Accepted image types:
- Front of the document (FRONT) – The front side of the identification document.
- Back of the document (BACK) – The back side of the identification document.
- Selfie (SELFIE) – A clear photo of the person's face.
Authorizations:
OAuth2
path Parameters
| id required | string <uuid> Onboarding ID |
Request Body schema: multipart/form-datarequired
| type required | string Enum: "FRONT" "BACK" "SELFIE" Type of the image being uploaded |
| file required | string <binary> Image file (JPG or PNG, max 10MB) |
Responses
Response Schema: application/json
required | object | ||||
| |||||
Request samples
- Payload
Content type
multipart/form-data
Example
{ "type": "FRONT", "file": "(binary)" }
Response samples
- 200
- 400
- 401
- 404
Content type
application/json
Example
{- "image": {
- "type": "FRONT",
}
}