Shared Objects
A significant portion of data is shared among different account events. The definitions of these objects can be easily located below.
Client Object
Request Body
{
"id": "123456",
"type": "natural_person",
"document_number": "023.456.789-01",
"name": "John Payer",
"email": "john@payer.com",
"address": {
"street": "Av. Eng. Luis Carlos Berrini",
"number": "105",
"neighbourhood": "Brooklin",
"city": "São Paulo",
"uf": "SP",
"complement": "Cj 303",
"postal_code": "04501-140"
},
"phone": {
"international_dial_code": "55",
"area_code": "11",
"number": "998861708",
"type": "mobile"
},
"sales_channel": "inbound_sales",
"segment": "Personalité"
}
Object representing the account holder's data.
| name | type | description |
|---|---|---|
| type | enum (mandatory) | Client type: "natural_person" or "legal_person" |
| document_number | string (mandatory) | Document number, in accordance with the standardization section. |
| name | string (mandatory) | Client name. |
| string | Client email. | |
| address | address | Client address data. |
| phone | phone | Client phone data. |
| sales_channel | enum (mandatory) | Channel through which the client registered. |
| segment | string (mandatory) | Client segment within the institution (e.g., premium, gold). |
The following enumerators exist for phone type: inbound_sales, app, website, call_center, and branch.
Address Object
Request Body
{
"street": "Rua do Teste",
"number": "111",
"neighbourhood": "Bairro do Exemplo",
"city": "Aparecida de Goiânia",
"uf": "GO",
"complement": "Térreo",
"postal_code": "00000-000",
"country": "BRA"
}
The address object is used to represent addresses throughout the API. Addresses within Brazilian territory are represented as follows:
| name | type | description |
|---|---|---|
| street | string (mandatory) | Street name, including the public place type, avoiding abbreviations if possible. |
| number | string (mandatory) | Property number, including letters if applicable. |
| neighbourhood | string (mandatory) | Neighborhood, without abbreviations. e.g.: Santa Felicidade |
| city | string (mandatory) | Full city name, without abbreviations. |
| uf | string (mandatory) | The federative unit (state), with two uppercase letters. e.g.: SP |
| complement | string | Any supplements to locate the property. e.g.: Apartamento 101, Conjunto 12 |
| postal_code | string (mandatory) | The locality's postal code, including the hyphen. |
| country | string (mandatory) | ISO 3166-1 alpha-3 code of the address country. |
For addresses where the country is not Brazil ("BRA"), the postal_code and federative unit may be filled in freely.