模拟重组方案
请求
ENDPOINT
/renegotiation/simulation方法
POSTRequest Body
使用不同 amortization_types 的 payload 示例
- 使用分期 key
- 使用分期数量
- 使用最终金额
{
"debt_key": "1baea8a0-0fca-4f7c-8857-a227d4da72f8",
"amortization_type": "installment_payment",
"reference_date": "2022-07-20",
"discount_amount": 100,
"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",
"amortization_type": "first_installments",
"reference_date": "2022-07-20",
"discount_percentage": 0.2,
"discount_amount": 100,
"number_of_installments": 4
}
{
"debt_key": "1baea8a0-0fca-4f7c-8857-a227d4da72f8",
"amortization_type": "first_installments",
"reference_date": "2022-07-20",
"discount_percentage": 0.2,
"discount_amount": 100,
"payment_amount": 900
}
注意
discount_amount 和 discount_percentage 字段不能在同一 payload 中同时发送。