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.
namestringLegal name of the payee as shown on line 1.
business_namestringBusiness name if different from legal name, as shown on line 2.
federal_tax_classificationstringFederal tax classification selected on line 3.
llc_tax_classificationstringIf entity is LLC, the tax classification elected (C, S, or P corporation treatment).
other_classification_textstringFree-form text if federal_tax_classification is 'other'.
addressobjectMailing address of the payee.
streetstringStreet address line.
citystringCity name.
statestringState or territory abbreviation (two characters).
postal_codestringZIP or postal code.
countrystringCountry name if outside the United States.
tinobjectTaxpayer Identification Number (SSN or EIN).
typestringType of identification number: SSN (Social Security Number) or EIN (Employer Identification Number).
valuestringNine-digit TIN without dashes or hyphens, exactly as printed.
requester_name_addressstringName and address of the requester entity requesting the W-9.
account_numbersarrayOptional account or reference numbers supplied by requester.
payee_codesarrayExemption codes from payee pool (if applicable).
fatca_codestringFATCA code selected by the payee (if applicable).
signatureobjectSignature attestation and date.
signedbooleanWhether the form is signed.
datestringDate of signature in ISO-8601 format (YYYY-MM-DD).
certification_acknowledgedbooleanWhether the payee certifies under penalty of perjury that the information provided is correct.
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.