{
  "name": "Returns authorization receiving intake",
  "description": "Extract return reference, customer name, issue date from rma. 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": "return_reference",
      "label": "Return Reference",
      "type": "string",
      "required": false,
      "description": "Return reference exactly as printed in this rma. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "customer_name",
      "label": "Customer Name",
      "type": "string",
      "required": false,
      "description": "Customer name exactly as printed in this rma. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "issue_date",
      "label": "Issue Date",
      "type": "date",
      "required": false,
      "description": "Issue date explicitly printed in this rma. Keep it distinct from other dates; leave it empty if no calendar date is stated."
    },
    {
      "key": "return_by_date",
      "label": "Return By Date",
      "type": "date",
      "required": false,
      "description": "Return by date explicitly printed in this rma. Keep it distinct from other dates; leave it empty if no calendar date is stated."
    },
    {
      "key": "return_rows",
      "label": "Return Rows",
      "type": "array",
      "required": false,
      "description": "Every visible return rows row in this rma. 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 rma. 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 rma. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "authorized_quantity",
            "label": "Authorized Quantity",
            "type": "number",
            "required": false,
            "description": "Authorized quantity as reported in this rma. 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": "stated_reason",
            "label": "Stated Reason",
            "type": "string",
            "required": false,
            "description": "Stated reason exactly as printed in this rma. Preserve identifiers and qualifiers; do not look up or infer missing information."
          }
        ]
      }
    },
    {
      "key": "reason_text",
      "label": "Reason Text",
      "type": "string",
      "required": false,
      "description": "Reason text exactly as printed in this rma. Preserve identifiers and qualifiers; do not look up or infer missing information."
    }
  ]
}