# Create collection agency

Creates a new collection agency. This is useful when a lender assigns a charged off loan to a third party debt collection agency.
The Peach Borrower Portal will display the collection agency information to the borrower. The lender can continue to use Peach as the system
of record / ledger for charged off loans. The lender can post any payments collected by the collection agency as `isExternal=true` transaction.
The Peach system will waterfall the payments and update loan balances.

Endpoint: POST /companies/{companyId}/collection-agencies
Version: 2025-03-26
Security: oauth2, bearerAuth, apiKeyHeader

## Path parameters:

  - `companyId` (string, required)
    The unique company identifier.

## Response 200 fields (application/json):

  - `message` (string)
    Description of the server action or error.

  - `status` (integer)
    HTTP status code.

  - `data` (object)

  - `data.isArchived` (boolean)
    Set to true if the debt collection agency no longer active. Loans that were assigned to that agency will keep the reference, but new loans cannot be assigned.

