{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/doola/json-schema/doola-partner-company-response-schema.json",
  "title": "PartnerCompanyResponse",
  "description": "A company, including formation progress and post-formation details.",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/doola-openapi.json#/components/schemas/PartnerCompanyResponse",
  "type": "object",
  "properties": {
    "doolaCompanyId": {
      "type": "string",
      "description": "doola company ID (KSUID)."
    },
    "doolaCustomerId": {
      "type": "string",
      "description": "Owning doola customer ID (KSUID)."
    },
    "entityType": {
      "type": "string",
      "description": "Entity type.",
      "enum": [
        "LLC",
        "CCorp"
      ]
    },
    "state": {
      "type": "string",
      "description": "State of formation."
    },
    "nameOptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PartnerCompanyNameOptionDto"
      }
    },
    "legalName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The company's name as the state approved it, with its entity ending. Null until the state approves the formation, the same point `formationFilingDate` is set; set from the start for an imported company. Reflects any later correction doola makes to the name. `nameOptions` lists the names that were submitted, unless doola corrected them. The Articles remain the state's own record."
    },
    "industry": {
      "type": "string",
      "description": "Unique NAICS industry label the company was classified under."
    },
    "description": {
      "type": "string"
    },
    "responsibleParty": {
      "anyOf": [
        {
          "$ref": "#/$defs/PartnerResponsiblePartyDto"
        },
        {
          "type": "null"
        }
      ],
      "description": "The person responsible for the company. `null` for a company your customer imported in the embedded app, which collects no people."
    },
    "addresses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PartnerCompanyAddressDto"
      }
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PartnerCompanyMemberDto"
      }
    },
    "managementType": {
      "type": "string",
      "description": "Who runs the LLC: MEMBER_MANAGED, its owners, or MANAGER_MANAGED, the people in `managers`. Absent for a CCorp and for an LLC that did not state it.",
      "enum": [
        "MEMBER_MANAGED",
        "MANAGER_MANAGED"
      ]
    },
    "managers": {
      "type": "array",
      "description": "Managers of a manager-managed LLC, with masked SSNs. Present only when `managementType` is `MANAGER_MANAGED`; `members` still lists the owners.",
      "items": {
        "$ref": "#/$defs/PartnerCompanyManagerDto"
      }
    },
    "adminNotes": {
      "type": "array",
      "description": "Internal notes visible to the partner.",
      "items": {
        "$ref": "#/$defs/PartnerAdminNoteDto"
      }
    },
    "formationSubmissionStatus": {
      "type": "string",
      "description": "Tracks doola's handling of the formation request, from intake until the state filing is recorded. AWAITING_PAYMENT: submitted through the SDK, waiting on your payment confirmation — nothing is filed and no cost is incurred yet. PENDING: request received and being processed. SUBMITTED: accepted and formation started. COMPLETED: the state filing is recorded, set when company_formation_completed fires. FAILED: submission failed (see adminNotes). CANCELLED: withdrawn by doola before payment was confirmed; nothing was filed and a payment confirmation for it is refused.",
      "enum": [
        "AWAITING_PAYMENT",
        "PENDING",
        "SUBMITTED",
        "COMPLETED",
        "FAILED",
        "CANCELLED"
      ]
    },
    "ein": {
      "type": "string",
      "description": "Employer Identification Number, once issued."
    },
    "einApplicationSubmittedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When doola sent the EIN application (Form SS-4) to the IRS, in UTC. Null until the IRS has received the fax, and stays null when doola gets the EIN without faxing an SS-4. If doola sends the application again, this is the latest fax the IRS received. Set when company_ein_application_submitted fires."
    },
    "formationSubmittedToStateAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When doola submitted the formation filing to the state, in UTC. Null until submitted. The state then reviews it; formationFilingDate is the date the state approved it. Set when company_formation_submitted_to_state fires."
    },
    "formationFilingDate": {
      "type": "string",
      "format": "date",
      "description": "Filing date the state recorded for the formation, set once the state approves it. Null until then."
    },
    "formationFilingNumber": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filing number assigned by the state when the formation was filed, once filed."
    },
    "services": {
      "type": "array",
      "description": "Services attached to the company.",
      "items": {
        "$ref": "#/$defs/PartnerCompanyServiceDto"
      }
    },
    "executiveMembers": {
      "type": "array",
      "description": "C-Corp officers and directors. Present for a CCorp.",
      "items": {
        "$ref": "#/$defs/PartnerCCorpExecMemberDto"
      }
    },
    "ccorpValuation": {
      "$ref": "#/$defs/PartnerCcorpValuationDto",
      "description": "C-Corp share structure. Present for a CCorp."
    },
    "signatureRequirements": {
      "type": "array",
      "description": "Signature steps required for this company, with their current status. A valid SSN on the responsible party exempts the company from formation signatures. An ITIN or another owner's SSN does not. SSNs are checked for format, not issuance. Otherwise SS-4 is required, plus Form 8821 for expedited EIN. Each status is COMPLETED once that document is signed, otherwise PENDING. Always present — an empty list means no signature is required, not that the field is absent.",
      "items": {
        "$ref": "#/$defs/PartnerSignatureRequirementDto"
      }
    },
    "origin": {
      "type": "string",
      "description": "DOOLA for a company doola formed through the API, IMPORTED for one the partner imported after forming it elsewhere.",
      "enum": [
        "DOOLA",
        "IMPORTED"
      ]
    },
    "importStatus": {
      "type": "string",
      "description": "Where an imported company stands. AWAITING_DOCUMENTS: the documents in documentRequirements are not all on file. IN_REVIEW: they are, and the company is being checked. VERIFIED: the company was checked; annual filing is allowed. A verified company can go back to IN_REVIEW if it needs another check. Absent for a company formed through doola.",
      "enum": [
        "AWAITING_DOCUMENTS",
        "IN_REVIEW",
        "VERIFIED"
      ]
    },
    "documentRequirements": {
      "type": "array",
      "description": "The documents an imported company must upload: the Articles always, and the EIN letter when the import sent an EIN. Absent for a company formed through doola.",
      "items": {
        "$ref": "#/$defs/PartnerDocumentRequirementDto"
      }
    },
    "registeredAgent": {
      "anyOf": [
        {
          "$ref": "#/$defs/PartnerRegisteredAgentDto"
        },
        {
          "type": "null"
        }
      ],
      "description": "Who the company's registered agent is today. For an imported company, the agent given at import until its registered agent transfer completes (`RegisteredAgent` service `Active`), then doola's registered agent for the company's state. For a company formed through doola, doola's registered agent for the company's state. `null` when doola has no registered agent on record for that state, and for a company your customer imported in the embedded app without one, until its registered agent transfer completes."
    }
  },
  "$defs": {
    "PartnerAddressDto": {
      "type": "object",
      "description": "A postal address.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Server-assigned ID.",
          "readOnly": true
        },
        "line1": {
          "type": "string",
          "description": "Street address line 1."
        },
        "line2": {
          "type": "string",
          "description": "Street address line 2."
        },
        "city": {
          "type": "string",
          "description": "City."
        },
        "state": {
          "type": "string",
          "description": "State or province."
        },
        "postalCode": {
          "type": "string",
          "description": "Postal or ZIP code."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-3 country code (e.g. USA)."
        },
        "phone": {
          "type": "string",
          "description": "Phone number in E.164 format. Required for a person's address (the responsible party, a member, or an executive member); optional for a company `mailing` or `business` address."
        }
      },
      "required": [
        "city",
        "country",
        "line1",
        "postalCode",
        "state"
      ]
    },
    "PartnerAdminNoteDto": {
      "type": "object",
      "description": "A note attached to a company.",
      "properties": {
        "noteId": {
          "type": "string",
          "description": "Note ID."
        },
        "note": {
          "type": "string",
          "description": "Note body."
        },
        "status": {
          "type": "string",
          "description": "Note status.",
          "enum": [
            "Unresolved",
            "Resolved",
            "Deleted"
          ]
        },
        "createdBy": {
          "type": "string",
          "description": "Who created the note."
        }
      }
    },
    "PartnerCCorpExecMemberDto": {
      "type": "object",
      "description": "A C-Corp executive member — an officer or director.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Server-assigned ID, ignored on create and import. In the importCorrections of an IMPORT_INFO_REQUIRED resolution, send it back to keep this person and their stored SSN."
        },
        "type": {
          "type": "string",
          "description": "Executive role. The list must include at least one of each role; President, Secretary, and Treasurer may each appear only once, while Director may repeat.",
          "enum": [
            "President",
            "Secretary",
            "Treasurer",
            "Director"
          ]
        },
        "legalFirstName": {
          "type": "string",
          "description": "Legal first name."
        },
        "legalLastName": {
          "type": "string",
          "description": "Legal last name."
        },
        "ssn": {
          "type": "string",
          "description": "Social Security Number or ITIN. Optional. Input: nine ASCII digits or XXX-XX-XXXX. Handled as sensitive data."
        },
        "address": {
          "$ref": "#/$defs/PartnerAddressDto",
          "description": "Executive member's address."
        }
      },
      "required": [
        "address",
        "legalFirstName",
        "legalLastName",
        "type"
      ]
    },
    "PartnerCcorpValuationDto": {
      "type": "object",
      "description": "C-Corp share structure.",
      "properties": {
        "noOfShares": {
          "type": "integer",
          "format": "int32",
          "description": "Number of authorized shares. Must be greater than 0."
        },
        "shareValue": {
          "type": "number",
          "description": "Par value per share, in USD. Must be greater than 0."
        }
      },
      "required": [
        "noOfShares",
        "shareValue"
      ]
    },
    "PartnerCompanyAddressDto": {
      "type": "object",
      "description": "A company address of a given type.",
      "properties": {
        "provider": {
          "type": "string",
          "description": "Who provides this address. Use `customer` to supply the address yourself in the `address` field. Use `registeredAgent` to have doola fill in its Registered Agent address for the company's state; leave `address` out, as it is not used for a registered-agent entry.",
          "enum": [
            "customer",
            "registeredAgent"
          ]
        },
        "type": {
          "type": "string",
          "description": "Which address this is. Send exactly one `mailing` entry and one `business` entry.",
          "enum": [
            "mailing",
            "business"
          ]
        },
        "address": {
          "$ref": "#/$defs/PartnerAddressDto",
          "description": "The address itself."
        }
      },
      "required": [
        "provider",
        "type"
      ]
    },
    "PartnerCompanyManagerDto": {
      "type": "object",
      "description": "A manager of a manager-managed LLC: a person who runs the company.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Server-assigned ID, ignored on create and import. In the importCorrections of an IMPORT_INFO_REQUIRED resolution, send it back to keep this person and their stored SSN."
        },
        "legalFirstName": {
          "type": "string",
          "description": "Manager's legal first name."
        },
        "legalLastName": {
          "type": "string",
          "description": "Manager's legal last name."
        },
        "ssn": {
          "type": "string",
          "description": "Manager's Social Security Number or ITIN. Optional. Input: nine ASCII digits or XXX-XX-XXXX. Handled as sensitive data."
        },
        "email": {
          "type": "string",
          "description": "Manager's contact email."
        },
        "address": {
          "$ref": "#/$defs/PartnerAddressDto",
          "description": "Manager's address. When sent, a phone number is required."
        }
      },
      "required": [
        "email",
        "legalFirstName",
        "legalLastName"
      ]
    },
    "PartnerCompanyMemberDto": {
      "type": "object",
      "description": "A company member/owner. Ownership across all members must total 100.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Server-assigned ID, ignored on create and import. In the importCorrections of an IMPORT_INFO_REQUIRED resolution, send it back to keep this person and their stored SSN."
        },
        "legalFirstName": {
          "type": "string",
          "description": "Legal first name (natural persons)."
        },
        "legalLastName": {
          "type": "string",
          "description": "Legal last name (natural persons)."
        },
        "contactFullName": {
          "type": "string",
          "description": "Full contact name (entities or where a single name is used)."
        },
        "isNaturalPerson": {
          "type": "boolean",
          "description": "True if the member is a person, false if it is another entity."
        },
        "address": {
          "$ref": "#/$defs/PartnerAddressDto",
          "description": "Member's address."
        },
        "ownershipPercent": {
          "type": "number",
          "description": "Ownership percentage (0–100)."
        },
        "ssn": {
          "type": "string",
          "description": "Social Security Number or ITIN. Optional. Input: nine ASCII digits or XXX-XX-XXXX. Handled as sensitive data."
        }
      },
      "required": [
        "address",
        "isNaturalPerson",
        "ownershipPercent"
      ]
    },
    "PartnerCompanyNameOptionDto": {
      "type": "object",
      "description": "A candidate company name.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Server-assigned ID.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Proposed company name, without the entity ending."
        },
        "entityTypeEnding": {
          "type": "string",
          "description": "Entity-type ending appended to the name."
        },
        "position": {
          "type": "integer",
          "format": "int32",
          "description": "Preference order, lowest first. Ignored on create, where array order sets the preference and responses return it starting at 0. On a name-options resolution, options are ordered by this value, or by array order when it is omitted."
        }
      },
      "required": [
        "entityTypeEnding",
        "name"
      ]
    },
    "PartnerCompanyServiceDto": {
      "type": "object",
      "description": "A service attached to a company.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Service name."
        },
        "variant": {
          "type": "string",
          "description": "Service variant."
        },
        "status": {
          "type": "string",
          "description": "Service status."
        },
        "subStatus": {
          "type": "string",
          "description": "Service sub-status."
        }
      }
    },
    "PartnerDocumentRequirementDto": {
      "type": "object",
      "description": "A document an imported company must have on file, and whether it does.",
      "properties": {
        "documentType": {
          "type": "string",
          "description": "The document type to upload with POST /v1/partner/companies/{companyId}/documents.",
          "enum": [
            "ArticlesOfOrganization",
            "EinLetter"
          ]
        },
        "status": {
          "type": "string",
          "description": "Whether a document of this type is on file.",
          "enum": [
            "missing",
            "received"
          ]
        }
      }
    },
    "PartnerRegisteredAgentDto": {
      "type": "object",
      "description": "The registered agent the company has today.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Registered agent's name, as filed with the state."
        },
        "address": {
          "$ref": "#/$defs/PartnerAddressDto",
          "description": "The registered agent's address as filed with the state."
        }
      },
      "required": [
        "address",
        "name"
      ]
    },
    "PartnerResponsiblePartyDto": {
      "type": "object",
      "description": "The person legally responsible for the company (used for tax filings).",
      "properties": {
        "id": {
          "type": "string",
          "description": "Server-assigned ID, ignored on create and import. In the importCorrections of an IMPORT_INFO_REQUIRED resolution, send it back to keep this person and their stored SSN."
        },
        "legalFirstName": {
          "type": "string",
          "description": "Legal first name."
        },
        "legalLastName": {
          "type": "string",
          "description": "Legal last name."
        },
        "ssn": {
          "type": "string",
          "description": "Social Security Number or ITIN. Optional. Input: nine ASCII digits or XXX-XX-XXXX. Handled as sensitive data."
        },
        "email": {
          "type": "string",
          "description": "Contact email."
        },
        "address": {
          "$ref": "#/$defs/PartnerAddressDto",
          "description": "Responsible party's address."
        }
      },
      "required": [
        "email",
        "legalFirstName",
        "legalLastName"
      ]
    },
    "PartnerSignatureRequirementDto": {
      "type": "object",
      "description": "A signature step required for the company.",
      "properties": {
        "documentType": {
          "type": "string",
          "description": "Document the signature applies to.",
          "enum": [
            "SS4",
            "FORM8821"
          ]
        },
        "status": {
          "type": "string",
          "description": "Whether the signature step is still outstanding or fulfilled.",
          "enum": [
            "PENDING",
            "COMPLETED"
          ]
        }
      }
    }
  }
}