{
  "name": "AP invoice intake",
  "description": "Extract supplier invoice headers, dates, line items and totals. Prepare reviewable bill data before your accounting system approval and posting steps.",
  "prompt_additions": "Extract only information explicitly present in this document. Do not infer missing values, verify authenticity, make business decisions, or compare other documents. Preserve identifiers as strings. Return amounts as numbers and dates as YYYY-MM-DD. Review and set required fields for your process before using this schema in production.",
  "fields": [
    {
      "key": "supplier_name",
      "label": "Supplier Name",
      "type": "string",
      "required": false,
      "description": "Supplier printed on the invoice, before vendor-master matching."
    },
    {
      "key": "invoice_number",
      "label": "Invoice Number",
      "type": "string",
      "required": false,
      "description": "Preserve letters, leading zeros and punctuation."
    },
    {
      "key": "invoice_date",
      "label": "Invoice Date",
      "type": "date",
      "required": false,
      "description": "Printed invoice issue date."
    },
    {
      "key": "due_date",
      "label": "Due Date",
      "type": "date",
      "required": false,
      "description": "Printed due date; do not infer from ambiguous terms."
    },
    {
      "key": "currency_code",
      "label": "Currency Code",
      "type": "string",
      "required": false,
      "description": "Explicit invoice currency when available."
    },
    {
      "key": "line_items",
      "label": "Line Items",
      "type": "array",
      "required": false,
      "description": "Description, quantity, unit price and line total for each visible item."
    },
    {
      "key": "invoice_total",
      "label": "Invoice Total",
      "type": "currency",
      "required": false,
      "description": "Total amount printed as due on this invoice."
    }
  ]
}