Create a loan
Creates a new loan for the specified business, or updates an existing one. If a loan with the same external_id already exists it is upserted: the loan fields are updated and, when proceeds is provided, its proceeds are reconciled by proceed external_id. A dedicated ledger account is created for new loans. The request shape depends on loan_type.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The UUID of the business.
Body
The loan to create.
- Term loan
- Merchant cash advance
- Flex loan
- Line of credit
- Lease
- Equipment financing
Parameters for creating a loan. The shape depends on loan_type.
Discriminator. Must be TERM_LOAN.
TERM_LOAN Human-friendly name for the loan.
Date the loan was originated.
Original principal of the loan, in cents.
Unique ID of the loan in your system for linking purposes.
Parent ledger account under which the loan's dedicated liability account is created. Defaults to NOTES_PAYABLE.
- Account ID
- Account Stable Name
Term of the loan, in months.
Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing external_id upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed external_id (matched proceeds are updated, existing proceeds that are absent or have no external_id are archived, and new entries are created). Omit the field or set it to null to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.
A loan proceed: funds (or an asset) received from the loan.
- Asset proceed
- Disbursement proceed
Internal note about the loan.
Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.
Reference number for the loan.
Response
Loan created successfully.
A loan held by a business. Each loan has a dedicated child ledger (liability) account.