# efw2.generate

Generate tax-year 2026 SSA EFW2 and optional Maryland MW508 and Pennsylvania myPATH W-2 files from JSON or CSV payroll. Up to 1,000 employees. Price per employee-state, or one employee-state for an employee with federal data only.

- REST: `POST https://api.kanagu.dev/v1/efw2/generate`
- MCP: `call_operation` with `operation: "efw2.generate"` at https://api.kanagu.dev/mcp
- Price: $0.15 USD per employee-state, on successful calls only.
- Auth: `Authorization: Bearer <key>` for REST and `call_operation`. Retries: reuse `Idempotency-Key` (MCP: `idempotencyKey`).

## Compliance coverage

- Domain: Finance & accounting
- Jurisdictions: US
- Standard: SSA Publication 42-007 Tax year 2026, version 4 (2026-11-12) — https://www.ssa.gov/employer/efw/26efw2.pdf
- Standard: Maryland Employer Reporting of W-2s Instructions and Specifications Tax year 2026, version 1.0 (2026-09-27) — https://www.marylandcomptroller.gov/content/dam/mdcomp/tax/instructions/2026/reporting-w2-instructions.pdf
- Standard: Pennsylvania myPATH W-2 Wage Records (EFW2) Undated web specification, snapshot 2026-11-26 (2026-11-26) — https://www.pa.gov/agencies/revenue/resources/mypath/multi-import/employer-withholding-file-upload-specs/pa-w-2-wage-records-efw2
- Standard: 26 CFR § 1.224-1(h), Table 1 TD 10044 (2026-04-13) — https://www.govinfo.gov/content/pkg/FR-2026-04-13/pdf/2026-07104.pdf
- Verification: efw2.generate checks generated files and efw2.validate checks submitted files locally against published fixed-width, sequence, field and total rules.
- Last reviewed: 2026-11-26

## Request body

