Authorization: Bearer ********************{
"settlementId": "SETTLE_003",
"customerId": "CUSTOMER_001",
"amount": 2000,
"convertToDebt": true,
"debtType": "DEBT"
}curl --location --request POST '/api/trans/debt' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"settlementId": "SETTLE_003",
"customerId": "CUSTOMER_001",
"amount": 2000,
"convertToDebt": true,
"debtType": "DEBT"
}'{
"data": {
"id": "string",
"amount": 0,
"code": "string",
"comment": "string",
"customerId": "string",
"endAt": "2019-08-24T14:15:22.123Z",
"finished": true,
"finishedAt": "2019-08-24T14:15:22.123Z",
"groupBy": "string",
"relatedId": "string",
"serial": "string",
"signMobile": "string",
"signName": "string",
"startAt": "2019-08-24T14:15:22.123Z",
"sigma": "string",
"tenantId": "string",
"appId": "string",
"active": true,
"language": "string",
"metadata": "string",
"version": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"createdBy": "string",
"updatedAt": "2019-08-24T14:15:22.123Z",
"updatedBy": "string"
}
}