Skip to content

Get Promise to Pay Plans for a Loan

Request

Returns Promise to Pay Plans for a given Loan.

Security
oauth2(Required scopes: promise.to.pay.plan:list) 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.

Query
limitinteger, [ 1 .. 100 ]

The maximum count of results to retrieve.

Default:25
startingAfterstring

Return results starting after the provided object identifier.

statusArray of strings

Filter by status. Possible values are scheduled, active, kept, broken, canceled.

Items Enum:"scheduled""active""kept""broken""canceled"
isOverdueboolean

Filter by overdue status. Possible values are true, false.

Enum:truefalse
startDateAfterstring, (date)

Filter by start date after. Format: YYYY-MM-DD.

endDateBeforestring, (date)

Filter by end date before. Format: YYYY-MM-DD.

GET
/people/{personId}/loans/{loanId}/promise-to-pay-plans
curl -i -X GET \
  'https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/promise-to-pay-plans?limit=25&startingAfter=string&status=scheduled&isOverdue=true&startDateAfter=2019-08-24&endDateBefore=2019-08-24' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success

Bodyapplication/json
countintegerread-only

Number of items returned by the current request.

nextUrlstring or nullread-only

URL of the next set of results.

previousUrlstring or nullread-only

URL of the previous set of results.

statusinteger

HTTP status code.

totalintegerread-only

Total number of items in this result.

dataArray of objects(PromiseToPayPlan)
Response
{ "count": 0, "nextUrl": "string", "previousUrl": "string", "status": 0, "total": 0, "data": [ { … } ] }