LendWorksLendWorksDocs

Gateway

Lender submission intake — submit deals via API, email, or portal.

Gateway gives lenders a white-label API to receive deal submissions from brokers. Brokers integrate once and can submit deals to any Gateway-enabled lender.

Endpoints

MethodPathDescription
GET/v1/gateway/{slug}/statusCheck if a lender is accepting submissions
GET/v1/gateway/{slug}/productsList the lender's financing products
POST/v1/gateway/{slug}/submissionsSubmit a deal
GET/v1/gateway/{slug}/submissionsList submissions in the inbox
GET/v1/gateway/{slug}/submissions/{id}Get submission detail
PATCH/v1/gateway/{slug}/submissions/{id}Respond to a submission
GET/v1/gateway/{slug}/statsInbox statistics

SDK Usage

import { LW } from '@lendworks/lwjs'

const lw = new LW({ apiKey: 'lw_live_...' })

// Check if lender is accepting
const status = await lw.gateway.status('quickfund-capital')

// Submit a deal
const deal = await lw.gateway.submissions.create('quickfund-capital', {
  businessName: 'Acme Corp',
  amountRequested: 150000,
  monthlyRevenue: 85000,
  industry: 'Technology',
  state: 'CA',
  creditScore: 720,
  brokerName: 'Jane Doe',
  brokerEmail: 'jane@broker.com',
})

// List pending submissions
for await (const sub of lw.gateway.submissions.list('quickfund-capital')) {
  console.log(sub.businessName, sub.matchScore)
}

// Respond to a submission
await lw.gateway.submissions.respond('quickfund-capital', deal.id, {
  action: 'approve',
  offerTerms: { amount: 150000, rate: 0.08, termDays: 365 },
})

Submission Fields

When creating a submission, the following fields are accepted:

FieldTypeRequiredDescription
businessNamestringYesLegal business name
amountRequestednumberNoRequested funding amount
monthlyRevenuenumberNoMonthly gross revenue
annualRevenuenumberNoAnnual gross revenue
industrystringNoBusiness industry
statestringNo2-letter state code
citystringNoBusiness city
creditScorenumberNoOwner credit score (300-850)
timeInBusinessMonthsnumberNoMonths in business
useOfFundsstringNoHow funds will be used
productTypestringNoRequested product type
einstringNoEmployer Identification Number
ownerNamestringNoBusiness owner full name
brokerNamestringNoSubmitting broker name
brokerEmailstringNoBroker contact email
brokerPhonestringNoBroker phone number
brokerNotesstringNoNotes for the lender

Response Actions

When responding to a submission, use one of these actions:

  • approve — Accept the deal, optionally include offer terms
  • decline — Reject the deal
  • counter — Counter with different terms
  • request_docs — Request additional documentation

Authentication

Gateway endpoints require a platform API key with gateway access:

Authorization: Bearer lw_live_a1b2c3d4_...

The {slug} path parameter is the lender's directory slug (e.g., quickfund-capital). Find slugs via the TrustMark search endpoint.