{
  "name": "Delivery exception report capture",
  "description": "Extract shipment reference, delivery date, consignee name from exception report. 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": "shipment_reference",
      "label": "Shipment Reference",
      "type": "string",
      "required": false,
      "description": "Shipment reference exactly as printed in this exception report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "delivery_date",
      "label": "Delivery Date",
      "type": "date",
      "required": false,
      "description": "Delivery date explicitly printed in this exception report. Keep it distinct from other dates; leave it empty if no calendar date is stated."
    },
    {
      "key": "consignee_name",
      "label": "Consignee Name",
      "type": "string",
      "required": false,
      "description": "Consignee name exactly as printed in this exception report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "exception_rows",
      "label": "Exception Rows",
      "type": "array",
      "required": false,
      "description": "Every visible exception rows row in this exception report. Preserve separate rows, labels and qualifiers; do not merge entries or reconstruct missing ones.",
      "items": {
        "type": "object",
        "fields": [
          {
            "key": "item_reference",
            "label": "Item Reference",
            "type": "string",
            "required": false,
            "description": "Item reference exactly as printed in this exception report. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "exception_text",
            "label": "Exception Text",
            "type": "string",
            "required": false,
            "description": "Exception wording explicitly present in the document, retained for a human reviewer."
          },
          {
            "key": "affected_quantity",
            "label": "Affected Quantity",
            "type": "number",
            "required": false,
            "description": "Affected quantity as reported in this exception report. Preserve the labeled measure and its unit; do not estimate it."
          },
          {
            "key": "unit_of_measure",
            "label": "Unit Of Measure",
            "type": "string",
            "required": false,
            "description": "Printed quantity unit, kept distinct from package type or pricing unit."
          }
        ]
      }
    },
    {
      "key": "driver_notes_text",
      "label": "Driver Notes Text",
      "type": "string",
      "required": false,
      "description": "Driver notes text exactly as printed in this exception report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    }
  ]
}