Skip to content

Events

This object represents an event. Events are sent from Peach to you. Events can be related to any object in this API.

Event NameOccurs whenRelated Object
advance.statuschangedan advance status changesAdvance
advance.updatedan advance amount is updatedAdvance
autopay.schedule.createdan autopay schedule is set upAutopay
autopay.schedule.cancelan autopay schedule is canceledAutopay
autopay.schedule.changedan autopay schedule is changedAutopay
autopay.payment.rescheduledan autopay payment is rescheduledAutopay
autopay.payment.canceledan autopay payment is canceledAutopay
card.createda card is createdCard
card.replacement.requesteda card replacement is requestedCard
card.status.changeda card's status is changedCard
case.changeda case is created, updated, or deleted, with precise change informationCase
case.created[DEPRECATED - no longer fired, use case.changed instead] a case is createdCase
case.deleted[DEPRECATED - was never used, use case.changed instead] a case is deletedCase
case.updated[DEPRECATED - no longer fired, use case.changed instead] a case is updatedCase
case.association.addedan association is added to a caseCase
case.association.removedan association is removed from a caseCase
case.donotinteract.changeda DoNotInteract object is created, updated, or deleted, with precise change informationCase
case.donotinteract.created[DEPRECATED - use case.donotinteract.changed instead] a DoNotInteract object is createdCase
case.donotinteract.deleted[DEPRECATED - use case.donotinteract.changed instead] a DoNotInteract object is deletedCase
case.donotinteract.updated[DEPRECATED - use case.donotinteract.changed instead] a DoNotInteract object is updatedCase
case.donotinteract.expireda DoNotInteract object has expiredCase
case.escalation.changeda case escalation is created, updated, or deleted, with precise change informationCase
case.escalation.created[DEPRECATED - use case.escalation.changed instead] a case escalation is createdCase
case.escalation.canceled[DEPRECATED - use case.escalation.changed instead] a case escalation is canceledCase
contact.createda contact is createdContact
contact.deleteda contact is deletedContact
contact.updateda contact is updatedContact
communication.sendcommunication is attemptedInteraction
indexrate.createdindex rate is createdLoan Type
indexrate.updatedindex rate is updatedLoan Type
interaction.blockedinteraction is blocked for a borrowerInteraction
loan.balance.changeda loan balance changedLoan
loan.closeda loan is closedLoan
loan.createda loan is createdLoan
loan.credit.limit.changeda loan credit limit was changedLoan
draw.credit.limit.changeda draw credit limit was changedDraw
loan.creditreporting.createda loan is scheduled to start credit reportingCredit Reporting Status
loan.creditreporting.stoppeda loan is scheduled to stop credit reportingCredit Reporting Status
loan.currenta loan is current or became currentLoan
loan.duedate.defera single loan due date is deferredLoan
loan.fee.bookeda dynamic fee is appliedLoan
loan.fee.canceleda dynamic fee is canceledLoan
loan.fee.changeda dynamic fee is changedLoan
loan.interest.capitalizedinterest capitalization is triggered after a due dateLoan
loan.interestaccrued.minminimum interest charge is triggered on a drawDraw
loan.latefee.bookeda late fee is appliedLoan
loan.modificationfee.bookeda modification fee is appliedLoan
loan.migration.succeededa loan migration succeedsLoan
loan.migration.faileda loan migration failsLoan
loan.obligation.statuschangeda change in a loan's obligation status is recordedLoan
loan.overduea loan is overdueLoan
loan.overdue.updatea loan is overdueLoan
loan.ownerchangeda loan changes ownersLoan
loan.paymentplan.setupa loan payment plan is set upLoan
loan.period.starteda loan period has startedLoan
loan.promiseplan.createda promise to pay plan is createdPromise to Pay Plan
loan.promiseplan.statuschangeda promise to pay plan status changesPromise to Pay Plan
loan.promiseplan.due.todaya promise to pay plan is due todayPromise to Pay Plan
loan.promiseplan.overduea promise to pay plan becomes "overdue"Promise to Pay Plan
loan.promiseplan.currenta promise to pay plan changes from "overdue" to "current"Promise to Pay Plan
loan.promoprogram.createda promo program is createdLoan
loan.promoprogram.updateda promo program is updatedLoan
loan.rate.createdrate is createdLoan
loan.rate.updatedrate is updatedLoan
loan.refundedpayments on a loan are refundedLoan
loan.reimbursement.initiateda borrower reimbursement is initiatedLoan
loan.reimbursement.processeda borrower reimbursement is processedLoan
loan.schedule.defera loan schedule is deferredLoan
loan.changeloanterms.scra.updatea loan SCRA plan is createdLoan
loan.scraplan.changeda loan SCRA plan is changedLoan
loan.scraplan.deleteda loan SCRA plan is deletedLoan
loan.servicefee.bookeda service fee is bookedLoan
loan.membershipfee.bookeda membership fee is bookedLoan
loan.statuschangeda loan changes statusLoan
person.consent.updateda borrower updates their consentsBorrower
person.createda borrower is createdBorrower
person.monitoring.bankruptcy.startedbankruptcy and deceased monitoring begins for a borrowerBorrower
person.monitoring.scra.startedSCRA monitoring begins for a borrowerBorrower
payment.instrument.createda payment instrument is createdPayment Instrument
payment.instrument.updateda payment instrument is updatedPayment Instrument
payment.instrument.deactivateda payment instrument is deactivatedPayment Instrument
payment.appliedDEPRECATED used in place of payment.initiated for internal ACH prior to deprecation.Transaction
payment.chargebacka payment is charged backTransaction
payment.chargeback.reverseda payment is chargeback is reversedTransaction
payment.faileda payment failsTransaction
payment.initiateda payment is initiatedTransaction
payment.pendinga payment is pendingTransaction
payment.reverseda payment is reversedTransaction
payment.succeededa payment is succeededTransaction
payment.scheduleda payment is scheduledTransaction
payment.rescheduleda payment is rescheduledTransaction
payment.due.todayperiodically for external transactions with a status of "scheduled"Transaction
payment.hold.days.expireda transaction's hold days expiredTransaction
paymentplan.createda payment plan is createdPayment Plan
paymentplan.statuschangeda payment plan changes statusPayment Plan
purchase.authorizeda purchase is authorizedPurchase
purchase.settleda purchase is settledPurchase
purchase.applieda purchase is applied.Purchase
purchase.createda purchase is createdPurchase
purchase.changeda purchase is updatedPurchase
purchase.dispute.createda purchase dispute is createdPurchase Dispute
purchase.dispute.updateda purchase dispute is updatedPurchase Dispute
statement.createda statement is createdLoan
reconciliation.payment.faileda reconciliation payment failsTransaction
Operations

Retrieve events

Request

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

The maximum count of results 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": [ {} ] }