Account migration completed

Event generated when an account migration finishes and the result is reported. Result can be either SUCCESS or FAIL.

Type: object
Additional properties: false
Domain: migration
Event: account_outgoing
Version: 1

|
code required

Title: Migration message code
Description: The code of message for systems
Type: string
Example:
MIGR-0001

message required

Title: The message schema
Description: Message of account migration result
Type: string
Example:
Account migrated with success

migration required

Title: Migration Identifiers Object
Description: Identifier sent on start of migration process
Type: object
Additional properties: false
Example:

{
    "id": "migration-id",
    "version_date": "2021-08-11T11:25:00.000Z",
    "phase_id": "Rollout_Jan2022",
    "status": "MIGRATED"
}
id required

Title: Migration Identifier
Type: string
Example:
migration-id

version_date required

Title: Version Date of Migration Identifier
Type: string
Example:
2021-08-11T11:25:00.000Z

phase_id

Title: Identifies migration phase
Type: string
Example:
Rollout_Jan2022

status

Title: Account migration status
Type: string
Must be one of the following:
TO_MIGRATE
MIGRATING
MIGRATED
NOT_MIGRATE
Example:
MIGRATED

status required

Title: Migration status
Description: If the result of account migration was success or not
Type: string
Must be one of the following:
SUCCESS
FAIL
Example:
SUCCESS
FAIL

entity

Title: Pismo generated account information
Type: object
Additional properties: false
Example:

{
    "account_id": 9999,
    "customer_id": 1234,
    "addresses": [
        {
            "id": 111
        }
    ]
}
account_id required

Title: Account Identifier
Description: Account identifier generated by pismo.
Type: integer
Example:
9999

customer_id required

Title: Customer Identifier
Description: Customer identifier generated by pismo.
Type: integer
Example:
1234

addresses

Description: Addresses Account identifier generated by pismo.
Type: array
Example:

[
    {
        "id": 111
    }
]
id

Description: Address account unique identifier
Type: number
Example:
111

due_date

Title: Due date ID
Type: integer

metadata

Title: Metadata
Description: Copy of the metadata sent on the account_incoming event
Type: object or null

program

Title: Program information.
Type: object

id required

Title: Program Identifier
Type: integer

type required

Title: Program type definitions.
Type: object

id required

Title: Program Type Identifier
Type: integer

description required

Title: Program Type description.
Type: string
Min length: 1
Max length: 30
Example:
CREDITO
PRE-PAGO
DEBITO
ALIMENTACAO
MERCHANT
CONTA-CORRENTE

pci required

Title: Whether the program type is inside a PCI context
Type: boolean
Example:
true
false

program_id

Title: Program Identifier
Type: integer

applicant

Type: object

document_number

Description: Document number
Type: string
Example:
111111111

birth_date

Description: Birth date
Type: string
Format: date
Example:
1975-01-15

personal

Description: The applicant's personal information, if applicable
Type: object
Additional properties: true
Example:

{
    "external_id": "3829df2a-e7e2-11eb-aafd-1bb0c073f513",
    "name": "John Doe",
    "email": "[email protected]",
    "gender": "M",
    "printed_name": "John Doe",
    "nickname": "John",
    "social_name": "John",
    "country_of_birth": "Brazil",
    "state_of_birth": "SP",
    "city_of_birth": "Osasco",
    "registration": {
        "number": "111111111",
        "issuer": "Any",
        "issuing_state": "SP",
        "issuing_date": "2021-07-01"
    },
    "education_degree": "Engineer",
    "marital_status": "SINGLE",
    "fathers_name": "Mr. Doe",
    "mothers_name": "Mx. Doe",
    "nationality": "Brazilian",
    "other_id_number": "14564543-32",
    "document_type": "RG",
    "document_issued_by": "SSP",
    "document_issued_at": "SP",
    "document_issued_date": "2004-07-05",
    "occupation": "Engineer",
    "assets": 125000,
    "income": 5000,
    "net_worth": 200000,
    "statutory": true
}
external_id

Description: A record identifier for external purposes
Type: string
Example:
3829df2a-e7e2-11eb-aafd-1bb0c073f513

name

Description: The applicant's name.
Type: string
Example:
John Doe

email

Description: The applicant's email.
Type: string
Example:
[email protected]

gender

Description: The applicant's gender. Valid values (F,M)
Type: string
Must be one of the following:
M
F
Example:
M

printed_name

Description: The applicant's name to be printed on the card (max. 25 characters)
Type: string
Example:
John Doe

nickname

Description: The applicant's nickname
Type: string
Example:
João

social_name

Description: The applicant social name used for descriptions and printed name
Type: string
Example:
João

country_of_birth

Description: The applicant's country of birth
Type: string
Example:
Brazil

state_of_birth

Description: The applicant's state of birth
Type: string
Example:
SP

city_of_birth

Description: The applicant's city of birth
Type: string
Example:
Osasco

registration

Description: The applicant's document information
Type: object
Additional properties: true
Example:

{
    "number": "111111111",
    "issuer": "Any",
    "issuing_state": "SP",
    "issuing_date": "2021-07-01"
}
number required

Description: The document's number
Type: string
Example:
111111111

issuer

Description: The document's issuer
Type: string
Example:
Any

issuing_state

Description: The document's issuing state
Type: string
Example:
SP

issuing_date

Description: The document's issuing date.
Type: string
Example:
2021-07-01

education_degree

Description: The applicant's education degree.
Type: string
Example:
Engineer

marital_status

Description: The applicant's marital status. Valid values (SINGLE, MARRIED, DIVORCED, WIDOWER).
Type: string
Must be one of the following:
SINGLE
MARRIED
DIVORCED
WIDOWER
Example:
SINGLE

fathers_name

Type: string
Example:
Mr. Doe

mothers_name

Description: The applicant's name of mother
Type: string
Example:
Mx. Doe

nationality

Description: The applicant's nationality
Type: string
Example:
Brazilian

other_id_number

Description: Another document number. For example, RG in Brazil
Type: string
Example:
14564543-32

document_type

Description: The applicant document type
Type: string
Example:
RG

document_issued_by

