---
title: Total purchase amount
slug: apis/lending/purchasing-a-loan/total-purchase-amount
description: This endpoint estimates total loan purchase costs using purchase date, loan and lender details, optional account, and date filters to return one projected amount.
icon: {"apiMethod":"POST"}
docTags: 
createdAt: 2026-05-14T06:19:51.241Z
---

## Calculate expected total loan purchase

:::BlockQuote
**POST&#x20;**/selling/api/loans/purchase/total
:::

Calculate the expected total purchase amount **before&#x20;**&#x65;xecuting the purchase.

### Sample request

```json
{
  "date": "2025-01-01",
  "loanType": 1,
  "issuingBank": "CRB",
  "mplId": "YourMPLId",
  "investorId": "[YourInvestorId]",
  "dateFilter": {
    "dateType": "[FundedDate],
    "fromDate": "2026-05-14T06:40:03:854Z",
    "toDate": "2026-05-14T06:40:03:854Z"
  },
  "purchaseAccountNumber": "2392433617"
}
```

### Attributes description

| **Parameter**           | **Description**                                                                                              |
| ----------------------- | ------------------------------------------------------------------------------------------------------------ |
| `date`                  | Purchase date in YYYY-MM-DD format. Must be a Federal Reserve business day. (required).                      |
| `loanType`              | Loan type: 1 = HFS (Held for Sale), 2 = LTHFS (Long-Term Held for Sale), 3 = RET (Retained) (required).      |
| `issuingBank`           | Issuing bank identifier (e.g., "CRB") (required).                                                            |
| `mplId`                 | Your Marketplace Lender identifier (required).                                                               |
| `investorId`            | Your Investor identifier (required).                                                                         |
| `purchaseAccountNumber` | Specific purchase account to use. If omitted, the default account for your investor will be used (optional). |

### Sample response

```json
{
  "totalAmount": 1523456.78
}
```

