Skip to content

createLead

Mutation

Submit a new lead with applicant information for processing and qualification.

This mutation initiates the lead processing pipeline including:

  • Deduplication check

  • TrustedForm verification (if certificate ID provided)

  • Monevo Credit pull and eligibility scoring

  • Bid calculation for qualified leads

  • Can also be configured to skip all validation

    createLead waits for workflow completion and returns the completed result. Processing behavior and CRM submission path are internally configured based on lead partner requirements.

Mutation Signature

mutation {
createLead(input: LeadInput!): CreateLeadResponse!
}

Example Request

mutation CreateLead($input: LeadInput!) {
createLead(input: $input) {
id
resultCode
note
partnerLeadId
bidValue
}
}

Example Variables:

{
"input": {
"firstName": "tony",
"lastName": "tiger2",
"email": "tony.tiger2@monevo.com",
"homePhone": "4028319225",
"cellPhone": "4028319225",
"address1": "PO BOX 1021",
"city": "SLATERSVILLE",
"state": "RI",
"zipCode": "02876",
"residenceTypeId": 2,
"monthsAtAddress": 12,
"monthlyRent": 50000,
"incomeSourceId": 1,
"payFrequencyId": 4,
"monthlyIncome": 12345,
"grossAnnualIncome": 1300000,
"employerName": "Test Employer",
"monthsAtEmployer": 36,
"loanAmount": 200000000,
"loanPurposeId": 1,
"estimatedDebt": 25000,
"termsConsent": true,
"marketingOptIn": true,
"siteURL": "app.monevo.us",
"clientIP": "000.000.000.000",
"coApplicant": false,
"leadId": "414141222",
"trustedformCertificateID": "981eef90ec965dd5a139170a4ad935b8b057baae"
}
}

Example Response

{
"data": {
"createLead": {
"id": "d5faed99-51c3-4181-959e-5557d1eef042",
"resultCode": 1018,
"note": "Lead processing complete",
"partnerLeadId": "414141222",
"bidValue": null
}
}
}

Arguments

ArgumentTypeDescription
inputLeadInput!Input for creating a new lead with applicant information. All required fields must be provided for successful lead submission.

Input Types

LeadInput

Input for creating a new lead with applicant information. All required fields must be provided for successful lead submission.

Required Fields:

FieldTypeDescription
firstNameString!Applicant’s legal first name as it appears on official documents.
lastNameString!Applicant’s legal last name as it appears on official documents.
emailString!Applicant’s email address for communication.
homePhoneString!Applicant’s primary home phone number.
FORMAT: 10-digit number without formatting (e.g., 9496779225). Avoid reserved exchanges like 555 or 123.
address1String!Primary street address line 1.
cityString!City of residence.
stateString!Two-letter US state code.
FORMAT: Two uppercase letters (e.g., CA, TX, NY)
zipCodeString!Five-digit ZIP code.
FORMAT: 5 digits (e.g., 90210)

Optional Fields:

