Document template · generic.business.credit_note
Credit Note
- Render-verified
- Commercial
- Version 1.0.0
Country-agnostic credit note issued against a prior commercial invoice. Reflects Art. 219 Council Directive 2006/112/EC (documents treated as invoices) — the country profile supplies local mandatory 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 41 fields:
| Field | Required | Type | Description |
|---|---|---|---|
| supplier | Required | object | |
| supplier.name | Required | string | |
| supplier.address | Required | string | |
| supplier.vat_id | Optional | string | |
| supplier.contact_email | Required | string | |
| customer | Required | object | |
| customer.name | Required | string | |
| customer.address | Required | string | |
| customer.vat_id | Optional | string | |
| credit_note | Required | object | |
| credit_note.number | Required | string | |
| credit_note.issue_date | Required | date | |
| credit_note.notes | Optional | string | |
| credit_note.language_currency_overrides | Optional | object | |
| original_invoice_reference | Required | object | |
| original_invoice_reference.number | Required | string | |
| original_invoice_reference.issue_date | Required | date | |
| reason | Required | enum | |
| reason_detail | Optional | string | Optional free text expanding on the reason code. |
| lines | Required | array of object | |
| lines[].description | Required | string | |
| lines[].quantity | Required | number | |
| lines[].unit | Required | string | |
| lines[].unit_price | Required | number | |
| lines[].vat_rate_pct | Required | number | |
| lines[].amount_net | Required | number | |
| totals | Required | object | |
| totals.subtotal | Required | number | |
| totals.vat_total | Required | number | |
| totals.credit_total | Required | number |
+11 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 -X POST https://api.papii.eu/render \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "generic.business.credit_note",
"data": { ... },
"options": {"language": "en"}
}' -o credit-note.pdf Frequently asked questions
What is “Credit Note”?
Country-agnostic credit note issued against a prior commercial invoice. Reflects Art. 219 Council Directive 2006/112/EC (documents treated as invoices) — the country profile supplies local mandatory mentions. On papii this document is available as template generic.business.credit_note: a JSON Schema plus a deterministic PDF renderer, so the same data always produces the same document.
Can I generate a Credit Note 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 Credit Note 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.