Skip to main content

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 without fields:
Retrieving a single document adds fields:

Where the data comes from

Tax documents reach Truv three ways, and each one extracts a different amount of the form. The link’s data_source tells you which path produced a document, so read it before you read fields.
Treat every key as optional and branch on data_source. Each section below lists what that source returns.

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 w2s array on an income report is a summary: wages, federal_tax, social_security_wages, social_security_tax, medicare_wages, medicare_tax, and gross_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. state holds the same value as state_1, and locality_name holds the same value as locality_name_1_1.
  • State keys are indexed _1 for the first state and _2 for the second.
  • Locality keys are indexed _{state}_{locality}, so _1_2 is the second locality of the first state and _2_1 is 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.
A 1040 that arrives through a tax software connection (data_source: tax) is stored as a file with fields: null. Line-level extraction requires the document upload path.
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 carry pages — the page range the form occupies in the uploaded file, for example "3-4".

Example

A return with one Schedule C business, trimmed to a few lines per form.