Leads Module API Endpoint

Note: Currently the only supported lead types are Personal Loan Application leads.

The entire interface consists of a single endpoint used to create a lead and update it (if necessary) until it is ready to be processed by the system. This allows the external providers the flexibility to use our system as a step-by-step storage point for user interactive portals (eg: a web site where the customer would follow a wizard to provide information and allow them to continue the process at any point through it). Once the lead is ready to be processed a flag on the payload can be set to indicate the lead is finalised. Depending on the application settings maintained by the subscriber, each lead provider's API key can be set to automatically process the finalised leads or await user review and processing. The provider can also individually set the CanBeAutoProcessed flag on the payload, even if the API key is set to auto import all leads. In order to be able to provide leads to a Biz Core Subscriber, the external provider must request an API key from the Subscriber. The Subscriber can generate and manage each of the API keys via the Biz Core UI. When using the API the subscriber must generate the Hawk Authentication Header using the API Key ID and API Key value pair provided by the Subscriber. Invalid values or disabled keys will result in an "Unauthorized" response.

Description: This API endpoint is used to submit a lead to the system.

HTTP Method: POST

Authentication:

When using the API, the subscriber must generate the Hawk Authentication Header using the API Key ID and API Key value pair provided by the Subscriber. If invalid values are used or if the key is not enabled, the API will return an "Unauthorized" response.

To generate an API Key ID and API Key value pair within the Biz Core Portal, use the sidebar to navigate to Settings → Advanced. From here, expand the Subscription API Keys widget and click the Plus icon. Provide a description in the field before clicking Add:

A popup window will launch displaying the API Key ID and Key value pair, after this information has been recorded click OK, I HAVE SAVED THIS INFORMATION:

Note: Ensure to save the Key ID and Key before proceeding, as this information cannot be retrieved.

Finally, expand the Leads Settings widget from the same page, locate the API that was just created and turn on the Active toggle:

Users can now provide the API Key ID and API Key to external lead providers in order to submit leads into Biz Core.

Request Parameters:

lead_data (object): A JSON object containing the lead data to be submitted. The structure and required fields of this object will be specified in the documentation.

Request Headers:

Authorization: {Your API KEY Access Token}

Request Properties Table:

PropertyEnum Type
NationalityCountryEnum
GenderGenderEnum
MaritalStatusMaritalStatusEnum
EmploymentTypeIdEmploymentTypeEnum
EmploymentPaymentFrequencyIdFrequencyEnum
AdditionalIncomePaymentFrequencyIdFrequencyEnum
RentExpensesPaymentFrequencyIdFrequencyEnum
LivingExpensesPaymentFrequencyIdFrequencyEnum
LoanExpensesPaymentFrequencyIdFrequencyEnum
VehicleTypeIdVehicleTypeEnum
LoanReasonLoanReasonEnum
Property NameType
firstNamestring
middleNamesstring
familyNamestring
motherMaidenNamestring
dateOfBirthstring (DateTime)
nationalitynumber
gendernumber
maritalStatusnumber
homeAddressIdstring
postalAddressIdstring
residentDatestring (DateTime)
numberOfDependentsnumber
licenceNumberstring
licenceExpiryDatestring (DateTime)
licenceStatestring
licenceVersionNumberstring
passportNumberstring
passportExpiryDatestring (DateTime)
medicareNumberstring
medicareReferencestring
medicareExpiryDatestring (DateTime)
employerNamestring
employeeNostring
occupationstring
employmentStartDatestring (DateTime)
industrystring
industryIdstring
employmentTypeIdnumber
employmentContactFirstNamestring
employmentContactLastNamestring
employmentContactPositionstring
employmentContactEmailAddressstring
employmentContactMobilePhonestring
employmentPhonestring
employmentIncomenumber
employmentPaymentFrequencyIdnumber
additionalIncomenumber
additionalIncomePaymentFrequencyIdnumber
rentExpensesnumber
rentExpensesPaymentFrequencyIdnumber
livingExpensesnumber
livingExpensesPaymentFrequencyIdnumber
livingExpensesSituationIdstring
livingExpensesSituationAmountnumber
livingExpensesSituationFrequencyIdnumber
loanExpensesnumber
loanExpensesPaymentFrequencyIdnumber
loanExpensesDescriptionstring
vehicleTypeIdnumber
makestring
modelstring
yearnumber
colourstring
bodystring
registrationNumberstring
registrationStateIdstring
registrationOtherStatestring
chassisNumberstring
engineNumberstring
registrationExpireDatestring (DateTime)
isHomeOwnerboolean
bankStatementCredentialsstring
bankStatementsTokenstring
sendResumeUrlboolean
resumeUrlstring
leadIdstring
subscriptionIdstring
leadSourcestring
leadMediumstring
leadCampaignstring
leadContentstring
identifiersobject
loanProductIdstring
loanProductstring
amountnumber
paymentFrequencynumber
lengthInWeeksnumber
loanReasonnumber
loanReasonOtherstring
loanReasonApplicationFormstring
emailContactsarray
phoneContactsarray
addressContactsarray
isReadyForProcessingboolean
canBeAutoProcessedboolean
Enum NameValueTwo-Letter CodeThree-Letter CodeSupported
Australia0AUAUSYes
NewZealand1NZNZLYes
GenderEnum
Other0
Female1
Male2
MaritalStatusEnumNameMaritalStatusId
Other[Name = "Other"]0
Single[Name = "Single"]1
Married[Name = "Married"]2
Divorced[Name = "Divorced"]3
Widowed[Name = "Widowed"]4
DeFacto[Name = "De Facto"]5
Separated[Name = "Separated"]6

