Skip to main content

Update Related Party Information for the Credit Contract

Request

ENDPOINT
/debt/DEBT-KEY/related_party/RELATED-PARTY-KEY
METHOD
PATCH

Pessoa Física

Request Body
{
"name": "Teste teste",
"email": "teste@teste.com",
"address": {
"street": "Rua teste",
"neighborhood": "Bairro teste",
"number": "123",
"postal_code": "09725540",
"city": "S\u00e3o Caetano do sul",
"state": "SP"
},
"phone": {
"country_code": "55",
"area_code": "11",
"number": "41234123"
},
"mother_name": "M\u00e3e Teste",
"document_identification_number": "1234567",
"nationality": "Brasileiro",
"marital_status": "single",
"profession": "Diretor Executivo",
"birth_date": "1999-01-01",
"document_identification_date": "2015-01-01",
"document_identification_type": "cnh",
"gender": "female"
}

Pessoa Jurídica

Request Body
{
"name": "Teste teste",
"email": "teste@teste.com",
"address": {
"street": "Rua teste",
"neighborhood": "Bairro teste",
"number": "123",
"postal_code": "09725540",
"city": "S\u00e3o Caetano do sul",
"state": "SP"
},
"phone": {
"country_code": "55",
"area_code": "11",
"number": "41234123"
},
"trading_name": "Nome fantasia teste",
"foundation_date": "2020-01-01",
"simples_nacional_participant": false
}

PATH PARAMS

FieldTypeDescription
debt_key *stringOperation debt_key.
related_party_key *stringKey of the related party to whom the documents will be sent.

Response

STATUS
201
Response Body
{
"status": "waiting_signature",
"data": {
"annual_cet": 26.0802,
"cet": 1.95,
"installments": [**],
"disbursed_issue_amount": 2209.06,
"contract_fees": [{
"fee_amount": 22.71,
"fee_type": "spread"
}],
"prefixed_interest_rate": {
"created_at": "2023-07-21T16:30:07",
"interest_base": "calendar_days_365",
"annual_rate": 0.23872053,
"monthly_rate": 0.018,
"daily_rate": 0.00058669
},
"contract_fee_amount": 22.71,
"requester_identifier_key": "af0e8a5d-650e-4348-b955-a424307c44df",
"iof_charge_method": "financed",
"external_contract_fee_amount": 0,
"borrower": {
"document_number": "04062377942",
"related_party_key": "c3b213ee-897a-4e42-9697-6c0b56fb0020",
"name": "TESTE TESTE"
},
"additional_iof": 8.629534,
"entry": null,
"external_contract_fees": [**],
"collaterals": [**],
"total_pre_fixed_amount": 1088.47822388,
"contract": {
"urls": [
"https://storage.googleapis.com/live-doc-api/documents/a0e3678a-9d48-47e8-8e00-ed9435713588/teste.pdf"
],
"number": "0008938245/TT"
},
"net_external_contract_fee_amount": 0,
"number_of_installments": 8,
"total_iof": 61.87,
"base_iof": 53.2421439,
"issue_amount": 2270.93,
"assignment_amount": 2293.64
},
"event_datetime": "2023-07-21 16:30:11",
"webhook_type": "debt",
"key": "01d62579-be1e-482f-b766-069786b44344"
}
STATUS
400
Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Collateral type social_security is not allowed for update related party.\", \"translation\": \"O tipo de garantia social_security n\u00e3o permite atualizar a parte relacionada.\", \"extra_fields\": {}, \"code\": \"COP000328\"}"
}