Skip to content

Document template · generic.business.discount_approval

Discount Approval

  • Render-verified
  • Commercial
  • Version 1.0.0

Country-agnostic internal approval form for a discount above a published threshold. Internal governance document — typical pricing-governance tool under ISO 37301 / SOX-style delegation-of-authority frameworks.

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

Field Required Type Description
requester Required object
requester.name Required string
requester.role Required string
requester.email Optional string
requester.request_date Optional date
customer Required object
customer.name Required string
customer.account_number Optional string
customer.country_code Optional string ISO 3166-1 alpha-2.
opportunity_reference Required string
standard_price Required number
requested_discount_pct Required number
requested_price Required number
total_margin_impact Required object
total_margin_impact.amount Required number Signed. Negative means margin loss.
total_margin_impact.currency Required string
justification Required string
approval_chain Required array of object
approval_chain[].role Required string
approval_chain[].name Required string
approval_chain[].decision Required enum
approval_chain[].decision_date Required date
approval_chain[].notes Optional string
final_status Required enum
effective_validity Required object
effective_validity.start Required date
effective_validity.end Required date

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.discount_approval",
    "data": { ... },
    "options": {"language": "en"}
  }' -o discount-approval.pdf

Frequently asked questions

What is “Discount Approval”?

Country-agnostic internal approval form for a discount above a published threshold. Internal governance document — typical pricing-governance tool under ISO 37301 / SOX-style delegation-of-authority frameworks. On papii this document is available as template generic.business.discount_approval: a JSON Schema plus a deterministic PDF renderer, so the same data always produces the same document.

Can I generate a Discount Approval 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 Discount Approval 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.