- `taxYear` (2026, required)
- `submitter` (object, required)
- `submitter.ein` (string, required)
- `submitter.name` (string (max 57 chars), required)
- `submitter.location` (string (max 22 chars))
- `submitter.street` (string (max 22 chars), required)
- `submitter.city` (string (max 22 chars), required)
- `submitter.state` ("AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | … (59 values), required)
- `submitter.zip` (string, required)
- `submitter.contact` (object, required)
- `submitter.contact.name` (string (max 27 chars), required)
- `submitter.contact.email` (string (max 40 chars), required)
- `submitter.contact.phone` (string, required)
- `submitter.contact.extension` (string)
- `submitter.contact.fax` (string)
- `submitter.bsoUserId` (string, required)
- `submitter.software` (object, required)
- `submitter.preparerCode` ("A" | "L" | "S" | "P" | "O", required)
- `submitter.resubmissionWfid` (string)
- `employer` (object, required)
- `employer.ein` (string, required)
- `employer.name` (string (max 57 chars), required)
- `employer.location` (string (max 22 chars))
- `employer.street` (string (max 22 chars), required)
- `employer.city` (string (max 22 chars), required)
- `employer.state` ("AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | … (59 values), required)
- `employer.zip` (string, required)
- `employer.contact` (object, required)
- `employer.contact.name` (string (max 27 chars), required)
- `employer.contact.email` (string (max 40 chars), required)
- `employer.contact.phone` (string, required)
- `employer.contact.extension` (string)
- `employer.contact.fax` (string)
- `employer.kind` ("F" | "S" | "T" | "Y" | "N", required)
- `employer.employment` ("A" | "H" | "M" | "Q" | "X" | "F" | "R", required)
- `employer.establishment` (string (max 4 chars))
- `employer.otherEin` (string)
- `employer.terminating` ("0" | "1")
- `employer.thirdPartySickPay` ("0" | "1")
- `employer.thirdPartySickPayTax` (string): Employer total of income tax withheld by third-party sick pay providers, reported separately in RT.
- `employer.signaturePin` (string)
- `maryland` (object)
- `maryland.crn` (string, required)
- `maryland.createdDate` (string (date), required): File creation date.
- `maryland.createdTime` (string, required): HHMMSSNN, hundredths of a second.
- `maryland.filedDate` (string (date), required)
- `maryland.naics` (string, required)
- `maryland.representative` (object, required)
- `maryland.representative.name` (string (max 28 chars), required)
- `maryland.representative.title` (string (max 15 chars), required)
- `maryland.representative.phone` (string, required)
- `maryland.taxesReported` (string, required): MW508 line 2, withholding reported on MW506s.
- `maryland.taxesPaid` (string, required): MW508 line 3c, withholding actually paid.
- `maryland.exemptCredits` (string): MW508 line 3d, credits from MW508CR.
- `maryland.overpaymentCredit` (string)
- `maryland.overpaymentRefund` (string)
- `maryland.complete` (boolean, required)
- `maryland.additionalW2s` (boolean, required)
- `maryland.additional1099s` (boolean, required)
- `pennsylvania` (object)
- `pennsylvania.accountId` (string, required)

Then exactly one of these shapes:

1. With employees:

- `employees` (array of object, required)
- `employees[].ssn` (string, required): Nine digits, or 000000000 if SSA has not issued an SSN.
- `employees[].firstName` (string (max 15 chars), required)
- `employees[].middleName` (string (max 15 chars))
- `employees[].lastName` (string (max 20 chars), required)
- `employees[].suffix` (string)
- `employees[].location` (string (max 22 chars))
- `employees[].street` (string (max 22 chars), required)
- `employees[].city` (string (max 22 chars), required)
- `employees[].state` ("AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | … (59 values), required)
- `employees[].zip` (string, required)
- `employees[].wages` (string, required): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].federalTax` (string, required): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].socialSecurityWages` (string, required): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].socialSecurityTax` (string, required): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].medicareWages` (string, required): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].medicareTax` (string, required): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].socialSecurityTips` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].dependentCare` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].D` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].E` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].F` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].G` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].H` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].section457` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].W` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].nonSection457` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].Q` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].C` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].V` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].Y` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].AA` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].BB` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].DD` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].FF` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].allocatedTips` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].R` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].S` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].T` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].M` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].N` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].Z` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].EE` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].GG` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].HH` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].II` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].A` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].B` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].J` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].K` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].L` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].P` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].TA` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].TP` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].TT` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].statutoryEmployee` ("0" | "1")
- `employees[].retirementPlan` ("0" | "1")
- `employees[].thirdPartySickPay` ("0" | "1")
- `employees[].primaryTippedOccupation` (string)
- `employees[].secondaryTippedOccupation` (string)
- `employees[].mdWages` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].mdTax` (string): Maryland state and local withholding combined.
- `employees[].mdPickup` (string)
- `employees[].mdAllowances` (string): Maryland withholding allowances, two digits.
- `employees[].paWages` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].paTax` (string): Nonnegative USD decimal string, up to two fractional digits.
- `employees[].paItin` (string)

2. With csv:

- `csv` (string (max 1000000 chars), required): Comma-delimited UTF-8 with employee field names as headers and blank cells for omitted optional fields. Up to 1,000 employees.

## Response

- `status` ("pass" | "invalid" | "needs_review", required)
- `findings` (array of object, required)
- `findings[].severity` ("error" | "needs_review", required)
- `findings[].destination` ("SSA" | "MD" | "PA", required)
- `findings[].rule` (string, required)
- `findings[].line` (integer (≤ 9007199254740991))
- `findings[].column` (integer (≤ 9007199254740991))
- `findings[].input` (string)
- `findings[].field` (string, required)
- `findings[].expected` (string, required)
- `findings[].actual` (string, required)
- `findings[].source` (string (uri), required)
- `billableEmployeeStates` (integer (0 to 9007199254740991), required)
- `verification` (object, required)
- `verification.method` ("published_specification", required)
- `verification.agencyPortal` ("not_run", required)
- `verification.standards` (array of object, required)
- `verification.standards[].name` (string, required)
- `verification.standards[].version` (string, required)
- `verification.standards[].date` (string (date), required)
- `verification.standards[].url` (string (uri), required)
- `files` (array of object, required)
- `files[].destination` ("SSA" | "MD" | "PA", required)
- `files[].text` (string, required): Fixed-width ASCII text. Save the text as-is without changing trailing spaces.
- `files[].recordCount` (integer (≤ 9007199254740991), required)

