{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/doola/json-schema/doola-partner-tax-filing-year-dto-schema.json",
  "title": "PartnerTaxFilingYearDto",
  "description": "Where a company's federal tax return for one tax year stands.",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/doola-openapi.json#/components/schemas/PartnerTaxFilingYearDto",
  "type": "object",
  "properties": {
    "doolaCompanyId": {
      "type": "string",
      "description": "doola company ID (KSUID)."
    },
    "taxYear": {
      "type": "integer",
      "format": "int32",
      "description": "The tax year the return covers."
    },
    "status": {
      "type": "string",
      "description": "Where the return stands.",
      "enum": [
        "NOT_STARTED",
        "INTAKE_IN_PROGRESS",
        "ENGAGEMENT_SIGNATURE_REQUIRED",
        "READY_FOR_HANDOFF",
        "INTAKE_REVIEW",
        "DOCUMENTS_RECEIVED",
        "PREPARATION_IN_PROGRESS",
        "REVIEW_IN_PROGRESS",
        "RETURN_SIGNATURE_REQUIRED",
        "ACTION_REQUIRED",
        "CLIENT_UNRESPONSIVE",
        "RETURN_FILED",
        "SCHEDULE_C_COMPLETED",
        "FILING_CANCELED"
      ]
    },
    "label": {
      "type": "string",
      "description": "The status as doola shows it to the customer."
    },
    "taxClassification": {
      "type": [
        "string",
        "null"
      ],
      "description": "How the IRS taxes the company. Null until doola can classify it.",
      "enum": [
        "FOREIGN_OWNED_SMLLC",
        "US_OWNED_SMLLC",
        "MULTI_MEMBER_LLC",
        "S_CORPORATION",
        "C_CORPORATION",
        null
      ]
    },
    "dueDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Filing deadline, the extended one when extensionFiled. Null when taxClassification is null."
    },
    "extensionFiled": {
      "type": "boolean",
      "description": "A Form 7004 extension is on file."
    },
    "autoExtension": {
      "type": "boolean",
      "description": "doola will file a Form 7004 extension for the company."
    },
    "windowOpensOn": {
      "type": "string",
      "format": "date",
      "description": "First day of the filing window: January 6 of taxYear + 1."
    },
    "windowClosesOn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Last day of the filing window, equal to dueDate. Null when taxClassification is null."
    },
    "nextWindowOpensOn": {
      "type": "string",
      "format": "date",
      "description": "The next January 6 on or after today, America/New_York."
    },
    "windowOpen": {
      "type": "boolean",
      "description": "Today, America/New_York, is inside the filing window."
    },
    "submittedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the customer submitted their tax information to doola. Null until they do."
    },
    "filedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the return was filed. Null until it is."
    },
    "availability": {
      "type": "string",
      "description": "Whether the customer can file this tax year through doola. A year that already has a return is AVAILABLE, since it resumes. Otherwise it comes from your tax confirm for the year and the company's eligibility. The filing window is not part of it: read windowOpen and windowOpensOn for when a new return can start. AVAILABLE: the customer can resume the return, and start it while windowOpen. PENDING_EIN: the company needs its EIN first. NOT_ELIGIBLE_THIS_YEAR: the company was formed too late to file this year, or its formation is not complete yet. NOT_AVAILABLE: anything else, such as no confirm for this tax year.",
      "enum": [
        "AVAILABLE",
        "PENDING_EIN",
        "NOT_ELIGIBLE_THIS_YEAR",
        "NOT_AVAILABLE"
      ]
    },
    "entitledThrough": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The last day, in America/New_York, the company holds tax filing under your confirm for this tax year: the same entitledThrough the confirm answered. Null when the year has no live confirm."
    }
  },
  "required": [
    "autoExtension",
    "availability",
    "doolaCompanyId",
    "dueDate",
    "entitledThrough",
    "extensionFiled",
    "filedAt",
    "label",
    "nextWindowOpensOn",
    "status",
    "submittedAt",
    "taxClassification",
    "taxYear",
    "windowClosesOn",
    "windowOpen",
    "windowOpensOn"
  ]
}