201Successful Response
Schema: DebtPaymentResponse
journal_entry_idstringrequiredprincipal_centsintegerrequiredinterest_centsintegerrequiredremaining_balance_centsintegerrequirednamestringrequireddirectionstringrequired
/api/v1/businesses/{business_id}/cfo-portal/debt-schedule/instruments/{instrument_id}/paymentsRecord a payment on a loan, posting a balanced principal/interest entry.
Request Body:
payment_amount_cents: total payment, split into principal + interest.cash_ledger_id: bank/cash account the money moves through.payment_date: optional, defaults to today.memo: optional journal-entry memo.The principal and interest accounts are resolved by direction: debt we owe pays down Long-Term Debt with Interest Expense; a note receivable collects against Notes Receivable with Interest Income. Decrements the instrument's outstanding balance by the principal portion.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
business_idstringrequiredinstrument_idstringrequiredSchema: DebtPaymentRequest
payment_amount_centsintegerrequiredTotal payment amount in cents (split into principal + interest).
cash_ledger_idstringrequiredBank/cash ledger the money moves through — paid from (debt we owe) or received into (a note receivable).
payment_datestring · datePayment date (defaults to today).
memostringSchema: DebtPaymentResponse
journal_entry_idstringrequiredprincipal_centsintegerrequiredinterest_centsintegerrequiredremaining_balance_centsintegerrequirednamestringrequireddirectionstringrequiredSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject