API – Days Past Due Adjustments
General
This article is going to go over adding days past due in the API and removing days past due.
Adding DPD Adjustment
To adjust the days past due settings for a loan, send a PUT request to the desired loan. Below is a sample body of a request:
{
"id": 346,
"DPDAdjustments": {
"results": [
{
"date": "2015-11-15"
}
]
},
"__id": 346,
"__update": true
}
- id – The ID of the desired loan
- date – The date for the DPD adjustment (YYYY-MM-DD)
- __id – The ID of the target loan
- __update – Update a loan
Removing DPD Adjustment
{
"DPDAdjustments": {
"results": [
{
"__id": 17,
"__destroy": true
}
]
}
}
- __id – ID of the DPD adjustment to remove
- __destroy – Set to true to delete it