status and subStatus, which move independently as the work progresses.
Services
A company has at most one of each service.
Choosing services at creation
Sendservices on Create a company. Each entry names one service, and only EinCreation takes a variant.
Formation, RegisteredAgent, EinCreation and AiCofounder. Leave EinCreation out and the company gets no EIN work at all.
Combination rules
doola checks the list in this order and reports the first rule it breaks.1
No empty entries, and no AiCofounder
AiCofounder comes with every company, so listing it is refused.2
Only known services
Each
service must be Formation, RegisteredAgent or EinCreation, spelled exactly.3
A variant only on EinCreation
A
variant on Formation or RegisteredAgent is refused. On EinCreation it must be Standard or Expedite.4
Each service once
The same service listed twice is refused.
5
Formation is required
A new company always needs
Formation. An empty list is refused for the same reason. RegisteredAgent comes with Formation, so listing it is optional.400 E_VALIDATION_FAILED, with E_SERVICE_SELECTION_INVALID on error.fields.services.code. The message names the rule:
Idempotency-Key is released, so fix the list and retry with the same key.
Without services
Omit services and the company gets Formation, RegisteredAgent and EinCreation, as every company did before you could choose. Existing integrations keep working unchanged.
The older requestedServices field still works for the expedited EIN but is deprecated. Send one or the other: a request with both answers 400 E_VALIDATION_FAILED with E_SERVICE_SELECTION_INVALID on services.
A company without an EIN
When you create a company withoutEinCreation:
signatureRequirementsis empty. The founder signs no SS-4 or Form 8821, because both exist only to get an EIN.- doola does not apply for an EIN, and no EIN webhooks fire.
- You can still add the EIN later.
Service fields
Each entry in the company’sservices list has these fields:
Variants
Statuses
Sub-statuses
Sub-statuses give a more precise signal about what a service is waiting on. They are informational. Your integration does not need to act on them, but they help with debugging and support.Initial state
A company created through the API starts with these values for the services it was created with:
A company submitted through the SDK starts with
Formation at NotStarted / WaitingForCompanyOnboard, and moves to InProgress once you confirm payment.
An imported company was formed outside doola, so it has none of Formation, RegisteredAgent and EinCreation. It starts with AiCofounder only, and you can add an EIN to it.
Reading service state
Services are returned as a list underservices on the get-company response, and on the add-services response. No webhook fires when a service is added. Track progress with webhooks rather than polling: company_formation_completed fires when Formation reaches Completed, and company_ein_issued fires when the EIN is recorded on the company. Read services to show current state, and in your reconciliation sweep.