Renegotiation Creation
Request
ENDPOINT
/renegotiation/proposalMETHOD
POSTRequest Body
- Using installment keys
- Using number of installments
- Using final value
{
"debt_key": "1baea8a0-0fca-4f7c-8857-a227d4da72f8",
"payment_type": "bank_slip",
"amortization_type": "installment_payment",
"reference_date": "2022-07-20",
"proposal_due_date": "2022-07-20",
"discount_percentage": 0.2,
"discount_amount": 100,
"request_control_key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"installments": [
{
"installment_key": "ca5741c7-99a2-42e7-92a1-9328a36e4e88"
},
{
"installment_key": "0ff87136-b084-44fb-8fc2-d2e3beed483b"
},
{
"installment_key": "e4101c6a-51b3-435f-a2b7-4a65a005cc15"
}
]
}
{
"debt_key": "1baea8a0-0fca-4f7c-8857-a227d4da72f8",
"payment_type": "bank_slip",
"amortization_type": "first_installments",
"reference_date": "2022-07-20",
"proposal_due_date": "2022-07-20",
"discount_percentage": 0.2,
"discount_amount": 100,
"request_control_key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"number_of_installments": 4
}
{
"debt_key": "1baea8a0-0fca-4f7c-8857-a227d4da72f8",
"payment_type": "bank_slip",
"amortization_type": "first_installments",
"reference_date": "2022-07-20",
"proposal_due_date": "2022-07-20",
"discount_percentage": 0.2,
"discount_amount": 100,
"request_control_key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"payment_amount": 900
}
Warning
The discount_amount and discount_percentage may NOT be used simultaneously.
Body Params
| Field | Type | Description | Characters |
|---|---|---|---|
contract_number | string | Contract Number | 10 |
amortization_type | string | Amortization Type | [Enumerators](#enumerators amortization_type) |
reference_date | string | Renegotiation reference date | 10 |
proposal_due_date | string | Renegotiation proposal due date | 10 |
discount_percentage | string | Percentual discount added on installment face value | 10 |
payment_type | string | Payment type | Enumerators |
installments | array of objects | Renegotiated installments | Installments Object |
Installments Object
| Field | Type | Description | Characters |
|---|---|---|---|
installment_key | string | Renegotiated installment key | uuid key |
Enumerators amortization_type
| Field | Description |
|---|---|
| installment_payment | Installment payment enumerator |
Enumeradores payment_type
| Field | Description |
|---|---|
| banklisp | Bankslip Payment |
| manual | Manual payment |
| pix | Pix Payment |
Response
STATUS
200Response Body
{
"proposal_key": "bcc16a6d-ce21-4cd4-8d8c-d26f89ccc685",
"contract_number": "ABCD/1",
"proposal_status": "pending_payment",
"amortization_type": "installment_payment",
"discount_percentage": 0.2,
"payment_amount": 240,
"requester_name": "Requester",
"requester_key": "bcc16a6d-ce21-4cd4-8d8c-d26f89ccc685",
"issuer_name": "issuer",
"reference_date": "2022-07-20",
"proposal_due_date": "2022-07-20",
"issuer_document_number": "98765432100",
"payment_type": "bank_slip",
"payment": {
"digitable_line": "",
"qr_code_url": {},
"qr_code_key": "",
"bank_slip_key": "",
"paid_method_type": null
},
"affected_installments": [
{
"installment_key": "ca5741c7-99a2-42e7-92a1-9328a36e4e88",
"due_date": "2022-05-01",
"principal_amount": 100,
"interest_amount": 20,
"fine_amount": 5,
"total_amount": 125,
"present_amount": 100,
"paid_amount": 80
},
{
"installment_key": "6597a073-ea7a-4447-b250-f4d3f07b0b74",
"due_date": "2022-06-01",
"principal_amount": 100,
"interest_amount": 20,
"fine_amount": 5,
"total_amount": 125,
"present_amount": 100,
"paid_amount": 80
},
{
"installment_key": "3da60b56-17fb-4b32-a1e4-1f0c28d18900",
"due_date": "2022-07-01",
"principal_amount": 100,
"interest_amount": 20,
"fine_amount": 5,
"total_amount": 125,
"present_amount": 100,
"paid_amount": 80
}
],
"remaining_installments": [
{
"installment_key": "3da60b56-17fb-4b32-a1e4-1f0c28d18903",
"due_date": "2022-08-01",
"principal_amount": 100,
"interest_amount": 20,
"fine_amount": 5,
"total_amount": 125
},
{
"installment_key": "3da60b56-17fb-4b32-a1e4-1f0c28d18904",
"due_date": "2022-09-01",
"principal_amount": 100,
"interest_amount": 20,
"fine_amount": 5,
"total_amount": 125
},
{
"installment_key": "3da60b56-17fb-4b32-a1e4-1f0c28d18905",
"due_date": "2022-10-01",
"principal_amount": 100,
"interest_amount": 20,
"fine_amount": 5,
"total_amount": 125
}
]
}
STATUS
400Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Invalid request body.\", \"translation\": \"Corpo da requisição inválido.\", \"extra_fields\": {}, \"code\": \"LEG000069\"}"
}