{
  "name": "Supplier balance statement intake",
  "description": "Extract supplier name, statement date, account reference from supplier account statement. Start with an editable schema, inspect JSON and review exceptions before your system handoff.",
  "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 name exactly as printed in this supplier account statement. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "statement_date",
      "label": "Statement Date",
      "type": "date",
      "required": false,
      "description": "Statement date explicitly printed in this supplier account statement. Keep it distinct from other dates; leave it empty if no calendar date is stated."
    },
    {
      "key": "account_reference",
      "label": "Account Reference",
      "type": "string",
      "required": false,
      "description": "Account reference exactly as printed in this supplier account statement. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "opening_balance",
      "label": "Opening Balance",
      "type": "currency",
      "required": false,
      "description": "Opening balance explicitly labeled in this supplier account statement. Preserve its sign and stated currency; do not calculate a missing amount."
    },
    {
      "key": "statement_rows",
      "label": "Statement Rows",
      "type": "array",
      "required": false,
      "description": "Every visible statement rows row in this supplier account statement. Preserve separate rows, labels and qualifiers; do not merge entries or reconstruct missing ones.",
      "items": {
        "type": "object",
        "fields": [
          {
            "key": "entry_date",
            "label": "Entry Date",
            "type": "date",
            "required": false,
            "description": "Entry date explicitly printed in this supplier account statement. Keep it distinct from other dates; leave it empty if no calendar date is stated."
          },
          {
            "key": "reference",
            "label": "Reference",
            "type": "string",
            "required": false,
            "description": "Reference exactly as printed in this supplier account statement. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "entry_type",
            "label": "Entry Type",
            "type": "string",
            "required": false,
            "description": "Entry type exactly as printed in this supplier account statement. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "description",
            "label": "Description",
            "type": "string",
            "required": false,
            "description": "Description exactly as printed in this supplier account statement. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "debit_amount",
            "label": "Debit Amount",
            "type": "currency",
            "required": false,
            "description": "Debit amount explicitly labeled in this supplier account statement. Preserve its sign and stated currency; do not calculate a missing amount."
          },
          {
            "key": "credit_amount",
            "label": "Credit Amount",
            "type": "currency",
            "required": false,
            "description": "Credit amount explicitly labeled in this supplier account statement. Preserve its sign and stated currency; do not calculate a missing amount."
          }
        ]
      }
    },
    {
      "key": "closing_balance",
      "label": "Closing Balance",
      "type": "currency",
      "required": false,
      "description": "Closing balance explicitly labeled in this supplier account statement. Preserve its sign and stated currency; do not calculate a missing amount."
    }
  ]
}