Skip to content
Last updated

Credit Agency Configuration

Overview

Each credit bureau connection requires a Credit Agency record in Peach. This configuration controls how files are generated, named, and transmitted.

Credit Agency Object

Create a credit agency using the API endpoint POST /companies/{companyId}/credit-agencies:

{
  "agencyName": "equifax",
  "country": "US",
  "dataFormat": "metro2",
  "nameFilePerAgencyConvention": true,
  "fileNamePrefix": "MYPREFIX",
  "uploadFrequency": "monthly",
  "specificDays": [1],
  "useLoanExternalId": true,
  "sftpHostname": "sftp.equifax.com:22",
  "sftpUsername": "yourcompany",
  "sftpPassword": "encrypted_password",
  "sftpCdDir": "/inbound",
  "encryptionMethod": "GPG",
  "publicKey": "-----BEGIN PGP PUBLIC KEY BLOCK-----...",
  "enrollExistingLoans": false,
  "copyKeysFrom": "CA-XXXX-XXXX"
}

Field Reference

FieldTypeRequiredDescription
agencyNamestringYesCredit bureau identifier (see Agency Name Values below)
countrystringYesCountry code (e.g., US)
dataFormatstringYesData format (metro2)
nameFilePerAgencyConventionbooleanNoUse bureau-specific file naming convention
fileNamePrefixstringConditionalFile name prefix (required for Experian when nameFilePerAgencyConvention=true)
uploadFrequencystringYesUpload frequency (monthly, weekly, etc.)
specificDaysarrayNoSpecific days of month for upload (e.g., [1] for 1st of month)
useLoanExternalIdbooleanNoUse loan's externalId as Consumer Account Number
sftpHostnamestringConditionalSFTP server hostname with optional port
sftpUsernamestringConditionalSFTP username
sftpPasswordstringConditionalSFTP password (for password authentication)
sftpAccessMethodstringNoAuthentication method: usernamePassword or keys (defaults to usernamePassword)
sftpCdDirstringNoDirectory to navigate to before upload
encryptionMethodstringNoEncryption method (GPG)
publicKeystringConditionalPGP public key for file encryption
enrollExistingLoansbooleanNoAutomatically enroll existing active loans for credit reporting with this agency (default: false)
copyKeysFromstringNoCredit Agency ID to copy SSH keys from (e.g., CA-XXXX-XXXX)

Agency Name Values

ValueBureau
equifaxEquifax
experianExperian
transUnionTransUnion
innovisInnovis

SFTP Configuration

FieldDescriptionRequired
sftpHostnameSFTP server hostname (with optional port)For lender-upload
sftpUsernameSFTP usernameFor lender-upload
sftpPasswordSFTP password (encrypted)For password auth
sftpAccessMethodusernamePassword or keys (defaults to usernamePassword)No
sftpCdDirDirectory to change to before uploadOptional
sftpSSHPeachPublicKeyPeach's public key (generated)For key auth
sftpSSHPeachPrivateKeyPeach's private key (generated)For key auth
copyKeysFromCredit Agency ID to copy SSH keys fromOptional

Key-Based Authentication: When sftpAccessMethod is set to keys, Peach generates an SSH key pair. The copyKeysFrom field allows you to reuse keys from an existing Credit Agency configuration instead of generating new ones.

Encryption Configuration

FieldDescription
encryptionMethodCurrently only GPG supported
publicKeyPGP public key for file encryption

When encryption is enabled:

  1. Metro 2 file is generated in plain text
  2. File is encrypted using the provided public key
  3. Encrypted file is uploaded to SFTP

File Naming Options

Standard Naming (nameFilePerAgencyConvention: false):

{COMPANY_LEGAL_NAME}{COMPANY_ID}{AGENCY_NAME}{YYYYMMDD}.txt

Example: ACMELENDINGLLCCPYL69X5Z1EQUIFAX20260101.txt

Equifax Convention (nameFilePerAgencyConvention: true, Equifax): Same as standard naming.

Experian Convention (nameFilePerAgencyConvention: true, Experian):

{FILE_NAME_PREFIX}.{MMDDYYYY}.txt

Example: MKFRT.01012026.txt

Requires fileNamePrefix to be set.

TransUnion Convention (nameFilePerAgencyConvention: true, TransUnion): Same as standard naming.

Account Identifier Configuration

SettingBehavior
useLoanExternalId: trueUses loan's externalId as Consumer Account Number
useLoanExternalId: falseUses loan's Peach Public ID (e.g., LN-JFU3-ER3S)

If useLoanExternalId is true but the loan has no externalId, falls back to Public ID.

Loan Enrollment Options

SettingBehavior
enrollExistingLoans: trueAutomatically enrolls all existing active loans for credit reporting with this agency when the agency is created
enrollExistingLoans: falseOnly new loans activated after agency creation will be enrolled (default)

Note: The enrollExistingLoans flag is only evaluated at agency creation time. It does not retroactively enroll loans if set to true on an update.