EmploymentTypeEnum:

EmploymentTypeEnumNameEmploymentTypeId
Casual[Name = "Casual"]0
Contract[Name = "Contract"]1
PartTime[Name = "Part Time"]2
FullTime[Name = "Full Time"]3
Benefits[Name = "Benefits"]4
SelfEmployed[Name = "Self-Employed"]5

FrequencyEnum:

FrequencyEnumNameFrequencyId
Daily[Name = "Daily"]0
Weekly[Name = "Weekly"]1
Fortnightly[Name = "Fortnightly"]2
Monthly[Name = "Monthly"]3
Quarterly[Name = "Quarterly"]4
HalfYearly[Name = "Half Yearly"]5
Yearly[Name = "Yearly"]6
OnceOff[Name = "Once-Off"]7

VehicleTypeEnum:

VehicleTypeEnumDescriptionVehicleTypeId
CarCar0
MotorcycleMotorcycle1
TrailerTrailer2
BoatBoat3
VanVan4
RVRV5
TruckTruck6
PlanePlane7
JetSkiJet Ski8
YachtYacht9

LoanReasonEnum:

LoanReasonEnumReasonLoanReasonId
OtherOther0
HouseholdGoodsAndFurnitureHousehold Goods and Furniture1
MedicalDentalSpecialistExpensesMedical Dental Specialist Expenses2
RentalBondRental Bond3
UtilityBillsUtility Bills4
TravelHolidayTravel or Holiday5
EventCostsEvent Costs6
ProfessionalServicesProfessional Services7
EducationFeesEducation Fees8
GiftsGifts9
CarServiceRepairsCar Service or Repairs10
BasicLivingExpensesBasic Living Expenses11
WorkExpensesWork Expenses12
CarRegistrationCar Registration13
RelocationCostsRelocation Costs14
EntertainmentLeisureEntertainment Leisure15
HomeRepairsImprovementsHome Repairs or Improvements16
InsuranceInsurance17
DebtConsolidationDebt Consolidation18

NewEmailContact:

PropertyType
EmailAddressstring

NewPhoneContact:

PropertyType
PhoneTypeIdPhoneTypeEnum
PhoneNumberstring

PhoneTypeEnum:

PhoneTypeEnumName
ResidentialResidential0
MobileMobile1
BusinessBusiness2

NewAddressContact:

PropertyType
Premisestring
StreetAddressstring
PostalCodestring
Localitystring
AdministrativeAreastring
Countrystring

Request Body Example:

