Skip to content

Update case

Request

Update a case associated with a borrower.

Security
oauth2(Required scopes: case:update) 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.

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

The case object unique identifier.

Bodyapplication/jsonrequired
Any of:

Keyword parameters unique to bankruptcies.

associationsArray of any or null

Associated objects of the case.

autoCreatedboolean

True if the case was created by some automated method—i.e., not by a human.

borrowerIdsArray of strings

List of borrower IDs associated with case

createReviewTaskbooleanwrite-only

If true create a task of type reviewAutoCreatedCase. Note: this field is NOT saved on the case resource; it just creates a task.

creationProcedurestring or null(CaseCreationProcedure)

The field indicating which procedure originally created this case.

This is used to mark when a system like, for instance, Compliance Guard automatically created a case, which allows a case to be differentiated from, for instance, manually created ones.

Enum:"automatedCollectionsDetection""automatedOfacDetection""automatedBankruptcyDetection""automatedDeceasedDetection""automatedScraDetection""supercasePopulationCommit"
customFieldsobject or null(customFields)

Custom fields are JSON key-value mappings. They are described by a customFieldSchemas property in the corresponding caseType. This means that arbitrary fields cannot be added to in-flight cases.

escalatedAtstring or null, (date-time)

Timestamp of when the case was escalated.

escalatedEmployeeIdstring or null

The ID of the Employee to which the case should be escalated.

escalatedTeamIdstring or null

The ID of the Team to which the case should be escalated.

escalationIsUrgentboolean or null

Boolean representing if this escalation is urgent. null if there is no escalation.

externalIdstring or null, <= 200 characters(externalId)

A lender's identifier for a resource.

After the resource is successfully created, a lender can use the Peach assigned ID OR the externalId identifiers to fetch the resource.

Fetching with externalId:

To fetch a resource using an externalId, you MUST use the prefix ext- in the URL.

For example, a loan with an external identifier of ABCDE would be referenced like /api/people/BO-FAKE-IDNT/loans/ext-ABCDE.

Creating with externalId:

To create a resource with an external identifer, you MUST NOT use the prefix ext-.

For example, if the external identifier should be ABCDE, then pass { externalId: "ABCDE", ... } in the request body.

lenderAckboolean or null

The lender has acknowledged the auto-generated case.

Default:false
matchDetailsobject(matchDetails)

The fields that are for what levels the person is matched to a monitoring hit (i.e. bankruptcy)

matchToDataSourceboolean or null

true if the person's details have been matched to an external data source.

metaDataobject or null(MetaData)

Store any type of key/value pairs in the form of a JSON dictionary.

namestring, [ 1 .. 100 ] characters

The case name. If a name is not provided, the case name is taken from the case type. For example, Identity Theft.

openedAtstring or null, (date-time)

Represents the original date-time a case was created, either within Peach or in an external system. For cases created directly in Peach CRM, openedAt is identical to createdAt, marking the initiation within Peach. Conversely, for cases migrated from external sources, openedAt reflects the time the case was originally established in the external system. The timestamp must include a timezone (or UTC offset).

outcomestring or null(outcome)

The outcome of a process, case, complaint, or dispute.

  • If found to be valid, set value to approved. This might impact debt collection efforts.
  • If dismissed, set value to denied. This will have no further impact on debt collection efforts.
  • If found to be a false positive, set value to falsePositive.
  • If completed without an outcome (or no outcome was needed), set to noOutcome.
Enum:"approved""denied""falsePositive""noOutcome"
owningEmployeeIdstring or null

The ID of the employee that owns this case. The case owner is the preferred employee to process tasks relating to this case.

Case ownership must be enabled via setting tasks.enableCaseOwnership to true in the company configuration.

peopleArray of strings

List of borrower IDs associated with case

statusstring(status)

The status of a process. This can be updated by a lender or by Peach.

initiated - The lender was notified by a borrower, but no documents or evidence have been provided yet. A grace period can be set.

processing - Peach matched the borrower to an external data source, or the lender started an internal process to handle a case, complaint or dispute.

completed - The lender completed an internal process, case, complaint or dispute. For example:

  • A borrower reported identity theft, and the lender reviewed documents and approved the claim.
  • A borrower requested a verification of debt in writing, and the lender sent an email with details.
  • Peach notified the lender about a new bankruptcy, and the lender reviewed the case and deemed it to be a false positive.

canceled - The lender couldn't complete an internal process and canceled it. This can happen for various reasons, such as lack of sufficient documentation.

reopened - The lender re-opened the case.

Enum:"initiated""processing""completed""canceled""reopened"
workflowIdstring or null

The ID of the workflow instance assigned to this case.

anticipatedCaseCompletionDatestring or null, (date)

In a bankruptcy chapter that leverages a reorganization and a new payment plan (i.e. Chapter 13), record when the last payment is expected to be received. This will trigger reminders to close out the case.

caseTypestring
Value:"bankruptcy"
courtCaseChapterstring

The bankruptcy chapter code. One of four common types we support at this time.

Enum:"chapter7""chapter11""chapter12""chapter13""unknown"
courtCaseClosedDatestring, (date)

Date the bankruptcy case closed, and the case is no longer on the court docket.

courtCaseDebtorDispositionstring

The outcome of the bankruptcy case decided by the court.

Enum:"dismissed""discharged""reinstated"
courtCaseDebtorDispositionDatestring, (date)

Date on which the disposition was decided by the court.

courtCaseFiledDatestring, (date)

