Total purchase amount
Calculate expected total loan purchase
POST /selling/api/loans/purchase/total
Calculate the expected total purchase amount before executing the purchase.
Sample request
{
"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
{
"totalAmount": 1523456.78
}