Skip to main content
PATCH
Update a loan

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business.

loanId
string<uuid>
required

The UUID of the loan.

Body

application/json

The loan fields to update.

Parameters for updating a loan. The shape depends on loan_type.

loan_type
enum<string>
required

Discriminator. Must be TERM_LOAN.

Available options:
TERM_LOAN
display_name
string

Updated display name for the loan.

origination_date
string<date>

Updated origination date.

original_principal
integer<int64>

Updated original principal, in cents.

loan_term_months
integer<int32> | null

Updated term, in months.

proceeds
(Asset proceed · object | Disbursement proceed · object)[]

Replaces the loan's proceeds with this list.

A loan proceed: funds (or an asset) received from the loan.

reported_balance
Reported loan balance · object | null

Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set at to the earliest date you can state the balance for. Omitting it later does not retract it; send reported_balance as null on an update to do that.

memo
string | null

Updated internal note.

metadata
object | null

Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.

reference_number
string | null

Updated reference number.

Response

200 - application/json

The updated loan.

data
object
required

A loan held by a business. Each loan has a dedicated child ledger (liability) account.