API – Create Bankruptcy
General
You can create a bankruptcy filing on a loan either in the UI, or through the API. This article explains how to do so using the API.
How To
Request URL
To create a bankruptcy filing on a loan, you will need to send a PUT request to the URL of the desired loan. For example, create a bankruptcy filing on the loan with the id 515, the URL would be as follows:
https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(515)
Request Body
Below is an example of a payment request
{
"Bankruptcies": {
"results": [
{
"active": 1,
"automaticStayStatus": "",
"bankruptcyDistrict": null,
"caseNumber": "123",
"chapter": "loan.bankruptcyChapter.chapter7",
"city": null,
"closedReason": null,
"customerId": 281,
"dismissedDate": "YYYY-MM-DD",
"filingDate": "YYYY-MM-DD",
"id": 80,
"lienedPropertyStatus": "",
"loanId": 515,
"meetingOfCreditorsDate": "YYYY-MM-DD",
"noticeReceivedDate": "YYYY-MM-DD",
"objectionDeadlineDate": "YYYY-MM-DD",
"objectionStatus": "",
"petitionStatus": "loan.bankruptcyPetitionStatus.discharged",
"petitionType": "",
"processStatus": "",
"proofOfClaimDeadlineDate": "YYYY-MM-DD",
"proofOfClaimFiledDate": "YYYY-MM-DD",
"proofOfClaimFiledStatus": "",
"state": "geo.state.XX"
}
]
}
}
The following are included in the body
active | If the filing is active or not (1= active, 0 = not active). Note: Only 1 active bankruptcy is allowed per loan. |
automaticStayStatus | Status of the automatic stay if any loan.bankruptcyAutomaticStayStatus.courtApproved loan.bankruptcyAutomaticStatus.enforced loan.bankruptcyAutomaticStatyStatus.pending |
bankruptcyDistrict | The district the filing is in |
caseNumber | The number of the filing case |
chapter | The specific bankruptcy chapter loan.bankruptcyChapter.chapter7 loan.bankruptcyChapter.chapter9 loan.bankruptcyChapter.chapter11 loan.bankruptcyChapter.chapter12 loan.bankruptcyChapter.chapter13 |
city | The city of the filing |
closedReason | Reason the bankruptcy filing was/ is closed |
customerId | ID of the customer associated to the loan/filing |
dismissedDate | Date the filing has been dismissed |
filingDate | Date the bankruptcy is filed |
id | ID of the bankruptcy (needed for creating and updating existing filing) |
lienedPropertyStatus | Status of the liened property if any loan.bankruptcyLienedPropertyStatus.abandonmentByTrustee loan.bankruptcyLienedPropertyStatus.dischargedInBankruptcy loan.bankruptcyLienedPropertyStatus.reaffirmed |
loanId | ID of the associated loan |
meetingOfCreditorsDate | Date the creditors meet |
noticeReceivedDate | Date the bankruptcy notice is received |
objectionDeadlineDate | Due date of the objection |
objectionStatus | The status of the objection loan.bankruptcyObjectionStatus.claimFiled loan.bankruptcyObjectionStatus.dischargeFiled loan.bankruptcyObjectionStatus.dischargeOfDebtFiled loan.bankruptcyObjectionStatus.notAvailable |
petitionStatus | Status of the petition loan.bankruptcyPetitionStatus.discharged loan.bankruptcyPetitionStatus.dismissed loan.bankruptcyPetitionStatus.petitionFiled loan.bankruptcyPetitionStatus.planConfirmed loan.bankruptcyPetitionStatus.reaffirmed |
petitionType | Type of the petition loan.bankruptcyPetitionType.joint loan.bankruptcyPetitionType.single |
processStatus | Status of the bankruptcy process. loan.bankruptcyProcessStatus.claimFiled loan.bankruptcyProcessStatus.discharged loan.bankruptcyProcessStatus.dismissed loan.bankruptcyProcessStatus.noticeReceived loan.bankruptcyProcessStatus.petitionFiledVerified loan.bankruptcyProcessStatus.planConfirmed loan.bankruptcyProcessStatus.reaffirmed |
proofOfClaimeadlineDate | The deadline to file the Proof of Claim |
proofOfClaimFiledDate | The date the Proof of Claim is filed |
proofOfClaimFiledStatus | The status of the filed Proof of Claim loan.bankruptcyProofOfClaimFiledStatus.filed loan.bankruptcyProofOfClaimFiledStatus.pending |
state | State of the filing, this should be formatted as geo.state. {2-letter abbreviation} (e.g. geo.state.Ut) |