Skip to content

Add association

Request

Associate an existing case, interaction, loan, or file objects to the case. This way you can create comprehensive view of the case.

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

Peach unique identifier for the associated object.

objectTypestring

Types of objects that can be associated with the case.

Enum:"document""interaction""loan""case""transaction"
relationstring

This is only applicable to objectType=case associations.

The way to read the relation is: caseId relation objectId. For example:

  • There is an existing caseId=111 caseType=identityTheft.
  • There is an existing caseId=222 caseType=debtValidation.
  • The identity theft case is blocking verification of debt. To represent that relation:
  • caseId=111 in path parameter.
  • relation=blocks in body.
  • objectId=222 in body.
Default:"related"
Enum:"related""causes""blocks""duplicate"
POST
/people/{personId}/cases/{caseId}
curl -i -X POST \
  'https://sandboxapi.peach.finance/api/people/{personId}/cases/{caseId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "objectId": "string",
    "objectType": "document",
    "relation": "related"
  }'

Responses

Success no content