credit_limit, repay, and draw again. Model it as a single long-lived loan, record each draw as a proceed, and record repayments as loan payments.
Step 1: Create the line of credit
Create a loan withloan_type set to LINE_OF_CREDIT and a credit_limit. Set an external_id so you can reference it later. You can include the first draw in proceeds now, or add draws later (next step).
Request
Step 2: Record draws
Each time the business draws on the line, add aDISBURSEMENT proceed with the Create a loan proceed endpoint, using the loan’s id from the create response.
Request
Step 3: Record repayments
Each repayment is a loan payment split intoPRINCIPAL and INTEREST (explicit splits are required). Because draws and repayments on a line of credit are irregular, record each payment as it happens rather than pre-creating them.
Request