Attributes
The table below has the values for Tax Document fields.Endpoint
The link below is the reference for the available Tax Document endpoint. Listing returns an array withoutfields:
fields:
Where the data comes from
Tax documents reach Truv three ways, and each one extracts a different amount of the form. The link’sdata_source tells you which path produced a document, so read it before you read fields.
Reading fields
These rules hold for every document type and every source.
- Keys mirror the boxes and lines of the IRS form.
- Monetary amounts are decimal strings.
- Blank boxes are omitted. A key is present with a zero value only when the form itself shows a zero.
- Checkboxes are returned as the string
"yes"when checked, and omitted when unchecked. - Names, SSNs, and employer details are not in
fields. They populate the profile and company objects on the income report. - The
w2sarray on an income report is a summary:wages,federal_tax,social_security_wages,social_security_tax,medicare_wages,medicare_tax, andgross_pay. Retrieve the tax document itself for everything below.
W-2 from uploaded documents
data_source: docs, document_type: W2. Truv reads the whole form, including Box 12 codes, Box 13 checkboxes, and multi-state data.
Wage and tax boxes
Box 12 codes
Each of the four Box 12 slots returns a letter code and an amount.Box 13 checkboxes
State and local boxes
An uploaded W-2 carries up to two states, and up to two localities per state. Each field is returned under a key with no suffix and under an indexed key:- The key with no suffix is always the first row.
stateholds the same value asstate_1, andlocality_nameholds the same value aslocality_name_1_1. - State keys are indexed
_1for the first state and_2for the second. - Locality keys are indexed
_{state}_{locality}, so_1_2is the second locality of the first state and_2_1is the first locality of the second state. - A second state or locality has no form without a suffix. It appears only as
_2,_1_2,_2_1, or_2_2.
State keys (Boxes 15–17)
Locality keys (Boxes 18–20)
Example
A W-2 with one state and one locality.W-2 from a payroll connection
data_source: payroll, document_type: W2. Truv reads the numbered wage boxes from the W-2 the provider supplies. Upload the document for the full form.
1099
For all 1099 forms the year of the document along with user’s information is provided.1040 from uploaded documents
data_source: docs, document_type: F1040. A 1040 is read as a package: the main form plus any attached Schedule 1, Schedule C, Form 4562, and Form 4684. Each attachment type is an array under fields, because a return can carry several of them.
Each Schedule C becomes an employment. Truv creates one employment per Schedule C business on the return: company name from Line C, EIN from Line D, address from Line E,
job_title from Line A, and start_date from Line H. Sole proprietors who leave Line C blank get the taxpayer’s own name as the company name. The 1040 document is linked to each of those employments, so self-employed income appears in the income report next to payroll-sourced employments. A return with no Schedule C is stored without an employment.On a joint return, Truv matches the applicant to the primary filer or the spouse — by SSN first, then by name — and returns only that taxpayer’s schedules. A schedule that carries no owner information is treated as shared and included.
Form 1040 fields
Attached schedules and forms
Objects in these arrays may also carrypages — the page range the form occupies in the uploaded file, for example "3-4".
schedule_1 — Additional Income and Adjustments
schedule_1 — Additional Income and Adjustments
schedule_c — Profit or Loss from Business
schedule_c — Profit or Loss from Business
form_4562 — Depreciation and Amortization
form_4562 — Depreciation and Amortization
form_4684 — Casualties and Thefts
form_4684 — Casualties and Thefts