This guide demonstrates how to manage borrower identities in the Peach platform by continuing with our borrower James Smith (created in the Quickstart guide). We'll explore adding and managing multiple forms of identification beyond his primary SSN.
Every borrower in Peach has:
- One primary identity (like James' SSN)
- Optional secondary identities (like driver's licenses or passports)
- An immutable link between primary identity and borrower profile
Before starting, ensure you have:
- A Peach account with API access
- Your API key
- A personId (borrower Id)
Note: The following examples use commonly used fields, but for full details, including additional data and parameters, refer to the API Reference.
Let's first check James' current identity information.
Retrieve James primary SSN identity:
GET /people/{personId}/identity
X-API-KEY: <YOUR-API-KEY>Response:
{
"status": 200,
"message": "Success",
"data": {
"id": "ID-ABCD-1234",
"object": "identity",
"identityType": "SSN",
"value": "111111111",
"valid": true,
"isPrimary": true,
"isArchived": false,
"createdAt": "2024-12-11T10:30:00Z",
"updatedAt": "2024-12-11T10:30:00Z"
}
}Let's check if James has any secondary identities:
GET /people/{personId}/identities
X-API-KEY: <YOUR-API-KEY>Currently, this will only return his SSN since we haven't added any secondary identities yet.
Now let's add James' driver's license as a secondary form of identification:
POST /people/{personId}/identities
X-API-KEY: <YOUR-API-KEY>
Content-Type: application/json
{
"identityType": "driversLicense",
"value": "TX123456789",
"valid": true,
"issueDate": "2023-01-15",
"expirationDate": "2027-01-15",
"issuingCountry": "US",
"isPrimary": false
}Response:
{
"status": 200,
"message": "Success",
"data": {
"id": "ID-EFGH-5678",
"object": "identity",
"identityType": "driversLicense",
"value": "TX123456789",
"valid": true,
"issueDate": "2023-01-15",
"expirationDate": "2027-01-15",
"issuingCountry": "US",
"isPrimary": false,
"isArchived": false,
"createdAt": "2024-12-11T11:15:00Z",
"updatedAt": "2024-12-11T11:15:00Z"
}
}Save the returned id (ID-EFGH-5678) - we'll need it for future operations for the personIdentityId path parameter.
Let's say James moved to a new address and got an updated driver's license number:
PUT /people/{personId}/identities/{personIdentityId}
X-API-KEY: <YOUR-API-KEY>
Content-Type: application/json
{
"value": "TX987654321",
"issueDate": "2024-12-11",
"expirationDate": "2028-12-11"
}Note that we can't change:
- The identity type (it remains a driver's license)
- The primary status (it stays secondary)
- The issuing country
When James's old driver's license is replaced, we should archive it:
DELETE /people/{personId}/identities/{personIdentityId}
X-API-KEY: <YOUR-API-KEY>When adding secondary identities, you can use these types:
SSN(Social Security Number - typically only used for primary identity)driversLicense(Driver's License)passport(Passport)alienRegistration(Alien Registration)customID(Custom identification type)
For custom IDs, always include a descriptive name:
{
"identityType": "customID",
"customIdentityTypeName": "StateID",
"value": "ST123456"
}Document Verification
- Verify identity documents before adding them to Peach
- Set
valid: trueonly after verification - Include accurate issue and expiration dates
Identity Management
- Archive outdated identities
- Track identity changes with case IDs
- Keep expiration dates current
Error Prevention
- Verify identity types match your documents
- Include all required fields for your chosen identity type
- Handle expired documents appropriately
- Payment Instruments — Attach bank accounts and cards to a borrower record.
- Borrowers overview — Index of borrower-related entities and operations.