{
  "firstName": "APITest",
  "middleNames": "APITest",
  "familyName": "APITest",
  "motherMaidenName": "APITest",
  "dateOfBirth": "2005-07-24T01:04:40.060Z",
  "nationality": "0",
  "gender": "1",
  "maritalStatus": "0",
  "homeAddressId": "F5E96FAD-7DCB-44E6-80EA-5DD71E2E5100",
  "postalAddressId": "F5E96FAD-7DCB-44E6-80EA-5DD71E2E5100",
  "residentDate": "2020-07-24T01:04:40.060Z",
  "numberOfDependents": "2",
  "licenceNumber": "API123",
  "licenceExpiryDate": "2026-07-24T01:04:40.060Z",
  "licenceState": "7647730D-8BDE-40C2-AEEB-5EC889AF3C25",
  "licenceVersionNumber": "API123",
  "passportNumber": "API123",
  "passportExpiryDate": "2027-07-24T01:04:40.060Z",
  "medicareNumber": "API123",
  "medicareReference": "45566",
  "medicareExpiryDate": "2027-07-24T01:04:40.060Z",
  "employerName": "APITest",
  "employeeNo": "2222",
  "occupation": "Test",
  "employmentStartDate": "2020-07-24T01:04:40.060Z",
  "employmentStartDateApplicationForm": "2023-07-24T01:04:40.060Z",
  "industryId": "BCDA81F3-4C29-4C8A-BA4C-0006F1EB131C",
  "employmentTypeId": "0",
  "employmentContactFirstName": "APITest",
  "employmentContactLastName": "APITest",
  "employmentContactPosition": "APITest",
  "employmentContactEmailAddress": "[email protected]",
  "employmentContactMobilePhone": "0400000000",
  "employmentIncome": "6000",
  "employmentPaymentFrequencyId": 2,
  "additionalIncome": "4500",
  "additionalIncomePaymentFrequencyId": 2,
  "rentExpenses": "4500",
  "rentExpensesPaymentFrequencyId": 2,
  "livingExpenses": "4500",
  "livingExpensesPaymentFrequencyId": 2,
  "livingExpensesPaymentFrequencyIdApplicationForm": 2,
  "livingExpensesSituationAmountApplicationForm": "4500",
  "livingExpensesSituationFrequencyIdApplicationForm": 2,
  "loanExpenses": "4500",
  "loanExpensesPaymentFrequencyId": 2,
  "loanExpensesDescription": "APITest",
  "vehicleTypeId": 0,
  "make": "Test",
  "model": "Test",
  "year": "2010",
  "colour": "Test",
  "body": "fhf",
  "registrationNumber": "API123",
  "registrationStateId": "F5E96FAD-7DCB-44E6-80EA-5DD71E2E5100",
  "chassisNumber": "API123",
  "engineNumber": "API123",
  "registrationExpireDate": "2027-07-24T01:04:40.060Z",
  "isHomeOwner": true,
  "bankStatementCredentials": null,
  "bankStatementsToken": null,
  "sendResumeUrl": false,
  "resumeUrl": null,
  "leadId": null,
  "subscriptionId": "c08f84dc-840a-47eb-a27e-ddab42bedc6f",
  "LeadSource": "AWESOME LEAD PROVIDER",
  "leadMedium": "APITest9",
  "leadCampaign": "APITest8",
  "leadContent": "APITest7",
  "identifiers": {
    "additionalProp1": "APITest1",
    "additionalProp2": "APITest2",
    "additionalProp3": "APITest3"
  },
  "loanProductId": "04F7B1DB-0C6B-4AF7-BA36-7A7FCFB68F40",
  "loanProduct": "SMACC",
  "amount": "4300",
  "paymentFrequency": "2",
  "lengthInWeeks": "52",
  "loanReason": 0,
  "loanReasonOther": "Test",
  "EmailContacts": [
    {
      "EmailAddress": "[email protected]"
    }
  ],
  "phoneContacts": [
    {
      "phoneTypeId": "0",
      "phoneNumber": "0400000000",
      "countryId": 0
    }
  ],
  "addressContacts": [
    {
      "newAddressContactId": null,
      "dateMovedIn": "2020-07-24T01:21:00.722Z",
      "premise": 46,
      "streetAddress": "46 Rita Street",
      "postalCode": "4883",
      "locality": "Atherton",
      "administrativeArea": "QLD",
      "country": "Australia"
    }
  ],
  "isReadyForProcessing": true,
  "canBeAutoProcessed": true
}

Response:

  • Status: 200 OK if the lead submission was successful.
  • Status: 4xx or 5xx if there was an error during the lead submission.

Response Body Example (Success): Code 200

