/
Cancel Promise to Pay Pla...
Cancels a Promise to Pay Plan.
Security
oauth2(Required scopes: promise.to.pay.plan:update) or bearerAuth or apiKeyHeader
Promise to pay plan cancel
The reason for canceling the promise to pay plan.
canceledByUser - Promise to pay plan was canceled by an agent or borrower. loanChargedOff - loan was charged off during the promise period. loanAccelerated - loan was accelerated during the promise period. otherPromisePlanOffered - another promise plan was offered. other - for any other reason requiring cancellation.
Enum:"canceledByUser""loanChargedOff""loanAccelerated""otherPromisePlanOffered""other"
PUT
- oauth2
- bearerAuth
- apiKeyHeader
curl -i -X PUT \
'https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/promise-to-pay-plans/{promiseToPayPlanId}/cancel' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"cancellationCaseId": "string",
"cancellationReason": "canceledByUser",
"reasonDetails": "string"
}'Response
{ "message": "string", "status": 0, "data": { "createdAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "id": "string", "updatedAt": "2019-08-24T14:15:22Z", "cancellationReason": "canceledByUser", "caseId": "string", "companyId": "string", "endDate": "2019-08-24", "externalId": "string", "isOverdue": true, "loanId": "string", "object": "promiseToPayPlan", "reasonDetails": "string", "schedule": [ … ], "startDate": "2019-08-24", "status": "scheduled" } }