Skip to content

Retrieve events

Request

Security
oauth2(Required scopes: event:read) or bearerAuth or apiKeyHeader
Query
limitinteger, [ 1 .. 1000 ]

The maximum count of events to retrieve.

Default:25
startingAfterstring

Return results starting after the provided object identifier.

endingBeforestring

Return results ending before the provided object identifier.

sortByArray of strings

The data attributes by which to sort the results.

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

Filter by a Borrower's unique identifier. Can be Peach or lender's external identifier.

periodIdstring

Use this to limit results to a specific periodId.

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

Filter by Loan's unique identifier. Can be Peach or lender's external identifier.

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

Filter by case's object unique identifier. Can be Peach or lender's external identifier.

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

Filter by transaction's unique identifier. Can be Peach or lender's external identifier.

createdAtFromstring, (date-time)

Get events created at or after the specified time.

createdAtTostring, (date-time)

Get events created before the specified time.

effectiveAtFromstring, (date-time)

Get events effective at or after the specified time.

effectiveAtTostring, (date-time)

Get events effective before the specified time.

accrualDatestring, (date)

Get events by matching accrual date. To be used for AccrueInterestEvent only.

includeDeletedboolean

Include events that have been deleted.

Default:true
eventsstring

A comma separated list of event names to return. Event name queries can end with a wildcard * character to specify all events starting with the given string. For example, case.* would give all case-related events.

excludeEventsstring

A comma separated list of event names to exclude from the response. Event name queries can end with a wildcard * character to specify all events starting with the given string. For example, case.* would exclude all case-related events.

webhookIdstring

The webhook ID to filter events by. This will only include events that were sent to this webhook subscription.

supercaseIdstring

The supercase ID to filter events by. Events that don't have this field will be filtered out.

skipTotalCountboolean

Skip computing the exact total count of matching events to improve performance. When true, total is returned as an arbitrary large value and must not be relied upon.

Default:false
creatingMessageIdsArray of strings

A comma separated list of creatingMessageIds to return.

GET
/events
curl -i -X GET \
  'https://sandboxapi.peach.finance/api/events?limit=25&startingAfter=string&endingBefore=string&sortBy=string&personId=string&periodId=string&loanId=string&caseId=string&transactionId=string&createdAtFrom=2019-08-24T14%3A15%3A22Z&createdAtTo=2019-08-24T14%3A15%3A22Z&effectiveAtFrom=2019-08-24T14%3A15%3A22Z&effectiveAtTo=2019-08-24T14%3A15%3A22Z&accrualDate=2019-08-24&includeDeleted=true&events=string&excludeEvents=string&webhookId=string&supercaseId=string&skipTotalCount=false&creatingMessageIds=string' \
  -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(EventPublic)
Response
{ "count": 0, "nextUrl": "string", "previousUrl": "string", "status": 0, "total": 0, "data": [ { … } ] }