> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doola.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Authenticate with the raw API key in the Authorization header. Never add a Bearer prefix.
> Use the sandbox base URL https://api.test.doola.com and a dk_test_ key in examples unless the user asks for production.
> Send an Idempotency-Key header on POST /v1/partner/customers, POST /v1/partner/companies, POST /v1/partner/companies/import, POST /v1/partner/companies/{companyId}/services and POST /v1/partner/companies/{companyId}/documents. No other endpoint takes one.
> Every response is wrapped as {payload, error}. Read fields from payload and branch on error.code, never on the message.
> Drive formation progress from webhooks plus a reconciliation sweep, never a polling loop.
> Embedded SDK (@doola/js): the dk_ key stays on the server and mints customer sessions; the browser gets only a pk_ key and the session. onFormed carries only companyId and can fire more than once. Before charging, read the company with the dk_ key, require formationSubmissionStatus AWAITING_PAYMENT, check the owner's email, and price on the server. Then POST payment-confirmed, which answers 200 with an empty body, and replace the SDK element with a new doola.create() (never append a second one).
> The doola Formation MCP server at https://mcp.doola.com is for founders forming their own company with their own doola account. Platform partners integrate the Partner API or the Embedded SDK. The /mcp endpoint on this docs site only searches these docs.
> Affiliates refer founders to doola with a PartnerStack referral link and coupon code, or with two doola-branded iframe widgets: the Demo Booking Widget (app.doola.com/embed/book-demo?link=<referral link>) and the Company Formation Widget (app.doola.com/embed/partner/<partner ID>). The widgets need no API key and are not the Embedded SDK. Copy the snippets exactly as documented, never add a sandbox attribute to the formation widget iframe.
> For a full capability summary with the rules above, read https://docs.doola.com/skill.md.

# Expedited EIN

> Request prioritized EIN processing for companies whose responsible party has no valid SSN, including one with an ITIN.

> [!NOTE]
>
> By default, the EIN application joins the standard IRS processing queue. Expedited processing is available for an additional fee, billed per use.

