Skip to main content
POST

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 proceed to create.

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

loan_proceed_type
enum<string>
required

Discriminator. Must be ASSET.

Available options:
ASSET
amount
integer<int64>
required

Proceed amount, in cents.

date
string<date>
required

Date the proceed was received.

asset
Existing asset · object
required

Reference to the asset funded by an ASSET proceed. Either link an existing asset by id or external_id, or create a new asset inline with new_asset.

external_id
string | null

Unique ID of the proceed in your system for linking purposes.

included_in_opening_balance
boolean
default:false

Set to true when recording a historical proceed that the loan's opening balance already reflects. The proceed must be dated before the opening balance's effective_at (its date is evaluated as midnight US Eastern time at the start of the day). Layer decreases the opening balance by the proceed's amount and moves the opening balance's effective_at back to the proceed date, so the explicit record replaces what the opening balance implied and the loan's balance is unchanged. Without this flag, proceeds dated before the opening balance's effective_at are rejected with a 400. Sending the flag when the loan has no active opening balance, or when the event is not dated before it, also fails with a 400.

Response

201 - application/json

Loan proceed created successfully.

data
object
required

A loan proceed: funds (or an asset) received when a loan is drawn. See the Loan Proceed object.