IRS Form W-9

Extract critical tax identification and payee information from IRS Form W-9 (Request for Taxpayer Identification Number and Certification).

The fields this preset extracts.

namestring

Legal name of the payee as shown on line 1.

business_namestring

Business name if different from legal name, as shown on line 2.

federal_tax_classificationstring

Federal tax classification selected on line 3.

llc_tax_classificationstring

If entity is LLC, the tax classification elected (C, S, or P corporation treatment).

other_classification_textstring

Free-form text if federal_tax_classification is 'other'.

addressobject

Mailing address of the payee.

streetstring

Street address line.

citystring

City name.

statestring

State or territory abbreviation (two characters).

postal_codestring

ZIP or postal code.

countrystring

Country name if outside the United States.

tinobject

Taxpayer Identification Number (SSN or EIN).

typestring

Type of identification number: SSN (Social Security Number) or EIN (Employer Identification Number).

valuestring

Nine-digit TIN without dashes or hyphens, exactly as printed.

requester_name_addressstring

Name and address of the requester entity requesting the W-9.

account_numbersarray

Optional account or reference numbers supplied by requester.

payee_codesarray

Exemption codes from payee pool (if applicable).

fatca_codestring

FATCA code selected by the payee (if applicable).

signatureobject

Signature attestation and date.

signedboolean

Whether the form is signed.

datestring

Date of signature in ISO-8601 format (YYYY-MM-DD).

certification_acknowledgedboolean

Whether the payee certifies under penalty of perjury that the information provided is correct.

curl
curl -X POST 'https://app.staging.xberg.io/v1/extract' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'file=@your-document.pdf' \
  --form-string 'options={"preset":"w9"}'
Call mode
Vision only
Citations
Enabled
Version
v1

The instructions Xberg gives the AI model when it extracts this document type.

You are extracting tax identification data from an IRS Form W-9. Extract all fields exactly as printed on the form. Preserve the legal name, business name (if different), and federal tax classification selection. For the TIN (Taxpayer Identification Number), extract the nine digits exactly as shown, without dashes or hyphens — identify it as an SSN or EIN only if explicitly indicated. Include the mailing address fields that are visible. If the form is signed, note the signature date in ISO-8601 format (YYYY-MM-DD). Currency is not applicable to W-9 extraction. Dates must be literal and ISO-formatted. Provide citations for all extracted values. If the document does not match this preset, return {}. Extract only values supported by the document. Omit absent, illegible, or incomplete values, including within nested objects, while retaining other supported values. Do not infer, guess, supply defaults, or calculate missing values. Omit dates whose complete year, month, and day are not explicit. Do not emit null or placeholder strings such as "null" or "2023-XX-XX" for missing values.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.