# Evaluate Promise to Pay Plan

Evaluates a `Promise to Pay Plan` and updates the `status` and `isOverdue` of the `Promise to Pay Plan`.

Endpoint: PUT /people/{personId}/loans/{loanId}/promise-to-pay-plans/{promiseToPayPlanId}/evaluate
Version: 2025-03-26
Security: oauth2, bearerAuth, apiKeyHeader

## Path parameters:

  - `personId` (string, required)
    A Borrower's unique identifier, tied to a person or a business. Can be Peach or a lender's external identifier.

  - `loanId` (string, required)
    The unique identifier of the Loan we wish to retrieve. Can be
Peach or lender's external identifier.

  - `promiseToPayPlanId` (string, required)
    The identifier of a promise to pay plan.

## Response 200 fields (application/json):

  - `message` (string)
    Description of the server action or error.

  - `status` (integer)
    HTTP status code.

  - `data` (object)

  - `data.createdAt` (string)

  - `data.deletedAt` (string)

  - `data.id` (string)
    The promise to pay plan ID.

  - `data.updatedAt` (string)

  - `data.cancellationReason` (string)
    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"

  - `data.caseId` (string)
    The ID of the case associated with the promise to pay plan.

  - `data.companyId` (string)
    The unique company identifier.

  - `data.endDate` (string)
    The end date of the promise to pay plan, equal to the `dueDate` of plan's last promise period.

  - `data.externalId` (string)
    A lender's identifier for a promise to pay plan.
After the object is successfully created, a lender can use ID or externalId identifiers to fetch the object.
To fetch the object using externalId you need to add `ext-` to the URL.
Note: Don't add ext- to the identifier value. For example: if the external identifier is `ABCDE`, then pass
externalId=ACBCE and NOT ext-ABCDE when creating the object.

  - `data.isOverdue` (boolean)
    The borrower has not met one or more promised amounts by the promised due date.

  - `data.loanId` (string)
    The unique loan identifier that the promise belongs to.

  - `data.object` (string)
    Enum: "promiseToPayPlan"

  - `data.reasonDetails` (string)
    Additional details about the reason for canceling the promise to pay plan.

  - `data.schedule` (array)
    Promise to pay plan periodId(s) and amount(s).

  - `data.schedule.amount` (number)
    Amount of the promise to pay period.

  - `data.schedule.dueDate` (string)
    The due date of the promised amount.

  - `data.schedule.object` (string)
    Enum: "promisePeriod"

  - `data.schedule.periodId` (string)
    Unique identifier of the period created for the promise to pay plan.

  - `data.schedule.startDate` (string)
    The period start date.

  - `data.startDate` (string)
    The start date of the promise to pay plan, equal to the `startDate` of plan's first promise period.

  - `data.status` (string)
    The status of the promise to pay plan.
`scheduled` - promise to pay has been created but has not yet started. Typically used when the lender wants to
start a promise as of a specific date. Communications will not be triggered and tasks will not be assigned to
agents for promise to pay plans in `scheduled` status. Peach's system will transition the status of the promise
to pay plan to `active` on the `startDate` unless the lender cancels the promise to pay beforehand.
`active` - promise to pay plan is in effect. To check if the borrower is on and behind the schedule, see the ` isOverdue` attribute.
`kept` - promise to pay final period end date has passed and the borrower has met the promised amount(s) by the
promise's final period end date. This status is a terminal state.
`broken` - promise to pay final period end date has passed and the borrower has not met the promised amount(s)
by the promise's final period end date. This status is a terminal state.
`canceled` - promise to pay plan was canceled. This status is a terminal state.
    Enum: "scheduled", "active", "kept", "broken", "canceled"

