按分期金额模拟
请求
ENDPOINT
/renegotiation/simulation方法
POSTRequest Body
{
"contract_number": "ABCD/1",
"amortization_type": "installment_payment",
"reference_date": "2022-07-20",
"installments": [
{
"installment_key": "ca5741c7-99a2-42e7-92a1-9328a36e4e88",
"paid_amount": 150
}
]
}
Body params
| 字段 | 类型 | 描述 | 字符 |
|---|---|---|---|
contract_number | string | 合同编号 | 10 |
amortization_type | string | 摊销类型 | 10 |
reference_date | date | 重组参考日期 | 10 |
installments | array of objects | 重组的分期列表 | Installments 对象 |
Installments 对象
| 字段 | 描述 |
|---|---|
installment_key * | string |
paid_amount * | float |
响应
状态
200Response Body
{
"contract_number": "ABCD/1",
"discount_percentage": 0.2,
"payment_amount": 240,
"reference_date": "2022-07-20",
"proposal_due_date": "2022-07-20",
"requester_name": "Requester",
"amortization_type": "installment_payment",
"requester_key": "bcc16a6d-ce21-4cd4-8d8c-d26f89ccc685",
"issuer_name": "issuer",
"issuer_document_number": "98765432100",
"affected_installments": [...],
"remaining_installments": [...]
}
状态
400Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Invalid request body.\", \"translation\": \"Corpo da requisição inválido.\", \"extra_fields\": {}, \"code\": \"LEG000069\"}"
}