Get Loan Application Details
This endpoint retrieves the current loan lead and owner request details associated with a business customer's funding application. It returns a structured payload containing business information (item1) and the list of significant persons (owners/principals) (item2) that form the basis of a loan submission. Use this endpoint to inspect or confirm the data on file before submitting or updating a loan application.
Endpoint
GET /api/loans/details
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when a partner needs to retrieve the existing loan lead details for a business customer, such as before displaying a pre-filled loan application form or verifying that all required business and owner information is present prior to submission. This is typically called as a read step in a loan application workflow for business customers only — personal customers are not eligible for business funding.
Response
200 OK
The response is a tuple object with two top-level items:
Top-level fields
| Field | Type | Description |
|---|---|---|
item1 | object | Lead request object containing business and loan details |
item2 | object | Owner request object containing significant persons (principals/owners) |
item1 — Lead Request (youlend.client.model.leadrequest)
| Field | Type | Description |
|---|---|---|
countryISOCode | string | ISO 3166-1 alpha-2 country code for the business (e.g., "US") |
companyType | string | Legal entity type of the business (e.g., "LLC", "Corporation") |
registeredAddress | object | Registered address of the business (see registeredAddress fields below) |
thirdPartyCustomerId | string | Partner-assigned external customer identifier |
companyName | string | Legal name of the business |
loanCurrencyISOCode | string | ISO 4217 currency code for the requested loan (e.g., "USD") |
keyContactName | string | Full name of the primary business contact |
contactPhoneNumber | string | Phone number of the primary business contact |
contactEmailAddress | string | Email address of the primary business contact |
loanAmount | integer | Requested loan amount in the smallest currency unit (e.g., cents) |
signupClientIp | string | IP address of the client at the time of signup |
employerIdentificationNumber | string | Business EIN (sanitized in examples) |
companyWebsite | string | URL of the business website |
preApprovalId | string | Pre-approval identifier, if a pre-approval offer was issued |
ConfirmedCreditSearch | boolean | Whether the applicant has consented to a credit search |
item1.registeredAddress — Registered Address (youlend.client.model.registeredaddress)
| Field | Type | Description |
|---|---|---|
line1 | string | Primary street address line |
line2 | string | Secondary address line (suite, unit, etc.) |
city | string | City name |
region | string | State or region code (e.g., "TX") |
areaCode | string | Postal or ZIP code |
country | string | Country name or code |
item2 — Owner Request (youlend.client.model.ownerrequest)
| Field | Type | Description |
|---|---|---|
significantPersons | array of objects | List of principals, owners, or other significant persons associated with the business |
item2.significantPersons[] — Significant Person (youlend.client.model.significantperson)
| Field | Type | Description |
|---|---|---|
typeOfPerson | string | Role of the person (e.g., "Owner", "Director") |
address | object | Residential address of the significant person (same structure as registeredAddress) |
dateOfBirth | object | Date of birth broken into year, month, and day components |
dateOfBirth.year | integer | Four-digit birth year |
dateOfBirth.month | integer | Birth month (1–12) |
dateOfBirth.day | integer | Birth day (1–31) |
firstName | string | First name of the significant person |
surname | string | Last name of the significant person |
emailAddress | string | Email address of the significant person |
mobilePhoneNumber | string | Mobile phone number of the significant person |
socialSecurityNumber | string | SSN of the significant person (sanitized; never log or display) |
{
"item1": {
"countryISOCode": "US",
"companyType": "LLC",
"registeredAddress": {
"line1": "123 Commerce Blvd",
"line2": "Suite 400",
"city": "Austin",
"region": "TX",
"areaCode": "78701",
"country": "US"
},
"thirdPartyCustomerId": "partner-cust-00123",
"companyName": "Acme Business Solutions LLC",
"loanCurrencyISOCode": "USD",
"keyContactName": "Jane Smith",
"contactPhoneNumber": "+15125550100",
"contactEmailAddress": "[email protected]",
"loanAmount": 50000,
"signupClientIp": "203.0.113.45",
"employerIdentificationNumber": "XX-XXXXXXX",
"companyWebsite": "https://www.acmebusiness.com",
"preApprovalId": "preapproval-abc-789",
"ConfirmedCreditSearch": true
},
"item2": {
"significantPersons": [
{
"typeOfPerson": "Owner",
"address": {
"line1": "456 Residential St",
"line2": "",
"city": "Austin",
"region": "TX",
"areaCode": "78702",
"country": "US"
},
"dateOfBirth": {
"year": 1980,
"month": 6,
"day": 15
},
"firstName": "Jane",
"surname": "Smith",
"emailAddress": "[email protected]",
"mobilePhoneNumber": "+15125550101",
"socialSecurityNumber": "XXX-XX-XXXX"
}
]
}
}Error Codes
| Code | When it happens |
|---|---|
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions; caller is not authorized to access loan details for this business profile |
| 404 | No loan application details found for the given customer |
| 500 | Internal server error |
Common Mistakes
- Calling this endpoint for a personal customer — business funding is available to business customers only; personal customer profiles will not have loan details.
- Logging or displaying the
socialSecurityNumberfield in plain text — always treat this value as sensitive and mask or omit it in any UI or log output. - Treating
loanAmountas a decimal dollar value — the field is an integer representing the amount in the smallest currency unit (cents for USD). - Ignoring a
nullresponse forpreApprovalId— a null value means no pre-approval offer exists; do not pass a blank string to downstream endpoints expecting a valid pre-approval ID.
Related Endpoints
POST /api/auth/v2— Obtain a Bearer token required for all API callsPOST /api/loans/apply— Submit or update a business funding application using the details retrieved hereGET /api/loans/status— Check the current status of a submitted loan application
Example
curl -X GET https://api.banking.netevia.dev/api/loans/details \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"