201Successful Response
Schema: SuccessEnvelope_DebtContractApproveResponse_
successbooleanmessagestringcodestringdataDebtContractApproveResponse
/api/v1/businesses/{business_id}/cfo-portal/debt-schedule/approve-contractCreate a debt instrument from approved parsed contract terms.
Request Body:
contract: ParsedDebtContract from the parse endpoint (required).contract_s3_key: S3 key of the original PDF (optional, persisted
on the debt instrument for later retrieval).Returns: The new debt instrument's id, name, and lender.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
business_idstringrequiredSchema: DebtContractApproveRequest
contractParsedDebtContractrequiredParsedDebtContractParsed contract payload returned by the parse endpoint.
namestringrequiredlenderstringrequiredCounterparty name. The lender for a loan to us (borrow) or the borrower for a loan we made (lend).
directionstringDebtDirectionEnum value: 'borrow' (a loan to us — a liability) or 'lend' (a loan from us / note receivable — an asset whose interest is income). Defaults to 'borrow'.
debt_typestringrequiredDebtTypeEnum value: term_loan, line_of_credit, mortgage, equipment_loan, sba_loan, convertible_note, revenue_based, other.
original_principal_centsintegerrequiredcurrent_balance_centsintegerrequiredinterest_rate_bpsintegerAnnual interest rate in basis points (e.g. 500 = 5.00%). Set to 0 for revenue-based financing.
term_monthsintegerLoan term in months. For revenue-based financing this is an estimate of months to cap based on assumed revenue.
start_datestringrequiredContract start date as ISO-8601 YYYY-MM-DD.
maturity_datestringrequiredMaturity/expected payoff date as ISO-8601 YYYY-MM-DD. For RBF this is an estimate based on the share rate.
payment_frequencystringPaymentFrequencyEnum value: monthly, quarterly, semi_annual, annual, bullet, or revenue_share.
payment_amount_centsintegerScheduled payment per period (fixed) or 0 for RBF.
revenue_share_bpsintegerRevenue-share rate in basis points; only set for revenue_based debt.
total_repayment_cap_centsintegerTotal dollar cap on cumulative repayments; only set for revenue_based debt.
summarystringOne-paragraph human summary of the contract.
confidencenumberParsing confidence in [0, 1] reported by the LLM.
contract_s3_keystringS3 key of the original uploaded contract; persisted on the debt instrument for later retrieval.
Schema: SuccessEnvelope_DebtContractApproveResponse_
successbooleanmessagestringcodestringdataDebtContractApproveResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject