{
  "name": "Borrower income document intake",
  "description": "Parse borrower pay stubs into consistent income intake fields. Review pay periods, gross pay and year-to-date totals before your loan 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": "employee_name",
      "label": "Employee Name",
      "type": "string",
      "required": false,
      "description": "Name shown on the pay statement."
    },
    {
      "key": "employer_name",
      "label": "Employer Name",
      "type": "string",
      "required": false,
      "description": "Employer as printed, before matching to your borrower record."
    },
    {
      "key": "period_start",
      "label": "Period Start",
      "type": "date",
      "required": false,
      "description": "Start date of this earnings period."
    },
    {
      "key": "period_end",
      "label": "Period End",
      "type": "date",
      "required": false,
      "description": "End date of this earnings period."
    },
    {
      "key": "pay_date",
      "label": "Pay Date",
      "type": "date",
      "required": false,
      "description": "Payment date, kept distinct from the pay period."
    },
    {
      "key": "current_gross_pay",
      "label": "Current Gross Pay",
      "type": "currency",
      "required": false,
      "description": "Gross earnings printed for this period."
    },
    {
      "key": "year_to_date_gross_pay",
      "label": "Year To Date Gross Pay",
      "type": "currency",
      "required": false,
      "description": "Printed year-to-date gross amount."
    }
  ]
}