Loan Creation Guide
This guide outlines the end-to-end API process for creating a loan in Biz Core. It details each step in sequence, showing data dependencies and the logical flow between API calls.
Workflow Overview
The loan creation flow comprises six stages — four mandatory and two optional. Each step describes the relevant API endpoints, their purpose, and the expected outputs.
Authentication
The Lending Module uses HAWK authentication — see Getting Started for implementation details, API key generation, and library recommendations.
Step 1 — Retrieve Reference Data
Biz Core offers a suite of auxiliary endpoints that return enumerated values (countries, states, vehicle types, loan products, etc.) required to build customer intake forms and validate loan parameters.
For the complete catalogue of resource endpoints, caching guidance, and refresh strategy, see Reference Data Endpoints.
For loan creation specifically, the following reference data is most relevant:
- Countries and States — for address validation.
- Loan Products and Risk Categories — to determine valid loan terms, limits, and fees.
- Vehicle Types and Property Types — for assets attached in Step 6.
- Transaction Source Types and PayID Types — for payment configuration in Steps 3 and 4.
- Loan Reasons — for the loan purpose.
Output
Reference data cached locally for use in later steps, particularly customer and loan creation.
Step 2 — Customer Details
This step gathers or verifies all customer information required to proceed with loan creation.
Workflow
- Customer matching — Determine if the customer already exists in your system using identifiers such as email, name, or phone number.
- If existing customer:
- Call Get Customer Outstanding Refinances and store the result as
OutstandingRefinances. - Retain the existing
CustomerIdfor later use.
- Call Get Customer Outstanding Refinances and store the result as
- If new customer:
- Call Create Individual Customer and store the returned
CustomerId.
- Call Create Individual Customer and store the returned
Output
CustomerIdOutstandingRefinances(if applicable)
Step 3 — Create Direct Debit Transaction Source
This step defines how loan repayments will be collected via Direct Debit.
Workflow
- For existing customers, retrieve linked transaction sources using Get Customer Transaction Sources.
- Either:
- Reuse an existing bank account transaction source, or
- Call Create AU Bank Transaction Source to create a new one.
- Store the returned
TransactionSourceId. This source will be used for Direct Debit repayments. Also store the same value asDisbursementMethodSourceId— by default, loan funds disburse to the same account used for repayments.
Output
TransactionSourceIdDisbursementMethodSourceId
Step 4 — Set PayID as Disbursement Method (optional)
If loan funds will be disbursed via PayID rather than to the customer's bank account, create a PayID transaction source for the customer.
Workflow
- (Recommended) Validate the customer-provided PayID using Validate PayID.
- Call Create PayID Transaction Source.
- Override
DisbursementMethodSourceIdwith the returned PayIDTransactionSourceId.
Output
DisbursementMethodSourceId(PayID source)
PayID test data (UAT only)
| PayID | Type | Expected behaviour |
|---|---|---|
[email protected] | Fails with 400 status code | |
[email protected] | Successful payment | |
orgnname | ORG | Successful payment |
+61-454444555 | Phone | Successful payment |
34455445454 | ABN | Successful payment |
Step 5 — Create Loan
Once customer and transaction source data are ready, the loan can be created.
Workflow
- Assemble the request using values from previous steps:
CustomerIdLoanProductIdDisbursementMethodSourceIdTransactionSourceId(for Direct Debit)- Loan parameters: amount, term, start date, frequency, etc.
- Set
loanProviderto your organisation name. This distinguishes loans originated via your integration from those originated within Biz Core, for reporting purposes. - Call Create Loan.
Output
LoanId— unique identifier for the newly created loan.
Step 6 — Provide Additional Loan Data (optional)
Attach assessment, credit decision data, or asset records to the created loan for traceability.
Workflow
| Action | Endpoint |
|---|---|
| Add an assessment note to the loan | Add Loan Note |
| Pin the note to the messages section | Pin / Unpin Message |
| Upload assessment documents | Upload Loan Documents |
| Create AU vehicle asset | Create AU Vehicle Asset |
| Create NZ vehicle asset | Create NZ Vehicle Asset |
| Create property asset | Create Property Asset |
| Create generic asset | Create Generic Asset |
Output
- Assessment data and assets linked to the loan record.
Summary
| Step | Purpose | Output |
|---|---|---|
| 1 | Retrieve reference data | Cached lookups for countries, vehicles, products, etc. |
| 2 | Identify or create customer | CustomerId, OutstandingRefinances |
| 3 | Configure Direct Debit and default disbursement | TransactionSourceId, DisbursementMethodSourceId |
| 4 (optional) | Use PayID for disbursement | DisbursementMethodSourceId (PayID) |
| 5 | Create loan record | LoanId |
| 6 (optional) | Attach assessment notes, documents, and assets | Linked data |
Error Handling
Refer to the Getting Started — Error Handling section for the standard response codes returned by all Lending Module endpoints.
Updated 1 day ago