You request expedited processing in the create-company call, or later when you [add the EIN](https://docs.doola.com/api/add-services.md) to an existing company. The founder also signs one additional document, [Form 8821](#the-form-8821-signature), alongside the SS-4. Everything else about the [formation flow](https://docs.doola.com/api/formation.md) is unchanged.

## Availability

Expedited processing is available when the `responsibleParty` supplies no valid SSN. An ITIN does not disqualify the company, and neither does an SSN on a `member` or `executiveMember`. This is the same identifier check that produces the [SS-4 requirement](https://docs.doola.com/api/non-us-formation.md); it checks format, not issuance, citizenship, or tax residency.

A request that fails that check is rejected in full: **no company is created**, and the rejection is a `4xx`, so your `Idempotency-Key` is released. Fix the request and retry with the same key.

## Requesting the expedited EIN

Order `EinCreation` with `variant: "Expedite"` in `services` on the [create-company](https://docs.doola.com/api/api-reference/companies/create-a-company.md) request body:

```json theme={null}
{
  "doolaCustomerId": "31pLCw7sN2aQ9fJkRtY3vXbHmLe",
  "state": "WY",
  "...": "...",
  "services": [
    { "service": "Formation" },
    { "service": "EinCreation", "variant": "Expedite" }
  ]
}
```

| Field | Values | Meaning |
| - | - | - |
| `service` | `EinCreation` | Only the EIN takes a variant. |
| `variant` | `Standard`, `Expedite` | `Expedite` requests prioritized EIN processing. `Standard` is the default. |

The same entry works on [Add a service](https://docs.doola.com/api/add-services.md) for a company that already exists. [Company services](https://docs.doola.com/api/company-services.md#combination-rules) has the rules for the rest of the list.

> [!NOTE]
>
> Integrations built before `services` existed send `requestedServices: [{ "service": "EinCreation", "variant": "Expedite" }]` instead. It still works, but it is deprecated, and it cannot be combined with `services`. Omitting both keeps standard processing.

## Reading it back

The company's `EinCreation` service carries the variant, on both the create response and [Get a company](https://docs.doola.com/api/api-reference/companies/get-a-company.md):

```json theme={null}
{
  "services": [
    { "name": "Formation", "status": "InProgress", "variant": "NONE" },
    { "name": "EinCreation", "status": "NotStarted", "variant": "Expedite" },
    { "name": "RegisteredAgent", "status": "NotStarted", "variant": "NONE" }
  ]
}
```

See [Company services](https://docs.doola.com/api/company-services.md) for the full service lifecycle.

## The Form 8821 signature

Expedited processing relies on one extra authorization from the founder: **Form 8821** (Tax Information Authorization), which lets doola retrieve the EIN letter directly from the IRS. An expedited company therefore carries a second signature requirement alongside the SS-4, on both the create response and [Get a company](https://docs.doola.com/api/api-reference/companies/get-a-company.md):

```json theme={null}
{
  "signatureRequirements": [
    { "documentType": "SS4", "status": "PENDING" },
    { "documentType": "FORM8821", "status": "PENDING" }
  ]
}
```

Collect it exactly like the SS-4: request a signing session with `documentType: "FORM8821"` and present the whitelabeled link to the founder. The [signing flow](https://docs.doola.com/api/non-us-formation.md#the-signing-flow) is identical, and the two documents are independent — collect them in parallel or in any order.

Three webhook events mirror the SS-4 set: `signature_form8821_completed` fires once doola has recorded the signature, `document_form8821_uploaded` once the signed PDF is stored and downloadable, and `signature_form8821_reminder_due` (day 1, 3, 7) while the document remains unsigned. See [Webhooks](https://docs.doola.com/api/webhooks.md#events).

> [!NOTE]
>
> doola cannot retrieve the EIN letter from the IRS until the Form 8821 is signed, so an unsigned Form 8821 holds up the expedited path just like an unsigned SS-4 holds up the EIN application itself.

## What stays the same

Expedited EIN changes how fast the EIN application is processed, not the flow around it:

* **The SS-4 signature is still required.** The founder signs an SS-4 under doola's workflow, exactly as described in the [signing guide](https://docs.doola.com/api/non-us-formation.md).
* **Formation itself is not expedited.** State filing and registered agent proceed on their usual timelines; the EIN application is prioritized once it can proceed.
* **The same signals report progress.** Track the `EinCreation` service status, the `ein` field on the company, and the webhooks below.

## Knowing when the EIN is issued

Two webhooks signal EIN issuance, at two distinct moments. They apply to every formation, expedited or not:

| Event | Fires when |
| - | - |
| `company_ein_issued` | doola records the company's EIN. Fetch the company to read the `ein` field. |
| `document_einletter_uploaded` | The IRS EIN confirmation letter is stored and ready to [download](https://docs.doola.com/api/domain-objects.md#document). |

See [Webhooks](https://docs.doola.com/api/webhooks.md) for payloads and delivery details.

## Errors

Branch on `error.code`, never on the message.

| HTTP | Code | Meaning |
| - | - | - |
| 400 | `E_EXPEDITED_EIN_NOT_ELIGIBLE` | The responsible party supplies a valid SSN, so the company does not qualify for expedited processing. Retry with `variant: "Standard"` for standard processing. |
| 400 | `E_VALIDATION_FAILED` | An unknown `variant` in `services`: the field detail carries `E_SERVICE_SELECTION_INVALID` on `services`. With the deprecated `requestedServices`, an unsupported `service` or `variant` carries `E_REQUESTED_SERVICES_INVALID` with the concrete reason. |

The `requestedServices` shape error looks like this:

```json theme={null}
{
  "payload": null,
  "error": {
    "code": "E_VALIDATION_FAILED",
    "message": "one or more fields are invalid",
    "requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
    "fields": {
      "requestedServices": {
        "code": "E_REQUESTED_SERVICES_INVALID",
        "message": "variant must be one of [Standard, Expedite]; got 'Fast'"
      }
    }
  }
}
```

See [Errors](https://docs.doola.com/api/errors.md) for the response envelope and the global codes any endpoint can return.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.