Skip to content

Get all cases

Request

Get all cases. Returns only borrower-bound cases by default.

Security
oauth2(Required scopes: case:list) or bearerAuth or apiKeyHeader
Path
caseTypeIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

The case type unique identifier.

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.

offsetinteger, >= 0

Offset from the start of results.

sortByArray of strings

The data attributes by which to sort the results.

expandboolean

Replace component IDs with corresponding objects

Default:false
includeArray of strings, non-empty

A comma separated list of field names to include in the response.

associationsstring

Type of related object to return with the case data.

  • If null, no references to related objects are inserted into the response.
  • If all, insert an array of all relations
  • Otherwise insert array of single type.
Enum:"all""documents""cases""interactions""loans"
outcomestring
Enum:"all""approved""denied""falsePositive""noOutcome"
statusstring
Enum:"all""initiated""processing""completed""canceled""reopened"
statusesArray of strings
Items Enum:"all""initiated""processing""completed""canceled""reopened"
statusUpdatedBeforestring, (date-time)

Filter by cases which have a statusUpdatedAt date-time from before the given value

statusUpdatedAfterstring, (date-time)

Filter by cases which have a statusUpdatedAt date-time after the given value

caseNumberstring

Filter cases by external case number

caseTypestring

The name of the case type.

Enum:"generic""bankruptcy""ceaseCommunication""collection""deceased""disputeOfDebt""federalEmergency""identityTheft""legalAction""militaryDuty"
createdBeforestring, (date-time)

Filter by cases which have a createdAt date-time before the given value

createdAfterstring, (date-time)

Filter by cases which have a createdAt date-time after the given value

nupUpdatedNullboolean

Filters to cases that have been sent in the NUP file if true, otherwise filters them out if false. (Only applies to Bankruptcy cases)

snoozedUntilBeforestring, (date-time)

Filter only cases with a snooze (the snoozeUntil value) set to expire before the specified datetime. Note that a snoozed case is set to None automatically very shortly after it expires.

snoozedUntilAfterstring, (date-time)

Filter only cases with a snooze (the snoozeUntil value) set to expire after the specified datetime.

owningEmployeeIdstring

Filter by cases which have an owningEmployeeId equal to the given employee ID. If the employee ID is null, filter by cases which have no owning employee.

loanTypesArray of strings

Filter by a list of loan types. Only includes cases with loans of the specified loan types. Special value none means to include cases with no associated loans.

Items Enum:"none""lineOfCredit""installment"
interaction.statusArray of strings

Filter cases which have an associated interaction with the specified status.

interaction.channelArray of strings

Filter cases which have an associated interaction with the specified channel.

interaction.scheduledAtFromBeforestring, (date-time)

Filter cases which have an associated interaction with a scheduled start date-time before the specified value. (i.e., the specified value is less than or equal to scheduledAtFrom.)

interaction.scheduledAtFromAfterstring, (date-time)

Filter cases which have an associated interaction with a scheduled start date-time after the specified value. (i.e., the specified value is greater than or equal to scheduledAtFrom.)

interaction.scheduledAtToBeforestring, (date-time)

Filter cases which have an associated interaction with a scheduled end date-time before the specified value. (i.e., the specified value is less than or equal to scheduledAtTo.)

interaction.scheduledAtToAfterstring, (date-time)

Filter cases which have an associated interaction with a scheduled end date-time after the specified value. (i.e., the specified value is greater than or equal to scheduledAtTo.)

associatedDocumentIdstring

Filter by an associated document ID, public or external. Only includes cases that have been associated with the given document ID.

GET
/cases
curl -i -X GET \
  'https://sandboxapi.peach.finance/api/cases?limit=25&startingAfter=string&endingBefore=string&offset=0&sortBy=string&expand=false&include=string&associations=all&outcome=all&status=all&statuses=all&statusUpdatedBefore=2019-08-24T14%3A15%3A22Z&statusUpdatedAfter=2019-08-24T14%3A15%3A22Z&caseNumber=string&caseType=generic&createdBefore=2019-08-24T14%3A15%3A22Z&createdAfter=2019-08-24T14%3A15%3A22Z&nupUpdatedNull=true&snoozedUntilBefore=2019-08-24T14%3A15%3A22Z&snoozedUntilAfter=2019-08-24T14%3A15%3A22Z&owningEmployeeId=string&loanTypes=none&interaction.status=attempted&interaction.channel=voice&interaction.scheduledAtFromBefore=2019-08-24T14%3A15%3A22Z&interaction.scheduledAtFromAfter=2019-08-24T14%3A15%3A22Z&interaction.scheduledAtToBefore=2019-08-24T14%3A15%3A22Z&interaction.scheduledAtToAfter=2019-08-24T14%3A15%3A22Z&associatedDocumentId=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(case)
Response
{ "count": 0, "nextUrl": "string", "previousUrl": "string", "status": 0, "total": 0, "data": [ { … } ] }