The bankruptcy court filing date. This is also when 'automatic stay' is invoked and creditors must stop calling borrowers or making attempts to collect on his or her debt.

courtCaseLastStatusstring

The latest-reported bankruptcy case status, not case outcome, as it appears in the court.

Enum:"filed""dismissed""discharged""conversion""reinstated""closedFiledInError""closedTransferredOut""closedDischargeNA""closedUndeterminedReason"
courtCaseLastStatusUpdatedDatestring, (date)

Date on which the latest status of the bankruptcy case was updated.

courtCaseNumberstring

The unique identifier the courts use during the filing and review of the bankruptcy.

creditorClaimDeadlineDatestring or null, (date)

The date a lender has to file a claim to be eligible for any bankruptcy proceeds.

listedOutstandingDebtboolean

When a bankruptcy is filed, the borrower lists all the creditors/loans he/she knows to be outstanding. Sometimes he/she may forget to list a loan/creditor, in which case the creditor may want to file a claim to ensure that the loan is added to the list of accounts to include in the bankruptcy.

PUT
/people/{personId}/cases/{caseId}
curl -i -X PUT \
  'https://sandboxapi.peach.finance/api/people/{personId}/cases/{caseId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "anticipatedCaseCompletionDate": "2019-08-24",
    "caseType": "bankruptcy",
    "courtCaseChapter": "chapter7",
    "courtCaseClosedDate": "2019-08-24",
    "courtCaseDebtorDisposition": "dismissed",
    "courtCaseDebtorDispositionDate": "2019-08-24",
    "courtCaseFiledDate": "2019-08-24",
    "courtCaseLastStatus": "filed",
    "courtCaseLastStatusUpdatedDate": "2019-08-24",
    "courtCaseNumber": "string",
    "creditorClaimDeadlineDate": "2019-08-24",
    "listedOutstandingDebt": true,
    "associations": [
      {
        "objectId": "string",
        "objectType": "document"
      }
    ],
    "autoCreated": true,
    "borrowerIds": [
      "string"
    ],
    "createReviewTask": true,
    "creationProcedure": "automatedCollectionsDetection",
    "customFields": {},
    "escalatedAt": "2019-08-24T14:15:22Z",
    "escalatedEmployeeId": "string",
    "escalatedTeamId": "string",
    "escalationIsUrgent": true,
    "externalId": "string",
    "lenderAck": false,
    "matchDetails": {
      "addressMatch": "match",
      "dateOfBirthMatch": "match",
      "externalMatchCode": "string",
      "last4SSNMatch": "match",
      "matchDoneBy": "dataVendor",
      "nameMatch": "match",
      "ssnMatch": "match"
    },
    "matchToDataSource": true,
    "metaData": {},
    "name": "string",
    "openedAt": "2019-08-24T14:15:22Z",
    "outcome": "approved",
    "owningEmployeeId": "string",
    "people": [
      "string"
    ],
    "status": "initiated",
    "workflowId": "string"
  }'

Responses

Success

Bodyapplication/json
messagestring

Description of the server action or error.

statusinteger

HTTP status code.

databankruptcy (object) or ceaseCommunication (object) or deceased (object) or disputeOfDebt (object) or federalEmergency (object) or generic (object) or identityTheft (object) or legalAction (object) or militaryDuty (object) or debtValidation (object) or collection (object) or oFACSanctionedIndividual (object) or disputeOfPurchase (object) or creditBureauDispute (object)(case)
Any of:

Keyword parameters unique to bankruptcies.

Response
{ "message": "string", "status": 0, "data": { "createdAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "id": "string", "updatedAt": "2019-08-24T14:15:22Z", "associations": [ … ], "autoCreated": true, "borrowerIds": [ … ], "caseTypeMeta": { … }, "companyId": "string", "createdByUser": { … }, "creatingSupercaseId": "string", "creationProcedure": "automatedCollectionsDetection", "customFields": {}, "escalatedAt": "2019-08-24T14:15:22Z", "escalatedEmployeeId": "string", "escalatedTeamId": "string", "escalationIsUrgent": true, "externalId": "string", "lastSubresourceUpdatedAt": "2019-08-24T14:15:22Z", "lastSubresourceUpdatedBy": { … }, "lastViewedAt": "2019-08-24T14:15:22Z", "lastViewedBy": { … }, "lenderAck": false, "matchDetails": { … }, "matchToDataSource": true, "metaData": {}, "name": "string", "object": "case", "openedAt": "2019-08-24T14:15:22Z", "outcome": "approved", "outcomeUpdatedAt": "2019-08-24T14:15:22Z", "outcomeUpdatedBy": { … }, "owningEmployee": { … }, "owningEmployeeId": "string", "people": [ … ], "snoozedAt": "2019-08-24T14:15:22Z", "snoozedUntil": "2019-08-24", "status": "initiated", "statusUpdatedAt": "2019-08-24T14:15:22Z", "statusUpdatedBy": { … }, "workflowId": "string", "anticipatedCaseCompletionDate": "2019-08-24", "caseType": "bankruptcy", "courtCaseChapter": "chapter7", "courtCaseClosedDate": "2019-08-24", "courtCaseDebtorDisposition": "dismissed", "courtCaseDebtorDispositionDate": "2019-08-24", "courtCaseFiledDate": "2019-08-24", "courtCaseLastStatus": "filed", "courtCaseLastStatusUpdatedDate": "2019-08-24", "courtCaseNumber": "string", "creditorClaimDeadlineDate": "2019-08-24", "listedOutstandingDebt": true, "typeId": "string" } }