Description: The applicant document issuer
Type: string
Example:
SSP

document_issued_at

Description: Document organization issuer code
Type: string
Example:
SP

document_issued_date

Description: The applicant document issuer locale.
Type: string
Example:
2004-07-05

occupation

Description: The applicant's profession
Type: string
Example:
Engineer

assets

Description: The applicant's assets
Type: integer
Example:
125000

income

Description: The applicant's income
Type: integer
Example:
5000

net_worth

Description: The applicant's net worth
Type: integer
Example:
200000

statutory

Description: Statutory
Type: boolean
Example:
true

addresses
company

Description: The applicant's company information, when applicable
Type: object
Additional properties: true
Example:

{
    "external_id": "38bb9da4-e82b-11eb-9fb3-97772a55754b",
    "name": "Pismo LTDA",
    "email": "[email protected]",
    "registration_number": "123456789",
    "company_name": "Pismo",
    "activity": "Desenvolvimento de Software",
    "company_type": "Ltda",
    "company_format": "Ltda",
    "company_constitution_date": "2017-11-21",
    "occupation": "Engineering",
    "annual_revenues": 20000000,
    "type": "Fornecedora de Servi\u00e7os",
    "number_of_partners": 2,
    "fiscal_situation": "Normal",
    "debt": 500000,
    "income": 3000000,
    "net_worth": 20000000
}
external_id

Description: Id defined by the client
Type: string
Example:
38bb9da4-e82b-11eb-9fb3-97772a55754b

name

Description: The company's legal name
Type: string
Example:
Pismo LTDA

email

Description: The company's registered email
Type: string
Example:
[email protected]

registration_number

Description: The number under which the company is registered
Type: string
Example:
123456789

company_name

Description: The company's brand name
Type: string
Example:
Pismo

activity

Description: The company's field of activity
Type: string
Example:
Desenvolvimento de Software

company_type

Description: The company's type
Type: string
Example:
Ltda

company_format

Description: The company social type
Type: string
Example:
Ltda

company_constitution_date

Description: The company's constitution date.
Type: string
Example:
2017-11-21

occupation

Description: The company's main occupation
Type: string
Example:
Engineering

annual_revenues

Description: The average monthly revenue for the last 12 months
Type: integer
Example:
20000000

type

Description: The company's business relations type
Type: string
Example:
Fornecedora de Serviços

number_of_partners

Description: The company's number of partner
Type: integer
Example:
2

fiscal_situation

Description: The company's fiscal situation
Type: string
Example:
Normal

debt

Description: The company's debt's
Type: integer
Example:
500000

income

Description: The company's income
Type: integer
Example:
3000000

net_worth

Description: The company's net worth
Type: integer
Example:
20000000

entity

Type: object
Additional properties: true

id required

Description: Entity id created
Type: integer

account

Title: The applicant's account options
Type: object

email

Type: string or null
Min length: 0
Max length: 255

exchange_mode

Title: Whether any foreign transaction should be charged by the exchange rate at the day it occurred or at the statement's closing date
Type: string
Min length: 1
Max length: 8
Must be one of the following:
SAME_DAY
CLOSING

max_limit

Description: Account's max limit
Type: number

limit

Description: Account's limit
Type: number

id

Description: Created id
Type: integer

currency_code

Title: Currency code related to the account.
Type: string
Min length: 1
Max length: 3
Example:
BRL

currency_id

Title: Currency ID related to the currency.
Type: integer

total_overdraft_limit

Title: Account's total overdraft limit.
Type: number

withdraw_credit_limit

Title: Account's total withdraw credit limit.
Type: number

external_id

Description: A key defined by the client. It can have any format
Type: string or null
Min length: 0
Max length: 60
Example:
3d0ca315-aff9–4fc2-be61–3b76b9a2d798

account_status

Description: Current status of the account. Used for internal Pismo processing.
Type: string or null
Example:
BLOCKED
CANCELLED
NORMAL
STAND-BY

collection_status

Description: Financial status of the account. Used for internal Pismo processing.
Type: string or null
Example:
NORMAL
OVERDUE
STATEMENT_AGREEMENT

creation_date

Description: Account creation timestamp.
Type: string
Format: date-time
Example:
2019-10-18T18:26:28.000Z

customer

Title: The Customer Schema
Type: object

printed_name

Description: The name that must be printed in the card
Type: string
Min length: 1
Max length: 25

nickname

Type: string
Min length: 1
Max length: 60

social_name

Description: Person social name
Type: string or null
Min length: 0
Max length: 60

id

Description: Created id
Type: integer

additionals

Type: array or null

operation