FieldTypeDescription
dateOfBirthStringApplicant’s date of birth.
FORMAT: YYYY-MM-DD (e.g., 1990-01-15)
NOTE: Optional — Monevo no longer requires this field
cellPhoneStringApplicant’s cell∕mobile phone number.
FORMAT: 10-digit number without formatting
workPhoneStringApplicant’s work phone number.
FORMAT: 10-digit number without formatting
address2StringStreet address line 2 (apartment, suite, unit, building, floor, etc.)
residenceTypeIdIntResidence type identifier indicating ownership status.
• 1: Home Owner
• 2: Rent
• 3: Living with Family
• 4: Other
monthsAtAddressIntNumber of months applicant has lived at current address.
monthlyRentIntMonthly rent or mortgage payment amount in whole dollars.
socialSecurityNumberStringApplicant’s Social Security Number for credit verification.
FORMAT: 9 digits without dashes (e.g., 123456789)
NOTE: Required for credit pull and qualification
AUTO-SANITIZED: Non-digit characters (dashes, spaces) are automatically removed
incomeSourceIdIntIncome source identifier.
• 1: Employed
• 2: Social Security
• 3: Pension
• 4: Disability
• 5: Self Employed
• 6: Student
• 7: Unemployed
payFrequencyIdIntPay frequency identifier indicating how often applicant is paid.
• 1: Weekly
• 2: Every two weeks
• 3: Twice a month
• 4: Monthly
• 5: 4 Weekly
• 6: Other
monthlyIncomeIntMonthly income amount in whole dollars before taxes.
grossAnnualIncomeIntGross annual income in whole dollars before taxes.
employerNameStringCurrent employer name.
monthsAtEmployerIntNumber of months employed at current employer.
loanAmountIntRequested loan amount in whole dollars.
estimatedDebtIntPartner-supplied estimated debt amount in whole dollars. Used as a fallback when the system cannot determine debt from credit pull or product codes.
unsecuredDebtIntPartner-supplied unsecured debt amount in whole dollars.
maxUnsecuredDebtIntPartner-supplied maximum unsecured debt amount in whole dollars.
loanPurposeIdIntLoan purpose identifier.
• 1: Debt Consolidation
• 2: Home improvement ∕ Pool ∕ Solar
• 3: Vacation ∕ Travel
• 4: New auto purchase
• 5: Large Purchase
• 6: Pay off credit cards
• 7: Student Loan Refinancing
• 8: Education
• 9: Special Occasion
• 10: Cosmetic Procedures
• 11: Moving and Relocation
• 12: Household Expenses
• 13: Medical∕Dental…
termsConsentBooleanWhether the applicant has consented to terms and conditions. Must be true for lead to be processed.
DEFAULT: false if not provided
marketingOptInBooleanWhether the applicant has opted in to receive marketing communications.
DEFAULT: false if not provided
affiliateAppIDStringPartner’s unique affiliate application ID for tracking and attribution.
FORMAT: Provided during partner onboarding
siteURLStringFull URL of the website where the lead was submitted. Used for compliance and tracking purposes.
siteIPStringIP address of the server hosting the lead submission form.
clientIPStringIP address of the applicant’s device at time of submission. Used for fraud detection and compliance.
refStringPartner’s custom reference identifier for internal tracking.
coApplicantBooleanWhether the application includes a co-applicant. If true, co-applicant fields should be populated.
DEFAULT: false if not provided
coApplicantFirstNameStringCo-applicant’s legal first name. if coApplicant is true
coApplicantLastNameStringCo-applicant’s legal last name. if coApplicant is true
coApplicantDateOfBirthStringCo-applicant’s date of birth.
FORMAT: YYYY-MM-DD (e.g., 1990-01-15)
coApplicantAnnualIncomeIntCo-applicant’s gross annual income in whole dollars.
coApplicantAddress1StringCo-applicant’s primary street address line 1.
coApplicantAddress2StringCo-applicant’s street address line 2.
coApplicantCityStringCo-applicant’s city of residence.
coApplicantStateStringCo-applicant’s two-letter US state code.
coApplicantZipCodeStringCo-applicant’s five-digit ZIP code.
leadIdStringPartner’s external lead ID for correlation between systems. This value is returned as partnerLeadId in responses.
trustedformCertificateIDStringTrustedForm certificate ID for TCPA consent verification. Obtained from TrustedForm JavaScript snippet on the lead form.
FORMAT: TrustedForm certificate UUID

Response Type

Returns: CreateLeadResponse!

CreateLeadResponse

Response returned from the createLead mutation. Contains the lead ID, completed workflow result code, and processing notes.

FieldTypeDescription
idID!Unique internal lead identifier. Use this ID for submitLead or status lookup.
resultCodeInt!Completed workflow result code returned from createLead.
noteString!Human-readable note about the processing result. May contain additional context about the result code.
partnerLeadIdStringPartner’s external lead ID (from leadId input field) echoed back for correlation.
bidValueStringCalculated bid value for qualified leads.
• null: Lead did not qualify
• “No Bid Available”: Qualified but no bid settings configured
• “$X.XX”: Actual bid amount (e.g., “$25.00”)