Skip to content

Document template · generic.finance.loan_agreement

Loan Agreement

  • Render-verified
  • Legal-sensitive
  • Version 1.0.0

Bilateral loan agreement between a lender and a borrower, setting out the principal, interest, term, repayment schedule, events of default and governing law. Intended as a generic starting point — national law (e.g. consumer-credit rules) may require additional mentions.

JSON Schema

Fields in this template

Data sent to the API is validated against the template’s JSON Schema before anything is rendered. This template defines 35 fields:

Field Required Type Description
agreement_date Required date
place_of_signature Optional string
lender Required object
lender.name Required string
lender.legal_form Optional string
lender.address Required string
lender.registration Optional string
lender.represented_by Optional string
borrower Required object
borrower.name Required string
borrower.legal_form Optional string
borrower.address Required string
borrower.registration Optional string
borrower.represented_by Optional string
loan Required object
loan.principal_amount Required number
loan.purpose Required string
loan.disbursement_date Required date
loan.term_months Required integer
loan.maturity_date Required date
interest Required object
interest.annual_rate Required number
interest.rate_type Required enum
interest.day_count Required string
interest.late_rate Required number
repayment Required object
repayment.schedule_kind Required enum
repayment.frequency Required enum
repayment.first_payment_date Required date
repayment.payment_amount Optional number

+5 more fields — the full JSON Schema is available in the dashboard and via the API.

POST /render

Generate it

One POST /render call: send your JSON, get the finished PDF back. Or skip the JSON entirely and describe the document in plain language on chut.app.

curl
curl -X POST https://api.papii.eu/render \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "generic.finance.loan_agreement",
    "data": { ... },
    "options": {"language": "en"}
  }' -o loan-agreement.pdf

Frequently asked questions

What is “Loan Agreement”?

Bilateral loan agreement between a lender and a borrower, setting out the principal, interest, term, repayment schedule, events of default and governing law. Intended as a generic starting point — national law (e.g. consumer-credit rules) may require additional mentions. On papii this document is available as template generic.finance.loan_agreement: a JSON Schema plus a deterministic PDF renderer, so the same data always produces the same document.

Can I generate a Loan Agreement with AI?

Yes. chut.app — the AI back office papii powers — fills this template from a plain-language description: you describe the document in one sentence, the AI structures the data, papii validates it against the schema and renders the PDF. Developers can also call the papii API directly with structured JSON.

Is the Loan Agreement template legally compliant?

This template is render-verified: its schema, sample data and PDF output are automatically tested on every release. It is published with status “ready”, meaning it has not yet been through papii’s final legal review. Where it references specific legislation, that is stated in the template description — always have a professional check documents with legal effect before relying on them.