Skip to content

Cancel Promise to Pay Plan

Request

Cancels a Promise to Pay Plan.

Security
oauth2(Required scopes: promise.to.pay.plan:update) or bearerAuth or apiKeyHeader
Path
personIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

A Borrower's unique identifier, tied to a person or a business. Can be Peach or a lender's external identifier.

loanIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

The unique identifier of the Loan we wish to retrieve. Can be Peach or lender's external identifier.

promiseToPayPlanIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

The identifier of a promise to pay plan.

Bodyapplication/json

Promise to pay plan cancel

cancellationCaseIdstring or null

The case to associate with this promise to pay plan cancellation.

cancellationReasonstringrequired

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"
reasonDetailsstring or null

Additional details about the reason for canceling the promise to pay plan.

PUT
/people/{personId}/loans/{loanId}/promise-to-pay-plans/{promiseToPayPlanId}/cancel
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"
  }'

Responses

Promise to pay plan

Bodyapplication/json
messagestring

Description of the server action or error.

statusinteger

HTTP status code.

dataobject(PromiseToPayPlan)
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" } }