This guide walks you through making your first API calls with Peach's platform, starting with creating a borrower and adding their contact details.
You can also do this through the sandbox Admin Portal. This quickstart covers the API approach.
To execute the API calls in this guide, you'll need:
- Sandbox Environment Access: Request access from Peach support if you haven't already
- Loan Type ID: Available during onboarding or from your Peach account manager
- API Testing Tool: We recommend Postman for testing:
- Download Postman from postman.com/downloads
- Import the Peach API collection using the <img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;"> button
- Fork the collection to create your own copy
First, we'll create a borrower record. A borrower can represent either a person or business in the Peach system.
POST https://sandboxapi.peach.finance/api/people
Content-Type: application/json
X-API-KEY: <YOUR-API-KEY>
{
"status": "active",
"externalId": "BORROWER-123", // Optional: your system's ID
"name": {
"firstName": "Elmer",
"middleName": "Fudd",
"lastName": "Jones"
},
"dateOfBirth": "1970-01-01",
"identity": {
"identityType": "SSN",
"value": "111111111"
}
}{
"id": "BO-1234-ABCD",
"status": "active",
"externalId": "BORROWER-123",
"name": {
"firstName": "Elmer",
"middleName": "Fudd",
"lastName": "Jones"
},
"dateOfBirth": "1970-01-01",
"identity": {
"identityType": "SSN",
"value": "111111111"
},
"createdAt": "2024-01-09T10:30:00Z"
}Verify: Confirm the response includes an id field and that status is active.
Save the id value from the response—we'll refer to it as PERSON_ID in the next steps.
After creating the borrower, let's add their home address as a contact method.
POST https://sandboxapi.peach.finance/api/people/{PERSON_ID}/contacts
Content-Type: application/json
X-API-KEY: <YOUR-API-KEY>
{
"contactType": "address",
"label": "home",
"affiliation": "self",
"status": "primary",
"address": {
"addressLine1": "1 Main St",
"addressLine2": "",
"city": "Houston",
"state": "TX",
"postalCode": "77002",
"country": "US"
}
}{
"id": "CT-456-DEF",
"contactType": "address",
"label": "home",
"affiliation": "self",
"status": "primary",
"address": {
"addressLine1": "1 Main St",
"addressLine2": "",
"city": "Houston",
"state": "TX",
"postalCode": "77002",
"country": "US"
},
"createdAt": "2024-01-09T10:35:00Z"
}Verify: Run GET /api/people/{PERSON_ID}/contacts to confirm the home address appears with status set to primary.
Now that you've created a borrower and added their contact information, you can:
- Add additional contact methods (email, phone)
- Create a user account for the borrower
- Create a loan for the borrower
- Enable autopay
For detailed information about these and other operations, see:
- Always store the Peach ID values returned in responses for future reference
- Use meaningful external IDs to help map Peach records to your system
- Test thoroughly in sandbox before moving to production
- Contact Peach support if you need help with any API operations