{
  "name": "Customs document intake",
  "description": "Extract commercial invoice parties, shipment references, and merchandise rows for customs broker intake. Prepare reviewable data for your entry workflow.",
  "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": "invoice_reference",
      "label": "Invoice Reference",
      "type": "string",
      "required": false,
      "description": "Commercial invoice identifier."
    },
    {
      "key": "invoice_date",
      "label": "Invoice Date",
      "type": "date",
      "required": false,
      "description": "Issue date appearing on the invoice."
    },
    {
      "key": "seller",
      "label": "Seller",
      "type": "string",
      "required": false,
      "description": "Seller name and address block as printed."
    },
    {
      "key": "buyer",
      "label": "Buyer",
      "type": "string",
      "required": false,
      "description": "Buyer name and address block as printed."
    },
    {
      "key": "shipment_references",
      "label": "Shipment References",
      "type": "array",
      "required": false,
      "description": "Listed PO, container, or transport references with their labels."
    },
    {
      "key": "currency",
      "label": "Currency",
      "type": "string",
      "required": false,
      "description": "Invoice currency, without conversion."
    },
    {
      "key": "merchandise_rows",
      "label": "Merchandise Rows",
      "type": "array",
      "required": false,
      "description": "Description, quantity, unit, value, and any explicitly stated origin per row."
    },
    {
      "key": "invoice_total",
      "label": "Invoice Total",
      "type": "currency",
      "required": false,
      "description": "Printed invoice total; no customs valuation determination."
    }
  ]
}