{
  "result": {
    "lead": {
      "firstName": "APITest",
      "middleNames": "APITest",
      "familyName": "APITest",
      "motherMaidenName": "APITest",
      "dateOfBirth": "2005-07-24T01:04:40.06",
      "nationality": 0,
      "gender": 1,
      "maritalStatus": 0,
      "homeAddressId": "f5e96fad-7dcb-44e6-80ea-5dd71e2e5100",
      "postalAddressId": "f5e96fad-7dcb-44e6-80ea-5dd71e2e5100",
      "residentDate": "2020-07-24T01:04:40.06+00:00",
      "numberOfDependents": 2,
      "licenceNumber": "API123",
      "licenceExpiryDate": "2026-07-24T01:04:40.06",
      "licenceState": "7647730D-8BDE-40C2-AEEB-5EC889AF3C25",
      "licenceVersionNumber": "API123",
      "passportNumber": "API123",
      "passportExpiryDate": "2027-07-24T01:04:40.06",
      "medicareNumber": "API123",
      "medicareReference": "45566",
      "medicareExpiryDate": "2027-07-24T01:04:40.06",
      "employerName": "APITest",
      "employeeNo": "2222",
      "occupation": "test",
      "employmentStartDate": "2020-07-24T01:04:40.06+00:00",
      "industry": null,
      "industryId": "bcda81f3-4c29-4c8a-ba4c-0006f1eb131c",
      "employmentTypeId": 0,
      "employmentContactFirstName": "APITest",
      "employmentContactLastName": "APITest",
      "employmentContactPosition": "APITest",
      "employmentContactEmailAddress": "[email protected]",
      "employmentContactMobilePhone": "0400000000",
      "employmentPhone": null,
      "employmentIncome": 6000,
      "employmentPaymentFrequencyId": 2,
      "additionalIncome": 4500,
      "additionalIncomePaymentFrequencyId": 2,
      "rentExpenses": 4500,
      "rentExpensesPaymentFrequencyId": 2,
      "livingExpenses": 4500,
      "livingExpensesPaymentFrequencyId": 2,
      "livingExpensesSituationId": null,
      "livingExpensesSituationAmount": null,
      "livingExpensesSituationFrequencyId": null,
      "loanExpenses": 4500,
      "loanExpensesPaymentFrequencyId": 2,
      "loanExpensesDescription": "APITest",
      "vehicleTypeId": 0,
      "make": "test",
      "model": "test",
      "year": 2010,
      "colour": "test",
      "body": "test",
      "registrationNumber": "API123",
      "registrationStateId": "f5e96fad-7dcb-44e6-80ea-5dd71e2e5100",
      "registrationOtherState": null,
      "chassisNumber": "API123",
      "engineNumber": "API123",
      "registrationExpireDate": "2027-07-24T01:04:40.06+00:00",
      "isHomeOwner": true,
      "bankStatementCredentials": null,
      "bankStatementsToken": null,
      "sendResumeUrl": false,
      "resumeUrl": null,
      "leadId": "2c197e13-4377-4096-8d8f-2ec260dc80e0",
      "subscriptionId": "c08f84dc-840a-47eb-a27e-ddab42bedc6f",
      "leadSource": "AWESOME LEAD PROVIDER",
      "leadMedium": "APITest9",
      "leadCampaign": "APITest8",
      "leadContent": "APITest7",
      "identifiers": {
        "additionalProp1": "APITest1",
        "additionalProp2": "APITest2",
        "additionalProp3": "APITest3"
      },
      "loanProductId": "04f7b1db-0c6b-4af7-ba36-7a7fcfb68f40",
      "loanProduct": "SMACC",
      "amount": 4300,
      "paymentFrequency": 2,
      "lengthInWeeks": 52,
      "loanReason": 0,
      "loanReasonOther": "test",
      "loanReasonApplicationForm": null,
      "emailContacts": [
        {
          "emailAddress": "[email protected]"
        }
      ],
      "phoneContacts": [
        {
          "phoneTypeId": 0,
          "phoneNumber": "0400000000",
          "countryId": 0
        }
      ],
      "addressContacts": [
        {
          "newAddressContactId": null,
          "dateMovedIn": "2020-07-24T01:21:00.722+00:00",
          "premise": null,
          "streetAddress": "46 Rita Street",
          "postalCode": "4883",
          "locality": "Atherton",
          "administrativeArea": "QLD",
          "country": "Australia"
        }
      ],
      "isReadyForProcessing": true,
      "canBeAutoProcessed": true,
      "reference": "BCB001730A"
    }
  },
  "statusCode": 200
}

This structured API documentation provides a clear understanding of the endpoints, authentication, request parameters, and properties involved in the lead submission process.

Minimum Recommended Request Body Example:

{
  "firstName": "Test",
  "familyName": "Test",
  "dateOfBirth": "2005-07-24T12:00:00.000Z",
  "nationality": "0",
  "gender": "1",
  "maritalStatus": "0",
  "occupation": "Test",
  "employmentIncome": "6000",
  "leadId": null,
  "subscriptionId": "c08f84dc-840a-47eb-a27e-ddab42bedc6f",
  "LeadSource": "AWESOME LEAD PROVIDER",
  "loanProduct": "SMACC",
  "amount": "4300",
  "paymentFrequency": "2",
  "lengthInWeeks": "52",
  "loanReason": 0,
  "EmailContacts": [
    {
      "EmailAddress": "[email protected]"
    }
  ],
  "phoneContacts": [
    {
      "phoneTypeId": "1",
      "phoneNumber": "0400000000",
      "countryId": 0
    }
  ],
  "addressContacts": [
    {
      "premise": 46,
      "streetAddress": "46 Rita Street",
      "postalCode": "4883",
      "locality": "Atherton",
      "administrativeArea": "QLD",
      "country": "Australia"
    }
  ],
  "isReadyForProcessing": true,
  "canBeAutoProcessed": true
}

Note: this example will submit all details to the system and immediatly create an new application.