For the complete documentation index, see llms.txt. This page is also available as Markdown.

Prefill Lead Data

Prefilling Lead Data for Personal Loans (Web Wrapper)

Prefill any user data you already have to reduce what the user has to type in-flow. Prefilled data is grouped into typed information objects, each passed as its own prop on the SDK component (e.g. personalInformation, loanInformation, financialInformation).

Prefilling requires a bearerToken. Pass only the fields you have — omitted fields are collected from the user in-flow.

Example

<WebWrapper
  channel="your-channel"
  zone="your-zone"
  bearerToken="{your_token}"
  productTypes={[ApiModels.ProductType.Loan]}
  personalInformation={{
    firstName: 'Bob',
    lastName: 'Dylan',
    email: '[email protected]',
    dateOfBirth: '1990-01-01', // YYYY-MM-DD
    primaryPhone: '2325624852',
    address1: '1600 Pennsylvania Avenue',
    address2: 'Apt 2',
    city: 'Washington',
    state: 'DC',
    zipcode: '20500',
    ssn: '512-54-7862',
  }}
  loanInformation={{
    purpose: ApiModels.LoanPurpose.CreditCardRefi,
    loanAmount: 7500,
  }}
  mortgageInformation={{
    propertyStatus: ApiModels.PropertyStatus.OwnWithMortgage,
  }}
  creditInformation={{
    providedCreditRating: ApiModels.ProvidedCreditRating.Good,
  }}
  financialInformation={{
    employmentStatus: ApiModels.EmploymentStatus.EmployedFullTime,
    employmentPayFrequency: ApiModels.EmploymentPayFrequency.Biweekly,
    annualIncome: 20000,
    creditCardDebt: 5000,
    bankRoutingNumber: '123456789',
    bankAccountNumber: '55555555555',
  }}
  employmentInformation={{
    directDeposit: false,
  }}
  legalInformation={{
    consentsToSms: true,
  }}
  educationInformation={{
    educationLevel: ApiModels.EducationLevel.Associate,
  }}
  onExit={(evt) => console.log('onExit', evt)}
/>

Type Definitions

Every prop and field is optional — pass only what you have.

Enums / Accepted Values

Fields backed by an enum must use a valid value.

Use a member of the corresponding ApiModels enum (access via the ApiModels namespace, e.g. ApiModels.LoanPurpose.CreditCardRefi):

Last updated

Was this helpful?