## Example

```sh
curl https://api.kanagu.dev/v1/efw2/generate \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"taxYear":2026,"submitter":{"ein":"123456789","name":"Susquehanna Payroll","street":"210 Main St","city":"York","state":"PA","zip":"17401","bsoUserId":"TEST2026","software":{"kind":"in_house"},"preparerCode":"S","contact":{"name":"Pay Support","phone":"7175550101","email":"payroll@example.com"}},"employer":{"ein":"232345678","name":"Susquehanna Machine","street":"212 Main St","city":"York","state":"PA","zip":"17401","kind":"N","employment":"R","contact":{"name":"Pat Baker","phone":"7175550102","email":"Pat.Baker@example.com"}},"employees":[{"ssn":"123456780","firstName":"Dana","lastName":"Wood","street":"1 Maple St","city":"York","state":"PA","zip":"17401-1234","wages":"40321.77","federalTax":"4261.16","socialSecurityWages":"42500","socialSecurityTax":"2635","medicareWages":"42500","medicareTax":"616.25","D":"2178.23","retirementPlan":"1","paWages":"42500","paTax":"1304.75"}],"pennsylvania":{"accountId":"12345678"}}'
```

```ts
const res = await fetch("https://api.kanagu.dev/v1/efw2/generate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "taxYear": 2026,
    "submitter": {
      "ein": "123456789",
      "name": "Susquehanna Payroll",
      "street": "210 Main St",
      "city": "York",
      "state": "PA",
      "zip": "17401",
      "bsoUserId": "TEST2026",
      "software": {
        "kind": "in_house"
      },
      "preparerCode": "S",
      "contact": {
        "name": "Pay Support",
        "phone": "7175550101",
        "email": "payroll@example.com"
      }
    },
    "employer": {
      "ein": "232345678",
      "name": "Susquehanna Machine",
      "street": "212 Main St",
      "city": "York",
      "state": "PA",
      "zip": "17401",
      "kind": "N",
      "employment": "R",
      "contact": {
        "name": "Pat Baker",
        "phone": "7175550102",
        "email": "Pat.Baker@example.com"
      }
    },
    "employees": [
      {
        "ssn": "123456780",
        "firstName": "Dana",
        "lastName": "Wood",
        "street": "1 Maple St",
        "city": "York",
        "state": "PA",
        "zip": "17401-1234",
        "wages": "40321.77",
        "federalTax": "4261.16",
        "socialSecurityWages": "42500",
        "socialSecurityTax": "2635",
        "medicareWages": "42500",
        "medicareTax": "616.25",
        "D": "2178.23",
        "retirementPlan": "1",
        "paWages": "42500",
        "paTax": "1304.75"
      }
    ],
    "pennsylvania": {
      "accountId": "12345678"
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
```

## Errors

JSON `{"error":{"code","message"}}`.

- 400 `invalid_input`: The body does not match the request schema. The message names each field.
- 400 `invalid_json`: The body is missing or is not valid JSON.
- 400 `invalid_idempotency_key`: Idempotency-Key must be 1–128 visible ASCII characters.
- 401 `invalid_api_key`: The Bearer key is missing, malformed, invalid or inactive.
- 402 `free_allowance_exhausted`: This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.
- 404 `not_found`: No operation at this path.
- 409 `idempotency_conflict`: The Idempotency-Key was already used with a different body.
- 413 `payload_too_large`: JSON bodies may be at most 64 KiB.
- 500 `internal_error`: The call failed on our side. It is not billed; retry with the same Idempotency-Key.