Title: Migration Operation
Description: If the account migration is a creation or update
Type: string
Must be one of the following:
CREATION
UPDATE
Example:
UPDATE
CREATION

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://pismo.io/events/migration/account_outgoing-1.json",
    "type": "object",
    "title": "Account migration completed",
    "description": "Event generated when an account migration finishes and the result is reported. Result can be either `SUCCESS` or `FAIL`.",
    "examples": [
        {
            "operation": "UPDATE",
            "status": "SUCCESS",
            "code": "MIGR-0001",
            "message": "Account migrated with success",
            "migration": {
                "id": "migration-id",
                "version_date": "2021-10-19T11:25Z",
                "phase_id": "Rollout_Jan2022",
                "status": "MIGRATING"
            },
            "entity": {
                "account_id": 102186558,
                "customer_id": 102184218,
                "addresses": [
                    {
                        "id": 111
                    },
                    {
                        "id": 222
                    }
                ],
                "due_date": 25701,
                "metadata": {
                    "migrationVersion": "MODEL_2"
                },
                "applicant": {
                    "account": {
                        "current_cycle": 1,
                        "id": 181319449,
                        "granted_limit": 1000.0,
                        "exchange_mode": "SAME_DAY",
                        "available_credit_limit": 10000000.35,
                        "currency_id": 37,
                        "max_limit": 1000.0,
                        "create_statements": false,
                        "limit": 1000.0,
                        "currency_code": "BRL",
                        "creation_date": "2024-04-01T00:00:00.000Z",
                        "collection_status": "NORMAL",
                        "account_status": "STAND-BY",
                        "email": "[email protected]",
                        "external_id": "732bd481-a072-4322-bdff-0719e6a2d3c1"
                    },
                    "personal": {
                        "name": "John Doe",
                        "email": "[email protected]",
                        "assets": 125000.0,
                        "gender": "M",
                        "income": 5000.0,
                        "net_worth": 200000.0,
                        "statutory": true,
                        "external_id": "7b7c20d3-3398-4ced-bb6a-48db39f3cb7d",
                        "occupation": "Engineer",
                        "city_of_birth": "Taubatexas",
                        "fathers_name": "Mr. Doe",
                        "mothers_name": "Mx. Doe",
                        "nationality": "Brazilian",
                        "document_type": "RG",
                        "registration": {
                            "issuer": "Any",
                            "number": "111111111",
                            "issuing_date": "01/07/2021",
                            "issuing_state": "SP"
                        },
                        "state_of_birth": "SP",
                        "marital_status": "SINGLE",
                        "other_id_number": "12312312-55",
                        "country_of_birth": "Brazil",
                        "education_degree": "Engineer",
                        "document_issued_at": "SP",
                        "document_issued_by": "SSP",
                        "document_issued_date": "05/07/2004",
                        "printed_name": "John Doe"
                    },
                    "addresses": [
                        {
                            "city": "S\u00e3o Paulo",
                            "date": "15/05/2013",
                            "state": "SP",
                            "number": "101",
                            "phones": [
                                {
                                    "phone": "912345678",
                                    "extension": "I",
                                    "phone_type": "RESIDENTIAL",
                                    "id": 138243412
                                }
                            ],
                            "address": "Avenida das Neves",
                            "country": "Brazil",
                            "zip_code": "111111111",
                            "address_type": "RESIDENTIAL",
                            "neighborhood": "Vila Nova",
                            "mailing_address": true,
                            "complementary_address": "Apartamento 500",
                            "id": 161234022
                        },
                        {
                            "city": "S\u00e3o Paulo",
                            "date": "15/05/2013",
                            "state": "SP",
                            "number": "100",
                            "phones": [
                                {
                                    "phone": "912345678",
                                    "extension": "I",
                                    "phone_type": "RESIDENTIAL",
                                    "id": 138243412
                                }
                            ],
                            "address": "Avenida das Neves",
                            "country": "Brazil",
                            "zip_code": "111111111",
                            "address_type": "RESIDENTIAL",
                            "neighborhood": "Vila Nova",
                            "mailing_address": true,
                            "complementary_address": "Apartamento 500",
                            "id": 161234023
                        }
                    ],
                    "birth_date": "15/01/1975",
                    "document_number": "37040806673",
                    "additionals": [],
                    "entity": {
                        "statutory": true,
                        "marital_status": "SINGLE",
                        "id": 171565988,
                        "document_number": "37040806673",
                        "name": "John Doe",
                        "gender": "M",
                        "registration": "111111111",
                        "entity_type": "PERSON",
                        "mothers_name": "Mx. Doe",
                        "birth_date": "1975-01-15T00:00:00Z",
                        "entity_type_id": 1,
                        "external_id": "7b7c20d3-3398-4ced-bb6a-48db39f3cb7d",
                        "person": {
                            "nationality": "Brazilian",
                            "city_of_birth": "Taubatexas",
                            "state_of_birth": "SP",
                            "country_of_birth": "Brazil",
                            "document_type": "RG",
                            "other_id_number": "12312312-55",
                            "document_issued_by": "SSP",
                            "document_issued_at": "SP",
                            "document_issued_date": "2004-07-05",
                            "fathers_name": "Mr. Doe",
                            "occupation": "Engineer",
                            "assets": 125000.0,
                            "income": 5000.0,
                            "net_worth": 200000.0
                        }
                    },
                    "customer": {
                        "nickname": "John",
                        "id": 181230139,
                        "printed_name": "John Doe"
                    }
                },
                "program_id": 14033,
                "program": {
                    "id": 14033,
                    "type": {
                        "id": 1,
                        "description": "CREDITO",
                        "pci": true
                    }
                }
            }
        }
    ],
    "required": [
        "code",
        "message",
        "migration",
        "status"
    ],
    "properties": {
        "code": {
            "$id": "#/properties/code",
            "type": "string",
            "title": "Migration message code",
            "description": "The code of message for systems",
            "default": "",
            "examples": [
                "MIGR-0001"
            ]
        },
        "message": {
            "$id": "#/properties/message",
            "type": "string",
            "title": "The message schema",
            "description": "Message of account migration result",
            "default": "",
            "examples": [
                "Account migrated with success"
            ]
        },
        "migration": {
            "$id": "#/properties/migration",
            "type": "object",
            "title": "Migration Identifiers Object",
            "description": "Identifier sent on start of migration process",
            "default": {},
            "examples": [
                {
                    "id": "migration-id",
                    "version_date": "2021-08-11T11:25:00.000Z",
                    "phase_id": "Rollout_Jan2022",
                    "status": "MIGRATED"
                }
            ],
            "required": [
                "id",
                "version_date"
            ],
            "properties": {
                "id": {
                    "$id": "#/properties/migration/properties/id",
                    "type": "string",
                    "title": "Migration Identifier",
                    "examples": [
                        "migration-id"
                    ]
                },
                "version_date": {
                    "$id": "#/properties/migration/properties/version_date",
                    "type": "string",
                    "title": "Version Date of Migration Identifier",
                    "examples": [
                        "2021-08-11T11:25:00.000Z"
                    ]
                },
                "phase_id": {
                    "$id": "#/properties/migration/properties/phase_id",
                    "type": "string",
                    "title": "Identifies migration phase",
                    "examples": [
                        "Rollout_Jan2022"
                    ]
                },
                "status": {
                    "$id": "#/properties/migration/properties/status",
                    "type": "string",
                    "title": "Account migration status",
                    "enum": [
                        "TO_MIGRATE",
                        "MIGRATING",
                        "MIGRATED",
                        "NOT_MIGRATE"
                    ],
                    "examples": [
                        "MIGRATED"
                    ]
                }
            },
            "additionalProperties": false
        },
        "status": {
            "$id": "#/properties/status",
            "type": "string",
            "title": "Migration status",
            "description": "If the result of account migration was success or not",
            "enum": [
                "SUCCESS",
                "FAIL"
            ],
            "examples": [
                "SUCCESS",
                "FAIL"
            ]
        },
        "entity": {
            "$id": "#/properties/entity",
            "type": "object",
            "title": "Pismo generated account information",
            "default": {},
            "examples": [
                {
                    "account_id": 9999,
                    "customer_id": 1234,
                    "addresses": [
                        {
                            "id": 111
                        }
                    ]
                }
            ],
            "required": [
                "account_id",
                "customer_id"
            ],
            "properties": {
                "account_id": {
                    "$id": "#/properties/entity/properties/account_id",
                    "type": "integer",
                    "title": "Account Identifier",
                    "description": "Account identifier generated by pismo.",
                    "examples": [
                        9999
                    ]
                },
                "customer_id": {
                    "$id": "#/properties/entity/properties/customer_id",
                    "type": "integer",
                    "title": "Customer Identifier",
                    "description": "Customer identifier generated by pismo.",
                    "examples": [
                        1234
                    ]
                },
                "addresses": {
                    "$id": "#/properties/entity/properties/addresses",
                    "type": "array",
                    "title": "Addresses Account Identifier",
                    "examples": [
                        [
                            {
                                "id": 111
                            }
                        ]
                    ],
                    "items": {
                        "type": "object",
                        "description": "Addresses Account identifier generated by pismo.",
                        "examples": [
                            {
                                "id": 111
                            }
                        ],
                        "properties": {
                            "id": {
                                "$id": "#/properties/entity/properties/addresses/items/anyOf/0/properties/id",
                                "type": "number",
                                "description": "Address account unique identifier",
                                "examples": [
                                    111
                                ]
                            }
                        }
                    }
                },
                "due_date": {
                    "title": "Due date ID",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4294967295
                },
                "metadata": {
                    "type": [
                        "object",
                        "null"
                    ],
                    "title": "Metadata",
                    "description": "Copy of the metadata sent on the account_incoming event"
                },
                "program": {
                    "type": "object",
                    "title": "Program information.",
                    "required": [
                        "id",
                        "type"
                    ],
                    "properties": {
                        "id": {
                            "title": "Program Identifier",
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 4294967295
                        },
                        "type": {
                            "type": "object",
                            "title": "Program type definitions.",
                            "required": [
                                "id",
                                "description",
                                "pci"
                            ],
                            "properties": {
                                "id": {
                                    "title": "Program Type Identifier",
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 4294967295
                                },
                                "description": {
                                    "title": "Program Type description.",
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 30,
                                    "examples": [
                                        "CREDITO",
                                        "PRE-PAGO",
                                        "DEBITO",
                                        "ALIMENTACAO",
                                        "MERCHANT",
                                        "CONTA-CORRENTE"
                                    ]
                                },
                                "pci": {
                                    "title": "Whether the program type is inside a PCI context",
                                    "type": "boolean",
                                    "examples": [
                                        true,
                                        false
                                    ]
                                }
                            }
                        }
                    }
                },
                "program_id": {
                    "title": "Program Identifier",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4294967295
                },
                "applicant": {
                    "type": "object",
                    "properties": {
                        "document_number": {
                            "$id": "#/properties/entity/properties/applicant/properties/document_number",
                            "type": "string",
                            "description": "Document number",
                            "examples": [
                                "111111111"
                            ]
                        },
                        "birth_date": {
                            "$id": "#/properties/entity/properties/applicant/properties/birth_date",
                            "type": "string",
                            "description": "Birth date",
                            "format": "date",
                            "examples": [
                                "1975-01-15"
                            ]
                        },
                        "personal": {
                            "$id": "#/properties/entity/properties/applicant/properties/personal",
                            "type": "object",
                            "description": "The applicant's personal information, if applicable",
                            "examples": [
                                {
                                    "external_id": "3829df2a-e7e2-11eb-aafd-1bb0c073f513",
                                    "name": "John Doe",
                                    "email": "[email protected]",
                                    "gender": "M",
                                    "printed_name": "John Doe",
                                    "nickname": "John",
                                    "social_name": "John",
                                    "country_of_birth": "Brazil",
                                    "state_of_birth": "SP",
                                    "city_of_birth": "Osasco",
                                    "registration": {
                                        "number": "111111111",
                                        "issuer": "Any",
                                        "issuing_state": "SP",
                                        "issuing_date": "2021-07-01"
                                    },
                                    "education_degree": "Engineer",
                                    "marital_status": "SINGLE",
                                    "fathers_name": "Mr. Doe",
                                    "mothers_name": "Mx. Doe",
                                    "nationality": "Brazilian",
                                    "other_id_number": "14564543-32",
                                    "document_type": "RG",
                                    "document_issued_by": "SSP",
                                    "document_issued_at": "SP",
                                    "document_issued_date": "2004-07-05",
                                    "occupation": "Engineer",
                                    "assets": 125000,
                                    "income": 5000,
                                    "net_worth": 200000,
                                    "statutory": true
                                }
                            ],
                            "properties": {
                                "external_id": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/external_id",
                                    "type": "string",
                                    "description": "A record identifier for external purposes",
                                    "examples": [
                                        "3829df2a-e7e2-11eb-aafd-1bb0c073f513"
                                    ]
                                },
                                "name": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/name",
                                    "type": "string",
                                    "description": "The applicant's name.",
                                    "examples": [
                                        "John Doe"
                                    ]
                                },
                                "email": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/email",
                                    "type": "string",
                                    "description": "The applicant's email.",
                                    "examples": [
                                        "[email protected]"
                                    ]
                                },
                                "gender": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/gender",
                                    "type": "string",
                                    "description": "The applicant's gender. Valid values (F,M)",
                                    "enum": [
                                        "M",
                                        "F"
                                    ],
                                    "examples": [
                                        "M"
                                    ]
                                },
                                "printed_name": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/printed_name",
                                    "type": "string",
                                    "description": "The applicant's name to be printed on the card (max. 25 characters)",
                                    "examples": [
                                        "John Doe"
                                    ]
                                },
                                "nickname": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/nickname",
                                    "type": "string",
                                    "description": "The applicant's nickname",
                                    "examples": [
                                        "Jo\u00e3o"
                                    ]
                                },
                                "social_name": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/social_name",
                                    "type": "string",
                                    "description": "The applicant social name used for descriptions and printed name",
                                    "examples": [
                                        "Jo\u00e3o"
                                    ]
                                },
                                "country_of_birth": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/country_of_birth",
                                    "type": "string",
                                    "description": "The applicant's country of birth",
                                    "examples": [
                                        "Brazil"
                                    ]
                                },
                                "state_of_birth": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/state_of_birth",
                                    "type": "string",
                                    "description": "The applicant's state of birth",
                                    "examples": [
                                        "SP"
                                    ]
                                },
                                "city_of_birth": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/city_of_birth",
                                    "type": "string",
                                    "description": "The applicant's city of birth",
                                    "examples": [
                                        "Osasco"
                                    ]
                                },
                                "registration": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/registration",
                                    "type": "object",
                                    "description": "The applicant's document information",
                                    "examples": [
                                        {
                                            "number": "111111111",
                                            "issuer": "Any",
                                            "issuing_state": "SP",
                                            "issuing_date": "2021-07-01"
                                        }
                                    ],
                                    "required": [
                                        "number"
                                    ],
                                    "properties": {
                                        "number": {
                                            "$id": "#/properties/entity/properties/applicant/properties/personal/properties/registration/properties/number",
                                            "type": "string",
                                            "description": "The document's number",
                                            "examples": [
                                                "111111111"
                                            ]
                                        },
                                        "issuer": {
                                            "$id": "#/properties/entity/properties/applicant/properties/personal/properties/registration/properties/issuer",
                                            "type": "string",
                                            "description": "The document's issuer",
                                            "examples": [
                                                "Any"
                                            ]
                                        },
                                        "issuing_state": {
                                            "$id": "#/properties/entity/properties/applicant/properties/personal/properties/registration/properties/issuing_state",
                                            "type": "string",
                                            "description": "The document's issuing state",
                                            "examples": [
                                                "SP"
                                            ]
                                        },
                                        "issuing_date": {
                                            "$id": "#/properties/entity/properties/applicant/properties/personal/properties/registration/properties/issuing_date",
                                            "type": "string",
                                            "description": "The document's issuing date.",
                                            "examples": [
                                                "2021-07-01"
                                            ]
                                        }
                                    },
                                    "additionalProperties": true
                                },
                                "education_degree": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/education_degree",
                                    "type": "string",
                                    "description": "The applicant's education degree.",
                                    "examples": [
                                        "Engineer"
                                    ]
                                },
                                "marital_status": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/marital_status",
                                    "type": "string",
                                    "description": "The applicant's marital status. Valid values (SINGLE, MARRIED, DIVORCED, WIDOWER).",
                                    "enum": [
                                        "SINGLE",
                                        "MARRIED",
                                        "DIVORCED",
                                        "WIDOWER"
                                    ],
                                    "examples": [
                                        "SINGLE"
                                    ]
                                },
                                "fathers_name": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/fathers_name",
                                    "type": "string",
                                    "descripton": "The applicant's name of father.",
                                    "examples": [
                                        "Mr. Doe"
                                    ]
                                },
                                "mothers_name": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/mothers_name",
                                    "type": "string",
                                    "description": "The applicant's name of mother",
                                    "examples": [
                                        "Mx. Doe"
                                    ]
                                },
                                "nationality": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/nationality",
                                    "type": "string",
                                    "description": "The applicant's nationality",
                                    "examples": [
                                        "Brazilian"
                                    ]
                                },
                                "other_id_number": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/other_id_number",
                                    "type": "string",
                                    "description": "Another document number. For example, RG in Brazil",
                                    "examples": [
                                        "14564543-32"
                                    ]
                                },
                                "document_type": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/document_type",
                                    "type": "string",
                                    "description": "The applicant document type",
                                    "examples": [
                                        "RG"
                                    ]
                                },
                                "document_issued_by": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/document_issued_by",
                                    "type": "string",
                                    "description": "The applicant document issuer",
                                    "default": "",
                                    "examples": [
                                        "SSP"
                                    ]
                                },
                                "document_issued_at": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/document_issued_at",
                                    "type": "string",
                                    "description": "Document organization issuer code",
                                    "examples": [
                                        "SP"
                                    ]
                                },
                                "document_issued_date": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/document_issued_date",
                                    "type": "string",
                                    "description": "The applicant document issuer locale.",
                                    "examples": [
                                        "2004-07-05"
                                    ]
                                },
                                "occupation": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/occupation",
                                    "type": "string",
                                    "description": "The applicant's profession",
                                    "examples": [
                                        "Engineer"
                                    ]
                                },
                                "assets": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/assets",
                                    "type": "integer",
                                    "description": "The applicant's assets",
                                    "examples": [
                                        125000
                                    ]
                                },
                                "income": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/income",
                                    "type": "integer",
                                    "description": "The applicant's income",
                                    "examples": [
                                        5000
                                    ]
                                },
                                "net_worth": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/net_worth",
                                    "type": "integer",
                                    "description": "The applicant's net worth",
                                    "examples": [
                                        200000
                                    ]
                                },
                                "statutory": {
                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/statutory",
                                    "type": "boolean",
                                    "description": "Statutory",
                                    "examples": [
                                        true
                                    ]
                                }
                            },
                            "additionalProperties": true
                        },
                        "addresses": {
                            "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses",
                            "type": "array",
                            "description": "The applicant's addresses",
                            "examples": [
                                [
                                    {
                                        "zip_code": "111111111",
                                        "address": "Avenida das Neves",
                                        "number": "100",
                                        "neighborhood": "Vila Nova",
                                        "complementary_address": "Apartamento 500",
                                        "city": "S\u00e3o Paulo",
                                        "state": "SP",
                                        "country": "Brazil",
                                        "address_type": "RESIDENTIAL",
                                        "mailing_address": true,
                                        "date": "2013-05-15",
                                        "phones": [
                                            {
                                                "phone_type": "RESIDENTIAL",
                                                "phone": "91234-5678",
                                                "extension": "11"
                                            }
                                        ]
                                    }
                                ]
                            ],
                            "additionalItems": true,
                            "items": {
                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items",
                                "anyOf": [
                                    {
                                        "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0",
                                        "type": "object",
                                        "description": "The addresses of the account.",
                                        "default": {},
                                        "examples": [
                                            {
                                                "zip_code": "111111111",
                                                "address": "Avenida das Neves",
                                                "number": "100",
                                                "neighborhood": "Vila Nova",
                                                "complementary_address": "Apartamento 500",
                                                "city": "S\u00e3o Paulo",
                                                "state": "SP",
                                                "country": "Brazil",
                                                "address_type": "RESIDENTIAL",
                                                "mailing_address": true,
                                                "date": "2013-05-15",
                                                "phones": [
                                                    {
                                                        "phone_type": "RESIDENTIAL",
                                                        "phone": "91234-5678",
                                                        "extension": "11"
                                                    }
                                                ]
                                            }
                                        ],
                                        "required": [
                                            "zip_code",
                                            "address",
                                            "number",
                                            "neighborhood",
                                            "city",
                                            "state"
                                        ],
                                        "properties": {
                                            "zip_code": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/zip_code",
                                                "type": "string",
                                                "description": "The address's zip code                                                ",
                                                "examples": [
                                                    "111111111"
                                                ]
                                            },
                                            "address": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/address",
                                                "type": "string",
                                                "description": "The address's street",
                                                "examples": [
                                                    "Avenida das Neves"
                                                ]
                                            },
                                            "number": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/number",
                                                "type": "string",
                                                "description": "The address's number",
                                                "examples": [
                                                    "100"
                                                ]
                                            },
                                            "neighborhood": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/neighborhood",
                                                "type": "string",
                                                "description": "The address's neighborhood",
                                                "examples": [
                                                    "Vila Nova"
                                                ]
                                            },
                                            "complementary_address": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/complementary_address",
                                                "type": "string",
                                                "description": "The address's complentary",
                                                "examples": [
                                                    "Apartamento 500"
                                                ]
                                            },
                                            "city": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/city",
                                                "type": "string",
                                                "description": "The address's city",
                                                "examples": [
                                                    "S\u00e3o Paulo"
                                                ]
                                            },
                                            "state": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/state",
                                                "type": "string",
                                                "description": "The address's state",
                                                "examples": [
                                                    "SP"
                                                ]
                                            },
                                            "country": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/country",
                                                "type": "string",
                                                "description": "The address's country",
                                                "examples": [
                                                    "Brazil"
                                                ]
                                            },
                                            "address_type": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/address_type",
                                                "type": "string",
                                                "description": "The address's type. Valid values (RESIDENTIAL, COMMERCIAL, OTHER)",
                                                "enum": [
                                                    "RESIDENTIAL",
                                                    "COMMERCIAL",
                                                    "OTHER"
                                                ],
                                                "examples": [
                                                    "RESIDENTIAL"
                                                ]
                                            },
                                            "mailing_address": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/mailing_address",
                                                "type": "boolean",
                                                "description": "Flag indicating if this address should be marked as a mailing address",
                                                "examples": [
                                                    true
                                                ]
                                            },
                                            "date": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/date",
                                                "type": "string",
                                                "description": "The date since the address belongs to the applicant, formatted as yyyy-MM-dd",
                                                "format": "date",
                                                "examples": [
                                                    "2013-05-15"
                                                ]
                                            },
                                            "phones": {
                                                "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/phones",
                                                "type": "array",
                                                "description": "The address's phones",
                                                "examples": [
                                                    [
                                                        {
                                                            "phone_type": "RESIDENTIAL",
                                                            "phone": "91234-5678",
                                                            "extension": "11"
                                                        }
                                                    ]
                                                ],
                                                "additionalItems": true,
                                                "items": {
                                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/phones/items",
                                                    "anyOf": [
                                                        {
                                                            "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/phones/items/anyOf/0",
                                                            "type": "object",
                                                            "description": "The Phone's informations",
                                                            "examples": [
                                                                {
                                                                    "phone_type": "RESIDENTIAL",
                                                                    "phone": "91234-5678",
                                                                    "extension": "11"
                                                                }
                                                            ],
                                                            "required": [
                                                                "phone_type",
                                                                "phone",
                                                                "extension"
                                                            ],
                                                            "properties": {
                                                                "phone_type": {
                                                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/phones/items/anyOf/0/properties/phone_type",
                                                                    "type": "string",
                                                                    "description": "The phone's type. Valid values (RESIDENTIAL, COMMERCIAL, MOBILE).",
                                                                    "enum": [
                                                                        "RESIDENTIAL",
                                                                        "COMMERCIAL",
                                                                        "MOBILE"
                                                                    ],
                                                                    "examples": [
                                                                        "RESIDENTIAL"
                                                                    ]
                                                                },
                                                                "phone": {
                                                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/phones/items/anyOf/0/properties/phone",
                                                                    "type": "string",
                                                                    "description": "The phone's number.",
                                                                    "examples": [
                                                                        "91234-5678"
                                                                    ]
                                                                },
                                                                "extension": {
                                                                    "$id": "#/properties/entity/properties/applicant/properties/personal/properties/addresses/items/anyOf/0/properties/phones/items/anyOf/0/properties/extension",
                                                                    "type": "string",
                                                                    "description": "An optional phone number extension",
                                                                    "examples": [
                                                                        "11"
                                                                    ]
                                                                }
                                                            },
                                                            "additionalProperties": true
                                                        }
                                                    ]
                                                }
                                            }
                                        },
                                        "additionalProperties": true
                                    }
                                ]
                            }
                        },
                        "company": {
                            "$id": "#/properties/entity/properties/applicant/properties/company",
                            "type": "object",
                            "description": "The applicant's company information, when applicable",
                            "examples": [
                                {
                                    "external_id": "38bb9da4-e82b-11eb-9fb3-97772a55754b",
                                    "name": "Pismo LTDA",
                                    "email": "[email protected]",
                                    "registration_number": "123456789",
                                    "company_name": "Pismo",
                                    "activity": "Desenvolvimento de Software",
                                    "company_type": "Ltda",
                                    "company_format": "Ltda",
                                    "company_constitution_date": "2017-11-21",
                                    "occupation": "Engineering",
                                    "annual_revenues": 20000000,
                                    "type": "Fornecedora de Servi\u00e7os",
                                    "number_of_partners": 2,
                                    "fiscal_situation": "Normal",
                                    "debt": 500000,
                                    "income": 3000000,
                                    "net_worth": 20000000
                                }
                            ],
                            "properties": {
                                "external_id": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/external_id",
                                    "type": "string",
                                    "description": "Id defined by the client",
                                    "examples": [
                                        "38bb9da4-e82b-11eb-9fb3-97772a55754b"
                                    ]
                                },
                                "name": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/name",
                                    "type": "string",
                                    "description": "The company's legal name",
                                    "examples": [
                                        "Pismo LTDA"
                                    ]
                                },
                                "email": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/email",
                                    "type": "string",
                                    "description": "The company's registered email",
                                    "examples": [
                                        "[email protected]"
                                    ]
                                },
                                "registration_number": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/registration_number",
                                    "type": "string",
                                    "description": "The number under which the company is registered",
                                    "examples": [
                                        "123456789"
                                    ]
                                },
                                "company_name": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/company_name",
                                    "type": "string",
                                    "description": "The company's brand name",
                                    "examples": [
                                        "Pismo"
                                    ]
                                },
                                "activity": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/activity",
                                    "type": "string",
                                    "description": "The company's field of activity",
                                    "examples": [
                                        "Desenvolvimento de Software"
                                    ]
                                },
                                "company_type": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/company_type",
                                    "type": "string",
                                    "description": "The company's type",
                                    "examples": [
                                        "Ltda"
                                    ]
                                },
                                "company_format": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/company_format",
                                    "type": "string",
                                    "description": "The company social type",
                                    "examples": [
                                        "Ltda"
                                    ]
                                },
                                "company_constitution_date": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/company_constitution_date",
                                    "type": "string",
                                    "description": "The company's constitution date.",
                                    "examples": [
                                        "2017-11-21"
                                    ]
                                },
                                "occupation": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/occupation",
                                    "type": "string",
                                    "description": "The company's main occupation",
                                    "examples": [
                                        "Engineering"
                                    ]
                                },
                                "annual_revenues": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/annual_revenues",
                                    "type": "integer",
                                    "description": "The average monthly revenue for the last 12 months",
                                    "examples": [
                                        20000000
                                    ]
                                },
                                "type": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/type",
                                    "type": "string",
                                    "description": "The company's business relations type",
                                    "examples": [
                                        "Fornecedora de Servi\u00e7os"
                                    ]
                                },
                                "number_of_partners": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/number_of_partners",
                                    "type": "integer",
                                    "description": "The company's number of partner",
                                    "default": 0,
                                    "examples": [
                                        2
                                    ]
                                },
                                "fiscal_situation": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/fiscal_situation",
                                    "type": "string",
                                    "description": "The company's fiscal situation",
                                    "examples": [
                                        "Normal"
                                    ]
                                },
                                "debt": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/debt",
                                    "type": "integer",
                                    "description": "The company's debt's",
                                    "examples": [
                                        500000
                                    ]
                                },
                                "income": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/income",
                                    "type": "integer",
                                    "description": "The company's income",
                                    "examples": [
                                        3000000
                                    ]
                                },
                                "net_worth": {
                                    "$id": "#/properties/entity/properties/applicant/properties/company/properties/net_worth",
                                    "type": "integer",
                                    "description": "The company's net worth",
                                    "examples": [
                                        20000000
                                    ]
                                }
                            },
                            "additionalProperties": true
                        },
                        "entity": {
                            "type": "object",
                            "required": [
                                "id"
                            ],
                            "properties": {
                                "id": {
                                    "description": "Entity id created",
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 4294967295
                                }
                            },
                            "additionalProperties": true
                        },
                        "account": {
                            "type": "object",
                            "title": "The applicant's account options",
                            "properties": {
                                "email": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "minLength": 0,
                                    "maxLength": 255
                                },
                                "exchange_mode": {
                                    "title": "Whether any foreign transaction should be charged by the exchange rate at the day it occurred or at the statement's closing date",
                                    "type": "string",
                                    "enum": [
                                        "SAME_DAY",
                                        "CLOSING"
                                    ],
                                    "minLength": 1,
                                    "maxLength": 8
                                },
                                "max_limit": {
                                    "description": "Account's max limit",
                                    "type": "number"
                                },
                                "limit": {
                                    "description": "Account's limit",
                                    "type": "number"
                                },
                                "id": {
                                    "description": "Created id",
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 4294967295
                                },
                                "currency_code": {
                                    "title": "Currency code related to the account.",
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 3,
                                    "examples": [
                                        "BRL"
                                    ]
                                },
                                "currency_id": {
                                    "title": "Currency ID related to the currency.",
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 4294967295
                                },
                                "total_overdraft_limit": {
                                    "title": "Account's total overdraft limit.",
                                    "type": "number"
                                },
                                "withdraw_credit_limit": {
                                    "title": "Account's total withdraw credit limit.",
                                    "type": "number"
                                },
                                "external_id": {
                                    "description": "A key defined by the client. It can have any format",
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "minLength": 0,
                                    "maxLength": 60,
                                    "examples": [
                                        "3d0ca315-aff9\u20134fc2-be61\u20133b76b9a2d798"
                                    ]
                                },
                                "account_status": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Current status of the account. Used for internal Pismo processing.",
                                    "examples": [
                                        "BLOCKED",
                                        "CANCELLED",
                                        "NORMAL",
                                        "STAND-BY"
                                    ]
                                },
                                "collection_status": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Financial status of the account. Used for internal Pismo processing.",
                                    "examples": [
                                        "NORMAL",
                                        "OVERDUE",
                                        "STATEMENT_AGREEMENT"
                                    ]
                                },
                                "creation_date": {
                                    "type": "string",
                                    "description": "Account creation timestamp.",
                                    "format": "date-time",
                                    "example": "2019-10-18T18:26:28.000Z"
                                }
                            }
                        },
                        "customer": {
                            "type": "object",
                            "title": "The Customer Schema",
                            "properties": {
                                "printed_name": {
                                    "description": "The name that must be printed in the card",
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 25
                                },
                                "nickname": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 60
                                },
                                "social_name": {
                                    "description": "Person social name",
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "minLength": 0,
                                    "maxLength": 60
                                },
                                "id": {
                                    "description": "Created id",
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 18446744073709551617
                                }
                            }
                        },
                        "additionals": {
                            "type": [
                                "array",
                                "null"
                            ]
                        }
                    }
                }
            },
            "additionalProperties": false
        },
        "operation": {
            "$id": "#/properties/operation",
            "type": "string",
            "title": "Migration Operation",
            "description": "If the account migration is a creation or update",
            "enum": [
                "CREATION",
                "UPDATE"
            ],
            "examples": [
                "UPDATE",
                "CREATION"
            ]
        }
    },
    "additionalProperties": false
}
{
    "operation": "UPDATE",
    "status": "SUCCESS",
    "code": "MIGR-0001",
    "message": "Account migrated with success",
    "migration": {
        "id": "migration-id",
        "version_date": "2021-10-19T11:25Z",
        "phase_id": "Rollout_Jan2022",
        "status": "MIGRATING"
    },
    "entity": {
        "account_id": 102186558,
        "customer_id": 102184218,
        "addresses": [
            {
                "id": 111
            },
            {
                "id": 222
            }
        ],
        "due_date": 25701,
        "metadata": {
            "migrationVersion": "MODEL_2"
        },
        "applicant": {
            "account": {
                "current_cycle": 1,
                "id": 181319449,
                "granted_limit": 1000.0,
                "exchange_mode": "SAME_DAY",
                "available_credit_limit": 10000000.35,
                "currency_id": 37,
                "max_limit": 1000.0,
                "create_statements": false,
                "limit": 1000.0,
                "currency_code": "BRL",
                "creation_date": "2024-04-01T00:00:00.000Z",
                "collection_status": "NORMAL",
                "account_status": "STAND-BY",
                "email": "[email protected]",
                "external_id": "732bd481-a072-4322-bdff-0719e6a2d3c1"
            },
            "personal": {
                "name": "John Doe",
                "email": "[email protected]",
                "assets": 125000.0,
                "gender": "M",
                "income": 5000.0,
                "net_worth": 200000.0,
                "statutory": true,
                "external_id": "7b7c20d3-3398-4ced-bb6a-48db39f3cb7d",
                "occupation": "Engineer",
                "city_of_birth": "Taubatexas",
                "fathers_name": "Mr. Doe",
                "mothers_name": "Mx. Doe",
                "nationality": "Brazilian",
                "document_type": "RG",
                "registration": {
                    "issuer": "Any",
                    "number": "111111111",
                    "issuing_date": "01/07/2021",
                    "issuing_state": "SP"
                },
                "state_of_birth": "SP",
                "marital_status": "SINGLE",
                "other_id_number": "12312312-55",
                "country_of_birth": "Brazil",
                "education_degree": "Engineer",
                "document_issued_at": "SP",
                "document_issued_by": "SSP",
                "document_issued_date": "05/07/2004",
                "printed_name": "John Doe"
            },
            "addresses": [
                {
                    "city": "S\u00e3o Paulo",
                    "date": "15/05/2013",
                    "state": "SP",
                    "number": "101",
                    "phones": [
                        {
                            "phone": "912345678",
                            "extension": "I",
                            "phone_type": "RESIDENTIAL",
                            "id": 138243412
                        }
                    ],
                    "address": "Avenida das Neves",
                    "country": "Brazil",
                    "zip_code": "111111111",
                    "address_type": "RESIDENTIAL",
                    "neighborhood": "Vila Nova",
                    "mailing_address": true,
                    "complementary_address": "Apartamento 500",
                    "id": 161234022
                },
                {
                    "city": "S\u00e3o Paulo",
                    "date": "15/05/2013",
                    "state": "SP",
                    "number": "100",
                    "phones": [
                        {
                            "phone": "912345678",
                            "extension": "I",
                            "phone_type": "RESIDENTIAL",
                            "id": 138243412
                        }
                    ],
                    "address": "Avenida das Neves",
                    "country": "Brazil",
                    "zip_code": "111111111",
                    "address_type": "RESIDENTIAL",
                    "neighborhood": "Vila Nova",
                    "mailing_address": true,
                    "complementary_address": "Apartamento 500",
                    "id": 161234023
                }
            ],
            "birth_date": "15/01/1975",
            "document_number": "37040806673",
            "additionals": [],
            "entity": {
                "statutory": true,
                "marital_status": "SINGLE",
                "id": 171565988,
                "document_number": "37040806673",
                "name": "John Doe",
                "gender": "M",
                "registration": "111111111",
                "entity_type": "PERSON",
                "mothers_name": "Mx. Doe",
                "birth_date": "1975-01-15T00:00:00Z",
                "entity_type_id": 1,
                "external_id": "7b7c20d3-3398-4ced-bb6a-48db39f3cb7d",
                "person": {
                    "nationality": "Brazilian",
                    "city_of_birth": "Taubatexas",
                    "state_of_birth": "SP",
                    "country_of_birth": "Brazil",
                    "document_type": "RG",
                    "other_id_number": "12312312-55",
                    "document_issued_by": "SSP",
                    "document_issued_at": "SP",
                    "document_issued_date": "2004-07-05",
                    "fathers_name": "Mr. Doe",
                    "occupation": "Engineer",
                    "assets": 125000.0,
                    "income": 5000.0,
                    "net_worth": 200000.0
                }
            },
            "customer": {
                "nickname": "John",
                "id": 181230139,
                "printed_name": "John Doe"
            }
        },
        "program_id": 14033,
        "program": {
            "id": 14033,
            "type": {
                "id": 1,
                "description": "CREDITO",
                "pci": true
            }
        }
    }
}