This is a staging build of the docs. Do not share the link externally.
Skip to main content

Introduction to loan writeback

Simplify your implementation with our loan writeback best practices guide and correctly account for a loan programmatically

Overview

This guide takes you through the steps needed to implement and run the loan writeback procedure in your lending business using Codat. You will learn how to configure Codat and use it to create transactions that represent the deposit and repayment of the loan in your customers' accounting platforms.

This solution covers the loan writeback procedure for both general lending, such as term loans, and selective invoice finance.

What is loan writeback?

Loan writeback (also known as lending writeback) is the process of continuously updating an accounting platform with information about a loan. It helps maintain an accurate position of the loan during the entire lending cycle by recording the loan liability, any interest, fees, or repayments, and facilitating the reconciliation of bank accounts.

Bank feeds for loan writeback

Loan writeback requires the lender to support the bank feeds functionality so that the lender can record their own bank transactions associated with issuing the loan in their borrower's accounting platform.

Why use it?

A bookkeeper can account for a loan in numerous ways in an accounting platform. For example, some bookkeepers may erroneously register a loan as a direct income or even a sales invoice.

This results in loans being improperly recorded as revenue and repayments as operating costs. At the end of the reporting period, this can make it hard for the bookkeeper to close their books.

By implementing loan writeback functionality in your application, you can make sure loan bookeeping is done regularly, correctly, and quickly so that you always see an up-to-date state of the borrower's accounts.

Mandatory loan writeback

Certain accounting platforms require lenders to continuously update their books with money lent to SMBs. For example, Xero obligates lenders going through the App Partner certification process to handle the writeback process.

What's the process?

The process of loan writeback involves recording loan withdrawals, repayments, and interest in the SMB's accounting platform. It can be split into three stages, as shown on the diagram below:

  1. Configure loan writeback for your SMB customer.

  2. Deposit the loan and reflect it in the SMB's accounting platform.

  3. Record payments owed to you, the lender, in your SMB's accounting platform.

The first two steps are identical for the general lending and invoice finance scenarios. The process of recording repayments differs based on the lending option.

Examples

To gain additional context on the outcome of performing loan writeback, review the examples for both lending use cases. The examples provide a view of the bank feed transactions and accounting transactions created during the process.

The lender agrees to provide an SMB a loan of £10,000 and charges a fee of £200, requesting the repayment in equal parts over 2 months.

The lender deposits £10,000 into the SMB's nominated bank account. Next month, the borrower repays the first half of the loan and repays the loan in full the month after.

In the example, you can also see that each bank feed transaction matches a bank account transaction in the accounting platform. This helps the borrower to reconcile both bank accounts.

A GIF showing the money flow of a general loan writeback

Prerequisites

  • Check that you have created a Codat company that represents your SMB customer and linked it to an accounting platform. If you are already using Codat for lending, it's likely you have previously created some companies.

    You should also create and connect a test company to use while building your solution.

  • Familiarize yourself with Codat's approach of asynchronously creating and updating data, which can be summarized as follows:

  • If you are implementing loan writeback for Xero, Xero Bank Feeds API needs to be enabled for your registered app. Xero usually does this during the certification process for lenders' apps so that you can test your solution before completing the certification.

  • As a lender, use Codat's Bank Feeds API to represent your bank account in Codat's domain. Keep hold of the source bank account id as you will use it when recording deposits and repayments.


  • Learn how to configure loan writeback, from creating key elements in Codat's domain to enabling your customer to map them.

Was this page useful?
❤️
👍
🤔
👎
😭