Linkage inclusion
Request
Token Request
ENDPOINT
/baas/token_requestMETHOD
POSTRequest Body
{
"contact_type":"sms",
"professional_data_creation":{
"natural_person": "1ed6dc4e-a0a8-42bb-8cc0-0bb3b0233fb9",
"legal_person": "b678ae5c-5797-4bd9-8a4c-9cbd1a0829a4",
"natural_person_roles": [
{
"product_type":"account",
"role_type": "viewer"
}
],
"post_type":"analyst"
},
"agent_document_number": "99988877765"
}
Token Validation
ENDPOINT
/baas/movement_validationMETHOD
POSTRequest Body
{
"token": "746116",
"professional_data_creation":{
"natural_person": "1ed6dc4e-a0a8-42bb-8cc0-0bb3b0233fb9",
"legal_person": "b678ae5c-5797-4bd9-8a4c-9cbd1a0829a4",
"natural_person_roles": [
{
"product_type":"account",
"role_type": "viewer"
}
],
"post_type":"analyst"
}
}
Body Params
Field | Type | Description | Characters |
---|---|---|---|
contact_type * | string | (/baas/token_request) Chosen method for sending the token. For SMS deliveries, only Brazilian numbers (+55) will receive the message. | "sms" |
token * | string | (/baas/token_validation) Six-digit (6) code sent to the operation approver. E.g., "123456" | 6 |
professional_data_creation | Object | Information on the professional link between an individual and a legal entity | Object professional_data_creation |
agent_document_number | string | CPF of one of the account administrators who will receive the SMS for validation. E.g., "99977766654" | 11 |
Object professional_data_creation
Field | Type | Description | Characters |
---|---|---|---|
natural_person * | string | Identification key of the individual. UUID v4 format. E.g., 1ed6dc4e-a0a8-42bb-8cc0-0bb3b0233fb9 | 36 |
legal_person * | string | Identification key of the legal entity. UUID v4 format. E.g., 1ed6dc4e-a0a8-42bb-8cc0-0bb3b0233fb9 | 36 |
natural_person_roles * | array | Permission and product information. | Array of Object natural_person_roles |
post_type * | string | Account number. | "ceo", "analyst", "partner", "director", "attorney", "signer" |
Object natural_person_role
Field | Type | Description | Characters |
---|---|---|---|
product_type * | string | Type of product for which permission is to be given. | "account", "escrow" |
role_type * | string | Type of permission to be given to the product. | "administrator", "requester", "viewer" |
Implemented contact methods
The contact_type
allowed for this operation is sms.
Number to receive token
One of the individuals registered as account administrator of the legal entity to be linked will receive the token.
Response
Token Request
STATUS
200Response Body
{}
STATUS
400Response Body: Contact type not implemented/expired
{
"title": "Bad Request",
"description": "Contact type {contact_type} not allowed",
"translation": "Forma de contato por {contact_type} não permitida",
"code": "ACC000152",
"additional_data": {}
}
STATUS
400Response Body: Contact does not exist/invalid
{
"title": "Bad Request",
"description": "Contact does not exist",
"translation": "Contato nao existe",
"code": "ACC000135",
"additional_data": {}
}
Token Validation
STATUS
200Response Body
{
"hash": "c5ad79fc14d8447ae272c671fe6dc27e",
"return_response": {
"admission_date": "2023-06-13",
"created_at": "2023-06-13T17:26:57",
"email": null,
"final_beneficiary": null,
"is_active": true,
"legal_person_key": "b678ae5c-5797-4bd9-8a4c-9cbd1a0829a4",
"natural_person_key": "1ed6dc4e-a0a8-42bb-8cc0-0bb3b0233fb9",
"natural_person_roles": [
{
"created_at": "2023-06-13T17:26:57",
"natural_person_roles_events": [],
"product_type": {
"created_at": "2022-04-08T14:51:34",
"enumerator": "escrow"
},
"role_type": {
"created_at": "2021-02-26T14:14:52",
"enumerator": "viewer"
},
"updated_at": "2023-06-13T18:24:35"
},
{
"created_at": "2023-06-13T17:26:57",
"natural_person_roles_events": [],
"product_type": {
"created_at": "2021-02-26T14:16:35",
"enumerator": "account"
},
"role_type": {
"created_at": "2021-02-26T14:14:52",
"enumerator": "viewer"
},
"updated_at": "2023-06-13T18:24:35"
}
],
"phone": null,
"post_type": {
"created_at": "2019-02-15T18:28:12",
"enumerator": "analyst",
"translation_path": "onboarding.PostType.analyst"
},
"profession_data_key": "78c8b92f-4e44-4725-a5fd-aa1fca78366d",
"updated_at": "2023-06-13T18:24:35"
},
"validation": true
}
STATUS
401Response Body: Expired token
{
"title": "Unauthorized",
"description": "Expired token",
"translation": "Token Expirado",
"code": "ACC000134",
"additional_data": {}
}
STATUS
401Response Body: Invalid token
{
"title": "Unauthorized",
"description": "Invalid token",
"translation": "Token Inválido",
"code": "ACC000133",
"additional_data": {}
}