Skip to content

Finance & accountingUS W-2 EFW2

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.

POSThttps://api.kanagu.dev/v1/efw2/generate
Price
$0.15 per employee-state, on successful calls only
Authentication
API key required.
MCP
call_operation with operation: "efw2.generate" at https://api.kanagu.dev/mcp

Compliance coverage

Jurisdictions
Jurisdictions: US
Standards
  • SSA Publication 42-007Tax year 2026, version 42026-11-12Source
  • Maryland Employer Reporting of W-2s Instructions and SpecificationsTax year 2026, version 1.02026-09-27Source
  • Pennsylvania myPATH W-2 Wage Records (EFW2)Undated web specification, snapshot 2026-11-262026-11-26Source
  • 26 CFR § 1.224-1(h), Table 1TD 100442026-04-13Source
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
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"}}'
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();
curl https://api.kanagu.dev/mcp \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call_operation","arguments":{"operation":"efw2.generate","input":{"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"}}}}}'
Request body
{
  "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"
  }
}

Request body

application/json

taxYear2026required
submitterobjectrequired
submitter.einstringrequired
submitter.namestring (max 57 chars)required
submitter.locationstring (max 22 chars)
submitter.streetstring (max 22 chars)required
submitter.citystring (max 22 chars)required
submitter.state"AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | … (59 values)required
submitter.zipstringrequired
submitter.contactobjectrequired
submitter.contact.namestring (max 27 chars)required
submitter.contact.emailstring (max 40 chars)required
submitter.contact.phonestringrequired
submitter.contact.extensionstring
submitter.contact.faxstring
submitter.bsoUserIdstringrequired
submitter.softwareobjectrequired
submitter.preparerCode"A" | "L" | "S" | "P" | "O"required
submitter.resubmissionWfidstring
employerobjectrequired
employer.einstringrequired
employer.namestring (max 57 chars)required
employer.locationstring (max 22 chars)
employer.streetstring (max 22 chars)required
employer.citystring (max 22 chars)required
employer.state"AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | … (59 values)required
employer.zipstringrequired
employer.contactobjectrequired
employer.contact.namestring (max 27 chars)required
employer.contact.emailstring (max 40 chars)required
employer.contact.phonestringrequired
employer.contact.extensionstring
employer.contact.faxstring
employer.kind"F" | "S" | "T" | "Y" | "N"required
employer.employment"A" | "H" | "M" | "Q" | "X" | "F" | "R"required
employer.establishmentstring (max 4 chars)
employer.otherEinstring
employer.terminating"0" | "1"
employer.thirdPartySickPay"0" | "1"
employer.thirdPartySickPayTaxstring
Employer total of income tax withheld by third-party sick pay providers, reported separately in RT.
employer.signaturePinstring
marylandobject
maryland.crnstringrequired
maryland.createdDatestring (date)required
File creation date.
maryland.createdTimestringrequired
HHMMSSNN, hundredths of a second.
maryland.filedDatestring (date)required
maryland.naicsstringrequired
maryland.representativeobjectrequired
maryland.representative.namestring (max 28 chars)required
maryland.representative.titlestring (max 15 chars)required
maryland.representative.phonestringrequired
maryland.taxesReportedstringrequired
MW508 line 2, withholding reported on MW506s.
maryland.taxesPaidstringrequired
MW508 line 3c, withholding actually paid.
maryland.exemptCreditsstring
MW508 line 3d, credits from MW508CR.
maryland.overpaymentCreditstring
maryland.overpaymentRefundstring
maryland.completebooleanrequired
maryland.additionalW2sbooleanrequired
maryland.additional1099sbooleanrequired
pennsylvaniaobject
pennsylvania.accountIdstringrequired

Then exactly one of these 2 shapes:

1. With employees

employeesarray of objectrequired
employees[].ssnstringrequired
Nine digits, or 000000000 if SSA has not issued an SSN.
employees[].firstNamestring (max 15 chars)required
employees[].middleNamestring (max 15 chars)
employees[].lastNamestring (max 20 chars)required
employees[].suffixstring
employees[].locationstring (max 22 chars)
employees[].streetstring (max 22 chars)required
employees[].citystring (max 22 chars)required
employees[].state"AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | … (59 values)required
employees[].zipstringrequired
employees[].wagesstringrequired
Nonnegative USD decimal string, up to two fractional digits.
employees[].federalTaxstringrequired
Nonnegative USD decimal string, up to two fractional digits.
employees[].socialSecurityWagesstringrequired
Nonnegative USD decimal string, up to two fractional digits.
employees[].socialSecurityTaxstringrequired
Nonnegative USD decimal string, up to two fractional digits.
employees[].medicareWagesstringrequired
Nonnegative USD decimal string, up to two fractional digits.
employees[].medicareTaxstringrequired
Nonnegative USD decimal string, up to two fractional digits.
employees[].socialSecurityTipsstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].dependentCarestring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Dstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Estring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Fstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Gstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Hstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].section457string
Nonnegative USD decimal string, up to two fractional digits.
employees[].Wstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].nonSection457string
Nonnegative USD decimal string, up to two fractional digits.
employees[].Qstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Cstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Vstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Ystring
Nonnegative USD decimal string, up to two fractional digits.
employees[].AAstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].BBstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].DDstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].FFstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].allocatedTipsstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Rstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Sstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Tstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Mstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Nstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Zstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].EEstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].GGstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].HHstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].IIstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Astring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Bstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Jstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Kstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Lstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].Pstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].TAstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].TPstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].TTstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].statutoryEmployee"0" | "1"
employees[].retirementPlan"0" | "1"
employees[].thirdPartySickPay"0" | "1"
employees[].primaryTippedOccupationstring
employees[].secondaryTippedOccupationstring
employees[].mdWagesstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].mdTaxstring
Maryland state and local withholding combined.
employees[].mdPickupstring
employees[].mdAllowancesstring
Maryland withholding allowances, two digits.
employees[].paWagesstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].paTaxstring
Nonnegative USD decimal string, up to two fractional digits.
employees[].paItinstring

2. With csv

csvstring (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

200 · application/json

status"pass" | "invalid" | "needs_review"required
findingsarray of objectrequired
findings[].severity"error" | "needs_review"required
findings[].destination"SSA" | "MD" | "PA"required
findings[].rulestringrequired
findings[].lineinteger (≤ 9007199254740991)
findings[].columninteger (≤ 9007199254740991)
findings[].inputstring
findings[].fieldstringrequired
findings[].expectedstringrequired
findings[].actualstringrequired
findings[].sourcestring (uri)required
billableEmployeeStatesinteger (0 to 9007199254740991)required
verificationobjectrequired
verification.method"published_specification"required
verification.agencyPortal"not_run"required
verification.standardsarray of objectrequired
verification.standards[].namestringrequired
verification.standards[].versionstringrequired
verification.standards[].datestring (date)required
verification.standards[].urlstring (uri)required
filesarray of objectrequired
files[].destination"SSA" | "MD" | "PA"required
files[].textstringrequired
Fixed-width ASCII text. Save the text as-is without changing trailing spaces.
files[].recordCountinteger (≤ 9007199254740991)required

Try it

efw2.generate

$0.15/employee-state

 

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_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.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.

JSON Schema

Request schema
{
  "$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 schema
{
  "$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
}