Skip to main content

Creating Lead

Submit a new business funding lead into the SBG Funding system using the following structure.

Endpoint

Staging

POST https://missioncapital--full.sandbox.my.salesforce.com/services/apexrest/creditapp

Production

POST https://missioncapital.my.salesforce.com/services/apexrest/creditapp

Headers

HeaderValue
AuthorizationBearer YOUR_ACCESS_TOKEN
Content-Typeapplication/json
PartnerIdYOUR_PARTNER_ID
PartnerNameYOUR_PARTNER_NAME

Request Body Parameters

FieldTypeDescriptionRequired
IDstringUnique identifier for the lead/applicationYes
OutcomeIDstringOptional outcome identifierNo
CampaignIDstringOptional campaign identifierNo
AnnualRevenuenumber (integer)Annual revenue in USDYes
BirthDaystringContact's date of birth (e.g., YYYY-MM-DD)No
BusinessAddressobjectBusiness address detailsYes
BusinessTypestringType of business (e.g., "llc")Yes
CompanystringBusiness nameYes
ContactEmailstringPrimary contact emailYes
ContactFirstNamestringContact's first nameYes
ContactLastNamestringContact's last nameYes
ContactPhonestringContact's phone numberYes
CreditScorestringCredit score range or valueYes
FoundedMonthstringBusiness founding monthYes
FoundedYearstringBusiness founding yearYes
HomeAddressobjectContact's home address detailsYes
IndustrystringBusiness industry. See 'Allowed Industry Values' below.Yes
IpstringIP address of the applicantNo
LoanAmountnumber (integer)Requested loan amount in USDYes
LoanReasonstringPurpose of the loanYes
OtherManagersbooleanIndicates if there are other managersNo
OwnershipPctnumber (integer)Ownership percentageNo
SignatureIpstringIP address at the time of signatureNo
SignatureTimestampstringTimestamp of signature (e.g., ISO 8601)No
SignatureNamestringName used for signatureNo
SsnstringSocial Security NumberNo
TaxIdstringBusiness Tax ID (EIN)No
TimeInBusinessMonthsnumber (integer)Time in business (months)Yes
CreatedAtstringLead creation timestamp (e.g., ISO 8601)Yes
IndustryNaicsstringNAICS industry codeNo
LeadSourcestringSource of the lead (e.g., Partner Name)Yes
InceptionDatestringBusiness inception date (e.g., YYYY-MM-DD)No
BusinessAgestringAge of the businessYes
NumberOfOffersstringNumber of offers received by applicantNo
BusinessTypeByIndustrystringBusiness type categorized by industryNo
NumberOfEmployeesnumber (integer)Number of employeesNo
Filesarray of stringsList of URLs or identifiers for attached filesNo

BusinessAddress Object

FieldTypeDescriptionRequired
AddressstringStreet addressYes
CitystringCity nameYes
StatestringTwo-letter state codeYes
ZipstringZIP codeYes

Allowed Industry Values

The Industry field must be one of the following values:

  • Agriculture
  • Apparel
  • Auto Parts/Tires
  • Auto Repair
  • Auto Sales
  • Banking
  • Beauty/Cosmetic
  • Biotechnology
  • Breweries
  • Care Providers
  • Car Wash
  • Chemicals
  • Communications
  • Construction
  • Construction - Commercial
  • Consulting
  • Convenient Stores
  • CPA/Accounting
  • Dentist
  • Doctors Office
  • Education
  • Electrician
  • Electronics
  • Energy
  • Engineering
  • Entertainment
  • Environmental
  • Finance
  • Fitness/Sport
  • Flooring
  • Food & Beverage
  • Government
  • Grocery
  • Healthcare
  • Hospitality
  • Hotels
  • HVAC
  • Insurance
  • Landscaping
  • Laundry Service
  • Law Firm
  • Machinery
  • Manufacturing
  • Media
  • Mental Health
  • Moving
  • Not For Profit
  • Oil & Gas
  • Pest
  • Pet Care
  • Pharmacy
  • Property Management
  • Real Estate
  • Recreation
  • Retail
  • Roofing
  • Security
  • Services
  • Shipping
  • Specialty Trade
  • Technology
  • Telecommunications
  • Towing
  • Transportation
  • Utilities
  • Veterinary
  • Wholesale

Sample Request

{
"ID": "partner-lead-12345",
"AnnualRevenue": 650000,
"LeadSource": "Your Partner Name",
"BusinessType": "Sole Proprietorship",
"Company": "Jane Doe Consulting",
"ContactEmail": "jane.doe@example.com",
"ContactFirstName": "Jane",
"ContactLastName": "Doe",
"ContactPhone": "555-123-4567",
"CreditScore": "Good (670-719)",
"FoundedMonth": "March",
"FoundedYear": "2020",
"HomeAddress": {
"Address": "123 Main St",
"City": "Anytown",
"State": "CA",
"Zip": "90210"
},
"BusinessAddress": {
"Address": "456 Business Ave",
"City": "Anytown",
"State": "CA",
"Zip": "90211"
},
"Industry": "Consulting",
"LoanAmount": 75000,
"LoanReason": "Working Capital",
"TimeInBusinessMonths": 48,
"CreatedAt": "2024-04-15T10:00:00Z",
"BusinessAge": "3-5 years",
"OwnershipPct": 100,
"NumberOfEmployees": 1
}

Sample Response

{
"IsSuccessful": true,
"ResponseText": "Lead record has been successfully created",
"ApplicationID": "00QEa00000ItVf8MAF", // Salesforce Lead ID
"ReferenceID": "partner-lead-12345", // The ID you submitted
"pURL": "https://sbgfunding.com/apply-now/?leadid=00QEa00000ItVf8"
}

Response Fields

FieldTypeDescription
IsSuccessfulbooleanWhether the request was successful
ResponseTextstringHuman-readable response message
ApplicationIDstringUnique Salesforce identifier for the created lead
ReferenceIDstringYour original ID reference
pURLstringApplication URL for tracking

Error Responses

When an error occurs, the API will return a JSON response with an error message:

{
"IsSuccessful": false,
"ResponseText": "Error description. Example: Missing required field: Company"
}

Common error scenarios:

  • Invalid authentication token
  • Missing required fields (refer to table above)
  • Invalid field values (e.g., non-numeric AnnualRevenue)
  • Duplicate ID submitted previously