Skip to content

Document template · generic.business.purchase_order

Purchase Order

  • Render-verified
  • Commercial
  • Version 1.0.0

Everyday commercial documents: quotes, receipts, purchase orders, delivery notes, and more.

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 21 fields:

Field Required Type Description
company Required object
company.name Required string
company.address Optional string
company.email Optional string
company.phone Optional string
company.logo_base64 Optional string
supplier Required object
supplier.name Required string
supplier.address Optional string
supplier.contact_person Optional string
order Required object
order.number Required string
order.date Required string
order.delivery_date Optional string
order.shipping_address Optional string
order.lines Required array of object
order.subtotal Required string
order.tax_amount Required string
order.total Required string
order.notes Optional string
order.terms Optional string

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.business.purchase_order",
    "data": { ... },
    "options": {"language": "en"}
  }' -o purchase-order.pdf

Frequently asked questions

What is “Purchase Order”?

Everyday commercial documents: quotes, receipts, purchase orders, delivery notes, and more. On papii this document is available as template generic.business.purchase_order: a JSON Schema plus a deterministic PDF renderer, so the same data always produces the same document.

Can I generate a Purchase Order 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 Purchase Order 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.