Doola ITIN API
Apply for an ITIN for a company's members: price, eligibility, the draft request and its status.
Apply for an ITIN for a company's members: price, eligibility, the draft request and its status.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/doola:doola-itin-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: doola Partner ITIN API
description: 'REST API for doola partners to create and manage customers and companies, retrieve formation documents, and look up reference data.
Authenticate every request with a partner API key in the `Authorization` header. Generate keys and manage your webhook endpoint in the doola Partner Portal.'
contact:
name: doola
url: https://www.doola.com
version: v1
servers:
- url: https://api.test.doola.com
description: Sandbox — use test keys (dk_test_…)
- url: https://api.doola.com
description: Production — use live keys (dk_live_…)
security:
- PartnerApiKey: []
tags:
- name: ITIN
description: 'Apply for an ITIN for a company''s members: price, eligibility, the draft request and its status.'
paths:
/v1/partner/companies/{doolaCompanyId}/compliance/itin:
post:
tags:
- ITIN
summary: Create or update a member's draft ITIN request
description: Creates the member's ITIN request as a DRAFT, or updates the draft already on file, so missing fields can be added before submit. Idempotent on the Idempotency-Key header.
operationId: createItinRequest
parameters:
- name: doolaCompanyId
in: path
description: doola company ID (KSUID).
required: true
schema:
type: string
- name: Idempotency-Key
in: header
description: Unique key that makes the call safe to retry with the same body.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePartnerItinRequest'
required: true
responses:
'201':
description: The draft as it now stands.
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerItinSubmissionResponse'
'400':
description: 'E_VALIDATION_FAILED: a field is invalid, or the passport expires within 6 months. E_IDEMPOTENCY_KEY_REQUIRED: the header is missing.'
'404':
description: 'E_COMPANY_NOT_FOUND: not a company of the calling partner. E_ITIN_MEMBER_NOT_FOUND: memberId is not on the company.'
'409':
description: 'E_ITIN_ALREADY_SUBMITTED: the member''s request is past DRAFT, or an ITIN is already on file. E_ITIN_REQUEST_OTHER_CHANNEL: the customer started this member''s request in the doola app.'
'422':
description: 'E_ITIN_NOT_ELIGIBLE: the message lists every reason.'
/v1/partner/companies/{doolaCompanyId}/compliance/itin/{itinSubmissionId}/submit:
post:
tags:
- ITIN
summary: Submit a member's ITIN request
description: Moves the DRAFT to SUBMITTED. The member must still be eligible, every field in missingForSubmit filled, the passport uploaded and valid for at least 6 more months. doola then opens the request for its team and sends company_itin_submitted. No body. Idempotent on the Idempotency-Key header.
operationId: submitItinRequest
parameters:
- name: doolaCompanyId
in: path
description: doola company ID (KSUID).
required: true
schema:
type: string
- name: itinSubmissionId
in: path
description: ITIN request ID.
required: true
schema:
type: string
- name: Idempotency-Key
in: header
description: Unique key that makes the call safe to retry.
required: true
schema:
type: string
responses:
'200':
description: The request, now SUBMITTED.
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerItinSubmissionResponse'
'400':
description: 'E_IDEMPOTENCY_KEY_REQUIRED: the header is missing.'
'404':
description: 'E_COMPANY_NOT_FOUND: not a company of the calling partner. E_ITIN_NOT_FOUND: no such request on this company.'
'409':
description: 'E_ITIN_ALREADY_SUBMITTED: the request is past DRAFT.'
'422':
description: 'E_ITIN_NOT_ELIGIBLE: the member can no longer apply. E_ITIN_NOT_READY: the message lists what is missing. E_ITIN_PASSPORT_EXPIRING: the passport expires within 6 months.'
/v1/partner/companies/{doolaCompanyId}/compliance/itin/{itinSubmissionId}/signed-documents:
post:
tags:
- ITIN
summary: Upload the signed W-7 and Form 2848
description: 'Answers the open ITIN_SIGNATURE_REQUIRED Ops raised on this request with the applicant''s forms, signed in ink and scanned: exactly one ITIN_W7_SIGNED and one ITIN_2848_SIGNED. The action becomes submitted until Ops review the forms. Idempotent on the Idempotency-Key header.'
operationId: uploadItinSignedDocuments
parameters:
- name: doolaCompanyId
in: path
description: doola company ID (KSUID).
required: true
schema:
type: string
- name: itinSubmissionId
in: path
description: ITIN request ID.
required: true
schema:
type: string
- name: Idempotency-Key
in: header
description: Unique key that makes the call safe to retry with the same body.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UploadPartnerItinSignedDocumentsRequest'
required: true
responses:
'201':
description: The forms are on the request and the action is answered.
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerItinSignedDocumentsResponse'
'400':
description: 'E_VALIDATION_FAILED: not exactly one of each form. E_DOCUMENT_FILE_INVALID: a file is not a PDF, not valid base64, or its name does not end in .pdf. E_FILE_TOO_LARGE: a file is over 10 MB. E_IDEMPOTENCY_KEY_REQUIRED: the header is missing.'
'404':
description: 'E_COMPANY_NOT_FOUND: not a company of the calling partner. E_ITIN_NOT_FOUND: no such request on this company. E_REQUIRED_ACTION_NOT_FOUND: no such signature request on this ITIN request.'
'409':
description: 'E_REQUIRED_ACTION_CLOSED: the signature request is closed. E_REQUIRED_ACTION_ALREADY_SUBMITTED: forms were already sent for it.'
/v1/partner/companies/{doolaCompanyId}/compliance/itin/{itinSubmissionId}/passport:
post:
tags:
- ITIN
summary: Upload the member's passport
description: 'Stores the passport photo page and makes it the request''s passport, replacing one uploaded before. A DRAFT takes a passport at any time. A submitted request takes one only while doola has an open ITIN_PASSPORT_REUPLOAD on it: the upload answers that required action, which becomes submitted until doola reviews the new passport. Idempotent on the Idempotency-Key header.'
operationId: uploadItinPassport
parameters:
- name: doolaCompanyId
in: path
description: doola company ID (KSUID).
required: true
schema:
type: string
- name: itinSubmissionId
in: path
description: ITIN request ID.
required: true
schema:
type: string
- name: Idempotency-Key
in: header
description: Unique key that makes the call safe to retry with the same body.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UploadPartnerItinPassportRequest'
required: true
responses:
'201':
description: The passport is on the request.
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerItinPassportUploadResponse'
'400':
description: 'E_DOCUMENT_FILE_INVALID: not a PDF, not valid base64, or the name does not end in .pdf. E_FILE_TOO_LARGE: over 10 MB. E_IDEMPOTENCY_KEY_REQUIRED: the header is missing.'
'404':
description: 'E_COMPANY_NOT_FOUND: not a company of the calling partner. E_ITIN_NOT_FOUND: no such request on this company.'
'409':
description: 'E_ITIN_ALREADY_SUBMITTED: the request is past DRAFT and doola has not asked for a new passport. E_REQUIRED_ACTION_ALREADY_SUBMITTED: a new passport was already sent for the open request and is being reviewed. E_REQUIRED_ACTION_CLOSED: the request for a new passport closed meanwhile. E_ITIN_REQUEST_OTHER_CHANNEL: the customer started this request in the doola app.'
/v1/partner/companies/{doolaCompanyId}/compliance/itin/{itinSubmissionId}:
get:
tags:
- ITIN
summary: Get one ITIN request
description: The request with its status. Status changes made by doola after submit are read here; the passport number and ITIN are masked.
operationId: getItinRequest
parameters:
- name: doolaCompanyId
in: path
description: doola company ID (KSUID).
required: true
schema:
type: string
- name: itinSubmissionId
in: path
description: ITIN request ID.
required: true
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerItinSubmissionResponse'
'404':
description: 'E_COMPANY_NOT_FOUND: not a company of the calling partner. E_ITIN_NOT_FOUND: no such request on this company.'
/v1/partner/companies/{doolaCompanyId}/compliance/itin/price:
get:
tags:
- ITIN
summary: Get the price of one ITIN
description: What doola charges the partner for one member's ITIN. The same for every partner.
operationId: getItinPrice
parameters:
- name: doolaCompanyId
in: path
description: doola company ID (KSUID).
required: true
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerItinPriceResponse'
'404':
description: 'E_COMPANY_NOT_FOUND: not a company of the calling partner.'
/v1/partner/companies/{doolaCompanyId}/compliance/itin/eligibility:
get:
tags:
- ITIN
summary: List which members can apply for an ITIN
description: Every member of the company with isEligible and every reason they cannot apply. No member is eligible until the company's EIN is on file.
operationId: getItinEligibility
parameters:
- name: doolaCompanyId
in: path
description: doola company ID (KSUID).
required: true
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/PartnerItinEligibilityDto'
'404':
description: 'E_COMPANY_NOT_FOUND: not a company of the calling partner.'
components:
schemas:
CreatePartnerItinRequest:
type: object
description: One member's ITIN request. Only memberId, names and address are needed to create the draft; the rest is needed to submit.
properties:
memberId:
type: string
description: A memberId from /eligibility.
minLength: 1
legalFirstName:
type: string
example: Ana
maxLength: 50
minLength: 0
legalLastName:
type: string
example: Silva
maxLength: 50
minLength: 0
middleName:
type: string
example: Maria
maxLength: 50
minLength: 0
dateOfBirth:
type: string
format: date
example: '1990-04-15'
countryOfCitizenship:
type: string
description: ISO 3166-1 alpha-3, not USA.
example: BRA
pattern: ^(?!USA$)[A-Z]{3}$
countryOfResidence:
type: string
description: ISO 3166-1 alpha-3, not USA.
example: BRA
pattern: ^(?!USA$)[A-Z]{3}$
phoneNumber:
type: string
example: '+5511987654321'
maxLength: 50
minLength: 0
passportNumber:
type: string
example: FX123456
maxLength: 100
minLength: 0
passportExpirationDate:
type: string
format: date
description: At least 6 months from today.
example: '2030-08-31'
address:
$ref: '#/components/schemas/PartnerItinAddressDto'
required:
- address
- legalFirstName
- legalLastName
- memberId
PartnerItinPriceResponse:
type: object
description: What doola charges the partner for one member's ITIN.
properties:
priceInCents:
type: integer
format: int64
description: Price per member in whole US cents.
example: 19900
currency:
type: string
description: ISO 4217 currency.
example: USD
unit:
type: string
description: What the price covers.
enum:
- PER_MEMBER
example: PER_MEMBER
UploadPartnerItinSignedDocumentsRequest:
type: object
description: The applicant's signed W-7 and 2848, answering ITIN_SIGNATURE_REQUIRED.
properties:
requiredActionId:
type: string
description: The open ITIN_SIGNATURE_REQUIRED on this request.
example: 31pLeQ2xN7bVc81kRtYz5HwUoPa
minLength: 1
documents:
type: array
description: Exactly one ITIN_W7_SIGNED and one ITIN_2848_SIGNED.
items:
$ref: '#/components/schemas/SignedDocument'
maxItems: 2
minItems: 2
required:
- documents
- requiredActionId
PartnerItinAddressDto:
type: object
description: The member's foreign home address for the W-7.
properties:
line1:
type: string
example: Rua Augusta 123
maxLength: 255
minLength: 0
line2:
type: string
example: Apt 4
maxLength: 255
minLength: 0
city:
type: string
example: São Paulo
maxLength: 100
minLength: 0
state:
type: string
example: SP
maxLength: 100
minLength: 0
country:
type: string
description: ISO 3166-1 alpha-3, not USA.
example: BRA
minLength: 1
pattern: ^(?!USA$)[A-Z]{3}$
postalCode:
type: string
example: 01305-000
maxLength: 20
minLength: 0
required:
- city
- country
- line1
PartnerItinMemberAddressDto:
type: object
description: The member's address and phone as doola holds them on the company.
properties:
line1:
type: string
example: Rua Augusta 123
line2:
type: string
example: Apt 4
city:
type: string
example: São Paulo
state:
type: string
example: SP
country:
type: string
description: ISO 3166-1 alpha-3.
example: BRA
postalCode:
type: string
example: 01305-000
phone:
type: string
example: '+5511987654321'
PartnerItinPassportUploadResponse:
type: object
description: The request once the passport is on it.
properties:
itinSubmissionId:
type: string
status:
type: string
example: DRAFT
passport:
$ref: '#/components/schemas/PartnerItinPassportDto'
readyToSubmit:
type: boolean
description: True when missingForSubmit is empty.
missingForSubmit:
type: array
description: Fields still needed before submit.
items:
type: string
SignedDocument:
type: object
description: One signed form as a base64-encoded PDF.
properties:
documentType:
type: string
enum:
- ITIN_W7_SIGNED
- ITIN_2848_SIGNED
minLength: 1
base64EncodedFile:
type: string
description: Base64 PDF, at most 10 MB decoded.
minLength: 1
fileName:
type: string
description: Must end in .pdf, at most 255 characters.
example: ana-silva-w7-signed.pdf
minLength: 1
contentType:
type: string
example: application/pdf
minLength: 1
required:
- base64EncodedFile
- contentType
- documentType
- fileName
AnsweredAction:
type: object
description: The signature request, now waiting for Ops to review the forms.
properties:
requiredActionId:
type: string
actionCode:
type: string
example: ITIN_SIGNATURE_REQUIRED
status:
type: string
example: submitted
PartnerItinEligibilityDto:
type: object
description: One company member and whether they can apply for an ITIN.
properties:
memberId:
type: string
description: doola member ID; send it as memberId to create the request.
legalFirstName:
type: string
example: Ana
legalLastName:
type: string
example: Silva
address:
$ref: '#/components/schemas/PartnerItinMemberAddressDto'
isEligible:
type: boolean
description: True when reasons is empty.
einOnFile:
type: boolean
description: Whether the company's EIN is on file. No member is eligible without it.
reasons:
type: array
description: Every reason the member cannot apply.
items:
type: string
enum:
- EIN_NOT_ON_FILE
- NOT_NATURAL_PERSON
- US_PERSON
- HAS_SSN
- SUBMISSION_IN_PROGRESS
- HAS_ITIN
PartnerItinSignedDocumentsResponse:
type: object
description: The request once the signed forms are on it and the action is answered.
properties:
itinSubmissionId:
type: string
status:
type: string
example: PENDING_SIGNATURE
requiredAction:
$ref: '#/components/schemas/AnsweredAction'
documents:
type: array
items:
$ref: '#/components/schemas/PartnerItinDocumentDto'
PartnerItinPassportDto:
type: object
description: The passport document stored on the request.
properties:
documentId:
type: string
example: doc_2p9XnV4kL7mN
name:
type: string
description: Stored name, built from the member and company names.
contentType:
type: string
example: application/pdf
documentType:
type: string
example: ITIN_PASSPORT
createdAt:
type: string
format: date-time
PartnerItinDocumentDto:
type: object
description: A document stored on the ITIN request.
properties:
documentId:
type: string
example: doc_w7s_1aB2cD
name:
type: string
contentType:
type: string
example: application/pdf
documentType:
type: string
example: ITIN_W7_SIGNED
createdAt:
type: string
format: date-time
UploadPartnerItinPassportRequest:
type: object
description: The member's passport photo page as a base64-encoded PDF.
properties:
base64EncodedFile:
type: string
description: Base64 PDF, at most 10 MB decoded.
minLength: 1
fileName:
type: string
description: Must end in .pdf, at most 255 characters.
example: ana-passport.pdf
minLength: 1
contentType:
type: string
example: application/pdf
minLength: 1
required:
- base64EncodedFile
- contentType
- fileName
PartnerItinSubmissionResponse:
type: object
description: One member's ITIN request. The passport number and ITIN are masked.
properties:
itinSubmissionId:
type: string
description: ITIN request ID.
doolaCompanyId:
type: string
doolaMemberId:
type: string
status:
type: string
enum:
- DRAFT
- SUBMITTED
- DOCUMENT_REVIEW
- PENDING_SIGNATURE
- IRS_SUBMITTED
- ITIN_ISSUED
example: DRAFT
submittedAt:
type: string
format: date-time
description: When the partner submitted the request; null while a DRAFT.
legalFirstName:
type: string
middleName:
type: string
legalLastName:
type: string
dateOfBirth:
type: string
format: date
countryOfCitizenship:
type: string
countryOfResidence:
type: string
phoneNumber:
type: string
passportNumber:
type: string
description: Masked to the last 4.
example: '*****3456'
passportExpirationDate:
type: string
format: date
address:
$ref: '#/components/schemas/PartnerItinAddressDto'
passportDocumentId:
type: string
description: The uploaded passport, null until one is uploaded.
readyToSubmit:
type: boolean
description: True when missingForSubmit is empty.
missingForSubmit:
type: array
description: Fields still needed before submit.
example:
- passportDocument
items:
type: string
issuedItin:
type: string
description: Masked to the last 4 once issued.
issuedAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
securitySchemes:
PartnerApiKey:
type: apiKey
description: Partner API key. Send the raw key as the `Authorization` header value — e.g. `dk_test_…` in sandbox or `dk_live_…` in production. Generate and rotate keys in the doola Partner Portal.
name: Authorization
in: header