{
  "info": {
    "name": "LoanData API",
    "description": "Secure REST endpoint for submitting loan data electronically. Set the `apiKey` and `baseUrl` collection variables, then run **Submit a single loan record**.\n\nFor full field reference see https://docs.rtresolutions.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_postman_id": "loan-data-api-collection"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.rtresolutions.com",
      "type": "string",
      "description": "Production base URL. RT Resolutions provides a separate dev/sandbox URL during onboarding."
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string",
      "description": "API key issued during onboarding. Treat as a secret."
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      { "key": "key",   "value": "x-api-key",   "type": "string" },
      { "key": "value", "value": "{{apiKey}}",  "type": "string" },
      { "key": "in",    "value": "header",      "type": "string" }
    ]
  },
  "item": [
    {
      "name": "Submit a single loan record",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/loans",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "loans"]
        },
        "body": {
          "mode": "raw",
          "options": { "raw": { "language": "json" } },
          "raw": "{\n  \"loanId\": \"0002034000\",\n  \"armLoan\": 0,\n  \"amTerm\": 360,\n  \"loanCloseDate\": \"2005-07-14\",\n  \"dueDate\": \"2006-06-01\",\n  \"firstDueDate\": \"2005-09-01\",\n  \"interestMethod\": 0,\n  \"interestRate\": 0.0525,\n  \"lcBal\": 2460.00,\n  \"legalFeeBal\": 0.00,\n  \"secondMtg\": 0,\n  \"loanType\": 0,\n  \"maturityDate\": \"2035-08-01\",\n  \"balloonLoan\": 0,\n  \"nsfFeeBal\": 0.00,\n  \"originalAmt\": 150000.00,\n  \"originalTerm\": 360,\n  \"othFeeBal\": 0.00,\n  \"piPmt\": 804.62,\n  \"pmtFrequency\": 0,\n  \"previousLnNum\": \"5000020621\",\n  \"principalBal\": 26580.83,\n  \"dayDue\": 1,\n  \"partialPaid\": 0.00,\n  \"intOnlyTerm\": 0,\n  \"deferredPrincipal\": 0.00,\n  \"deferredInterest\": 0.00,\n  \"balloonPmt\": 0.00,\n  \"leadBillDays\": 15,\n  \"addressLine1\": \"2301 WINDSONG TRL\",\n  \"city\": \"ROUND ROCK\",\n  \"state\": \"TX\",\n  \"zip\": \"78664-7030\",\n  \"occupancy\": 0,\n  \"propertyType\": \"SF\",\n  \"graceDays\": 15,\n  \"lcType\": 0,\n  \"lcPercent\": 0.05,\n  \"lcMaximum\": 100.00,\n  \"lcMinimum\": 10.00,\n  \"lcFixedAmt\": 0.00,\n  \"amtOFLast\": 0.00,\n  \"b1FirstMiddleName\": \"DONTAE B\",\n  \"b1LastName\": \"CAMPBELL\",\n  \"b1TaxIDNumber\": \"123-45-6789\",\n  \"b1Deceased\": false,\n  \"b1MiddleName\": \"B\",\n  \"b1NameSuffix\": 0,\n  \"b2FirstMiddleName\": \"ALI Z\",\n  \"b2LastName\": \"MITCHELL\",\n  \"b2Deceased\": false,\n  \"b2MiddleName\": \"Z\",\n  \"b2NameSuffix\": 0,\n  \"b1PhoneType\": 1,\n  \"b1PhoneNumber\": \"555-1234\",\n  \"b1AreaCode\": \"512\",\n  \"b1WorkPhone\": 0,\n  \"b2PhoneType\": 0,\n  \"b2PhoneNumber\": \"555-5678\",\n  \"b2WorkPhone\": 0,\n  \"accrualAmount\": 125.50,\n  \"thruDate\": \"2006-05-01\",\n  \"currentRate\": 0.0525,\n  \"b1EmailAddress\": \"dontae.campbell@example.com\",\n  \"b1EmailAddressVerified\": true,\n  \"b2EmailAddressVerified\": false,\n  \"clientBalance\": 26580.83,\n  \"interest\": 1500.00,\n  \"fees\": 0.00,\n  \"credits\": 0.00,\n  \"totalBalance\": 28080.83,\n  \"investorLoanID\": \"INV00001\"\n}"
        },
        "description": "Submits one loan record. The full request body is preserved verbatim for downstream processing.\n\n**Responses**\n- `201` Submission accepted\n- `400` Empty body or malformed JSON\n- `403` Missing or invalid `x-api-key`\n- `422` Validation failed\n- `429` Rate limit exceeded (50 req/sec, burst 100)\n- `503` Storage write failed; retry recommended"
      }
    }
  ]
}