## JSON Schema

Request:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "taxYear": {
          "type": "number",
          "const": 2026
        },
        "submitter": {
          "type": "object",
          "properties": {
            "ein": {
              "type": "string",
              "pattern": "^(?!00|07|08|09|17|18|19|28|29|49|69|70|78|79|89)\\d{9}$"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 57,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "location": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "street": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "city": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "state": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "AA",
                "AE",
                "AP",
                "AS",
                "GU",
                "MP",
                "PR",
                "VI"
              ]
            },
            "zip": {
              "type": "string",
              "pattern": "^\\d{5}(?:-?\\d{4})?$"
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 27,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "email": {
                  "type": "string",
                  "maxLength": 40,
                  "pattern": "^(?!\\.)(?!.*\\.\\.)(?!.*\\.@)[A-Z0-9.!#$%&'*+\\-/=?^`_{|}~]+@[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?(?:\\.[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?)*\\.[A-Z]{2,}$"
                },
                "phone": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                },
                "extension": {
                  "type": "string",
                  "pattern": "^\\d{1,5}$"
                },
                "fax": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                }
              },
              "required": [
                "name",
                "email",
                "phone"
              ],
              "additionalProperties": false
            },
            "bsoUserId": {
              "type": "string",
              "pattern": "^[A-Z0-9]{8}$"
            },
            "software": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "in_house"
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "off_the_shelf"
                    },
                    "vendorCode": {
                      "type": "string",
                      "pattern": "^\\d{4}$"
                    }
                  },
                  "required": [
                    "kind",
                    "vendorCode"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "preparerCode": {
              "type": "string",
              "enum": [
                "A",
                "L",
                "S",
                "P",
                "O"
              ]
            },
            "resubmissionWfid": {
              "type": "string",
              "pattern": "^[A-Z0-9]{6}$"
            }
          },
          "required": [
            "ein",
            "name",
            "street",
            "city",
            "state",
            "zip",
            "contact",
            "bsoUserId",
            "software",
            "preparerCode"
          ],
          "additionalProperties": false
        },
        "employer": {
          "type": "object",
          "properties": {
            "ein": {
              "type": "string",
              "pattern": "^(?!00|07|08|09|17|18|19|28|29|49|69|70|78|79|89)\\d{9}$"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 57,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "location": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "street": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "city": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "state": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "AA",
                "AE",
                "AP",
                "AS",
                "GU",
                "MP",
                "PR",
                "VI"
              ]
            },
            "zip": {
              "type": "string",
              "pattern": "^\\d{5}(?:-?\\d{4})?$"
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 27,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "email": {
                  "type": "string",
                  "maxLength": 40,
                  "pattern": "^(?!\\.)(?!.*\\.\\.)(?!.*\\.@)[A-Z0-9.!#$%&'*+\\-/=?^`_{|}~]+@[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?(?:\\.[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?)*\\.[A-Z]{2,}$"
                },
                "phone": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                },
                "extension": {
                  "type": "string",
                  "pattern": "^\\d{1,5}$"
                },
                "fax": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                }
              },
              "required": [
                "name",
                "email",
                "phone"
              ],
              "additionalProperties": false
            },
            "kind": {
              "type": "string",
              "enum": [
                "F",
                "S",
                "T",
                "Y",
                "N"
              ]
            },
            "employment": {
              "type": "string",
              "enum": [
                "A",
                "H",
                "M",
                "Q",
                "X",
                "F",
                "R"
              ]
            },
            "establishment": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "otherEin": {
              "type": "string",
              "pattern": "^(?!00|07|08|09|17|18|19|28|29|49|69|70|78|79|89)\\d{9}$"
            },
            "terminating": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            },
            "thirdPartySickPay": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            },
            "thirdPartySickPayTax": {
              "description": "Employer total of income tax withheld by third-party sick pay providers, reported separately in RT.",
              "type": "string",
              "pattern": "^\\d{1,13}(?:\\.\\d{1,2})?$"
            },
            "signaturePin": {
              "type": "string"
            }
          },
          "required": [
            "ein",
            "name",
            "street",
            "city",
            "state",
            "zip",
            "contact",
            "kind",
            "employment"
          ],
          "additionalProperties": false
        },
        "maryland": {
          "type": "object",
          "properties": {
            "crn": {
              "type": "string",
              "pattern": "^\\d{8}$"
            },
            "createdDate": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "description": "File creation date."
            },
            "createdTime": {
              "type": "string",
              "pattern": "^(?:[01]\\d|2[0-3])[0-5]\\d[0-5]\\d\\d{2}$",
              "description": "HHMMSSNN, hundredths of a second."
            },
            "filedDate": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "naics": {
              "type": "string",
              "pattern": "^\\d{6}$"
            },
            "representative": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 28,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 15,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "phone": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                }
              },
              "required": [
                "name",
                "title",
                "phone"
              ],
              "additionalProperties": false
            },
            "taxesReported": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$",
              "description": "MW508 line 2, withholding reported on MW506s."
            },
            "taxesPaid": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$",
              "description": "MW508 line 3c, withholding actually paid."
            },
            "exemptCredits": {
              "description": "MW508 line 3d, credits from MW508CR.",
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$"
            },
            "overpaymentCredit": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$"
            },
            "overpaymentRefund": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$"
            },
            "complete": {
              "type": "boolean"
            },
            "additionalW2s": {
              "type": "boolean"
            },
            "additional1099s": {
              "type": "boolean"
            }
          },
          "required": [
            "crn",
            "createdDate",
            "createdTime",
            "filedDate",
            "naics",
            "representative",
            "taxesReported",
            "taxesPaid",
            "complete",
            "additionalW2s",
            "additional1099s"
          ],
          "additionalProperties": false
        },
        "pennsylvania": {
          "type": "object",
          "properties": {
            "accountId": {
              "type": "string",
              "pattern": "^\\d{8}$"
            }
          },
          "required": [
            "accountId"
          ],
          "additionalProperties": false
        },
        "employees": {
          "minItems": 1,
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ssn": {
                "type": "string",
                "pattern": "^(?!666|9)\\d{9}$",
                "description": "Nine digits, or 000000000 if SSA has not issued an SSN."
              },
              "firstName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "pattern": "^[\\x20-\\x7E]+$"
              },
              "middleName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "pattern": "^[\\x20-\\x7E]+$"
              },
              "lastName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 20,
                "pattern": "^[\\x20-\\x7E]+$"
              },
              "suffix": {
                "type": "string",
                "pattern": "^[A-Z]{1,4}$"
              },
              "location": {
                "type": "string",
                "minLength": 1,
                "maxLength": 22,
                "pattern": "^[\\x20-\\x7E]+$"
              },
              "street": {
                "type": "string",
                "minLength": 1,
                "maxLength": 22,
                "pattern": "^[\\x20-\\x7E]+$"
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 22,
                "pattern": "^[\\x20-\\x7E]+$"
              },
              "state": {
                "type": "string",
                "enum": [
                  "AL",
                  "AK",
                  "AZ",
                  "AR",
                  "CA",
                  "CO",
                  "CT",
                  "DE",
                  "DC",
                  "FL",
                  "GA",
                  "HI",
                  "ID",
                  "IL",
                  "IN",
                  "IA",
                  "KS",
                  "KY",
                  "LA",
                  "ME",
                  "MD",
                  "MA",
                  "MI",
                  "MN",
                  "MS",
                  "MO",
                  "MT",
                  "NE",
                  "NV",
                  "NH",
                  "NJ",
                  "NM",
                  "NY",
                  "NC",
                  "ND",
                  "OH",
                  "OK",
                  "OR",
                  "PA",
                  "RI",
                  "SC",
                  "SD",
                  "TN",
                  "TX",
                  "UT",
                  "VT",
                  "VA",
                  "WA",
                  "WV",
                  "WI",
                  "WY",
                  "AA",
                  "AE",
                  "AP",
                  "AS",
                  "GU",
                  "MP",
                  "PR",
                  "VI"
                ]
              },
              "zip": {
                "type": "string",
                "pattern": "^\\d{5}(?:-?\\d{4})?$"
              },
              "wages": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "federalTax": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "socialSecurityWages": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "socialSecurityTax": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "medicareWages": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "medicareTax": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "socialSecurityTips": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "dependentCare": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "D": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "E": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "F": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "G": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "H": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "section457": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "W": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "nonSection457": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "Q": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "C": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "V": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "Y": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "AA": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "BB": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "DD": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "FF": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "allocatedTips": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "R": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "S": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "T": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "M": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "N": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "Z": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "EE": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "GG": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "HH": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "II": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "A": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "B": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "J": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "K": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "L": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "P": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "TA": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "TP": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "TT": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "statutoryEmployee": {
                "type": "string",
                "enum": [
                  "0",
                  "1"
                ]
              },
              "retirementPlan": {
                "type": "string",
                "enum": [
                  "0",
                  "1"
                ]
              },
              "thirdPartySickPay": {
                "type": "string",
                "enum": [
                  "0",
                  "1"
                ]
              },
              "primaryTippedOccupation": {
                "type": "string",
                "pattern": "^\\d{3}$"
              },
              "secondaryTippedOccupation": {
                "type": "string",
                "pattern": "^\\d{3}$"
              },
              "mdWages": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "mdTax": {
                "description": "Maryland state and local withholding combined.",
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$"
              },
              "mdPickup": {
                "type": "string",
                "pattern": "^\\d{1,8}(?:\\.\\d{1,2})?$"
              },
              "mdAllowances": {
                "description": "Maryland withholding allowances, two digits.",
                "type": "string",
                "pattern": "^\\d{2}$"
              },
              "paWages": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "paTax": {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$",
                "description": "Nonnegative USD decimal string, up to two fractional digits."
              },
              "paItin": {
                "type": "string",
                "pattern": "^9\\d{8}$"
              }
            },
            "required": [
              "ssn",
              "firstName",
              "lastName",
              "street",
              "city",
              "state",
              "zip",
              "wages",
              "federalTax",
              "socialSecurityWages",
              "socialSecurityTax",
              "medicareWages",
              "medicareTax"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "taxYear",
        "submitter",
        "employer",
        "employees"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "taxYear": {
          "type": "number",
          "const": 2026
        },
        "submitter": {
          "type": "object",
          "properties": {
            "ein": {
              "type": "string",
              "pattern": "^(?!00|07|08|09|17|18|19|28|29|49|69|70|78|79|89)\\d{9}$"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 57,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "location": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "street": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "city": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "state": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "AA",
                "AE",
                "AP",
                "AS",
                "GU",
                "MP",
                "PR",
                "VI"
              ]
            },
            "zip": {
              "type": "string",
              "pattern": "^\\d{5}(?:-?\\d{4})?$"
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 27,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "email": {
                  "type": "string",
                  "maxLength": 40,
                  "pattern": "^(?!\\.)(?!.*\\.\\.)(?!.*\\.@)[A-Z0-9.!#$%&'*+\\-/=?^`_{|}~]+@[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?(?:\\.[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?)*\\.[A-Z]{2,}$"
                },
                "phone": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                },
                "extension": {
                  "type": "string",
                  "pattern": "^\\d{1,5}$"
                },
                "fax": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                }
              },
              "required": [
                "name",
                "email",
                "phone"
              ],
              "additionalProperties": false
            },
            "bsoUserId": {
              "type": "string",
              "pattern": "^[A-Z0-9]{8}$"
            },
            "software": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "in_house"
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "off_the_shelf"
                    },
                    "vendorCode": {
                      "type": "string",
                      "pattern": "^\\d{4}$"
                    }
                  },
                  "required": [
                    "kind",
                    "vendorCode"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "preparerCode": {
              "type": "string",
              "enum": [
                "A",
                "L",
                "S",
                "P",
                "O"
              ]
            },
            "resubmissionWfid": {
              "type": "string",
              "pattern": "^[A-Z0-9]{6}$"
            }
          },
          "required": [
            "ein",
            "name",
            "street",
            "city",
            "state",
            "zip",
            "contact",
            "bsoUserId",
            "software",
            "preparerCode"
          ],
          "additionalProperties": false
        },
        "employer": {
          "type": "object",
          "properties": {
            "ein": {
              "type": "string",
              "pattern": "^(?!00|07|08|09|17|18|19|28|29|49|69|70|78|79|89)\\d{9}$"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 57,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "location": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "street": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "city": {
              "type": "string",
              "minLength": 1,
              "maxLength": 22,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "state": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "AA",
                "AE",
                "AP",
                "AS",
                "GU",
                "MP",
                "PR",
                "VI"
              ]
            },
            "zip": {
              "type": "string",
              "pattern": "^\\d{5}(?:-?\\d{4})?$"
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 27,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "email": {
                  "type": "string",
                  "maxLength": 40,
                  "pattern": "^(?!\\.)(?!.*\\.\\.)(?!.*\\.@)[A-Z0-9.!#$%&'*+\\-/=?^`_{|}~]+@[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?(?:\\.[A-Z0-9]+(?:[A-Z0-9-]*[A-Z0-9])?)*\\.[A-Z]{2,}$"
                },
                "phone": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                },
                "extension": {
                  "type": "string",
                  "pattern": "^\\d{1,5}$"
                },
                "fax": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                }
              },
              "required": [
                "name",
                "email",
                "phone"
              ],
              "additionalProperties": false
            },
            "kind": {
              "type": "string",
              "enum": [
                "F",
                "S",
                "T",
                "Y",
                "N"
              ]
            },
            "employment": {
              "type": "string",
              "enum": [
                "A",
                "H",
                "M",
                "Q",
                "X",
                "F",
                "R"
              ]
            },
            "establishment": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4,
              "pattern": "^[\\x20-\\x7E]+$"
            },
            "otherEin": {
              "type": "string",
              "pattern": "^(?!00|07|08|09|17|18|19|28|29|49|69|70|78|79|89)\\d{9}$"
            },
            "terminating": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            },
            "thirdPartySickPay": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            },
            "thirdPartySickPayTax": {
              "description": "Employer total of income tax withheld by third-party sick pay providers, reported separately in RT.",
              "type": "string",
              "pattern": "^\\d{1,13}(?:\\.\\d{1,2})?$"
            },
            "signaturePin": {
              "type": "string"
            }
          },
          "required": [
            "ein",
            "name",
            "street",
            "city",
            "state",
            "zip",
            "contact",
            "kind",
            "employment"
          ],
          "additionalProperties": false
        },
        "maryland": {
          "type": "object",
          "properties": {
            "crn": {
              "type": "string",
              "pattern": "^\\d{8}$"
            },
            "createdDate": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "description": "File creation date."
            },
            "createdTime": {
              "type": "string",
              "pattern": "^(?:[01]\\d|2[0-3])[0-5]\\d[0-5]\\d\\d{2}$",
              "description": "HHMMSSNN, hundredths of a second."
            },
            "filedDate": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "naics": {
              "type": "string",
              "pattern": "^\\d{6}$"
            },
            "representative": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 28,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 15,
                  "pattern": "^[\\x20-\\x7E]+$"
                },
                "phone": {
                  "type": "string",
                  "pattern": "^\\d{10}$"
                }
              },
              "required": [
                "name",
                "title",
                "phone"
              ],
              "additionalProperties": false
            },
            "taxesReported": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$",
              "description": "MW508 line 2, withholding reported on MW506s."
            },
            "taxesPaid": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$",
              "description": "MW508 line 3c, withholding actually paid."
            },
            "exemptCredits": {
              "description": "MW508 line 3d, credits from MW508CR.",
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$"
            },
            "overpaymentCredit": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$"
            },
            "overpaymentRefund": {
              "type": "string",
              "pattern": "^\\d{1,10}(?:\\.\\d{1,2})?$"
            },
            "complete": {
              "type": "boolean"
            },
            "additionalW2s": {
              "type": "boolean"
            },
            "additional1099s": {
              "type": "boolean"
            }
          },
          "required": [
            "crn",
            "createdDate",
            "createdTime",
            "filedDate",
            "naics",
            "representative",
            "taxesReported",
            "taxesPaid",
            "complete",
            "additionalW2s",
            "additional1099s"
          ],
          "additionalProperties": false
        },
        "pennsylvania": {
          "type": "object",
          "properties": {
            "accountId": {
              "type": "string",
              "pattern": "^\\d{8}$"
            }
          },
          "required": [
            "accountId"
          ],
          "additionalProperties": false
        },
        "csv": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000000,
          "description": "Comma-delimited UTF-8 with employee field names as headers and blank cells for omitted optional fields. Up to 1,000 employees."
        }
      },
      "required": [
        "taxYear",
        "submitter",
        "employer",
        "csv"
      ],
      "additionalProperties": false
    }
  ],
  "examples": [
    {
      "taxYear": 2026,
      "submitter": {
        "ein": "123456789",
        "name": "Susquehanna Payroll",
        "street": "210 Main St",
        "city": "York",
        "state": "PA",
        "zip": "17401",
        "bsoUserId": "TEST2026",
        "software": {
          "kind": "in_house"
        },
        "preparerCode": "S",
        "contact": {
          "name": "Pay Support",
          "phone": "7175550101",
          "email": "payroll@example.com"
        }
      },
      "employer": {
        "ein": "232345678",
        "name": "Susquehanna Machine",
        "street": "212 Main St",
        "city": "York",
        "state": "PA",
        "zip": "17401",
        "kind": "N",
        "employment": "R",
        "contact": {
          "name": "Pat Baker",
          "phone": "7175550102",
          "email": "Pat.Baker@example.com"
        }
      },
      "employees": [
        {
          "ssn": "123456780",
          "firstName": "Dana",
          "lastName": "Wood",
          "street": "1 Maple St",
          "city": "York",
          "state": "PA",
          "zip": "17401-1234",
          "wages": "40321.77",
          "federalTax": "4261.16",
          "socialSecurityWages": "42500",
          "socialSecurityTax": "2635",
          "medicareWages": "42500",
          "medicareTax": "616.25",
          "D": "2178.23",
          "retirementPlan": "1",
          "paWages": "42500",
          "paTax": "1304.75"
        }
      ],
      "pennsylvania": {
        "accountId": "12345678"
      }
    }
  ],
  "type": "object"
}
```

Response:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "pass",
        "invalid",
        "needs_review"
      ]
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "severity": {
            "type": "string",
            "enum": [
              "error",
              "needs_review"
            ]
          },
          "destination": {
            "type": "string",
            "enum": [
              "SSA",
              "MD",
              "PA"
            ]
          },
          "rule": {
            "type": "string"
          },
          "line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "column": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "input": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "severity",
          "destination",
          "rule",
          "field",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "billableEmployeeStates": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "verification": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "const": "published_specification"
        },
        "agencyPortal": {
          "type": "string",
          "const": "not_run"
        },
        "standards": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              },
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "name",
              "version",
              "date",
              "url"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "method",
        "agencyPortal",
        "standards"
      ],
      "additionalProperties": false
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "destination": {
            "type": "string",
            "enum": [
              "SSA",
              "MD",
              "PA"
            ]
          },
          "text": {
            "type": "string",
            "description": "Fixed-width ASCII text. Save the text as-is without changing trailing spaces."
          },
          "recordCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "destination",
          "text",
          "recordCount"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "status",
    "findings",
    "billableEmployeeStates",
    "verification",
    "files"
  ],
  "additionalProperties": false
}
```
